1var t=Object.defineProperty,e=(e,n,i)=>((e,n,i)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i)(e,"symbol"!=typeof n?n+"":n,i);import{cd as n,r as i,j as r,bU as o,d as a,_ as s,ce as c,cf as l,B as u,a1 as p,at as f}from"./index-B1wCbfWL.js";import{g as d,A as h,a as g}from"./index-0VGBu8nO.js";import"/config.js";import"./index-CktT7jKP.js";import"./memoize-one.esm-o-udwBZD.js";import"./index-ALFUeIM9.js";import"./index-lO6aVWDV.js";import"./dropdown-Bxwjx4bb.js";import"./index-Dk14Ao6n.js";import"./freckle-text-level-BLtHSALj.js";import"./common-helper-CsLMWAaK.js";import"./take-DohebT5T.js";import"./index-Bt83qIdt.js";import"./index-DXJexxXX.js";import"./index-BZbPu_XB.js";import"./index-5zn0YK5b.js";import"./index-DvlsCWrg.js";import"./index-BP6uq4UM.js";import"./index-D1UcP6Ka.js";import"./index-CVyvAWWh.js";import"./string-DsbAx15K.js";import"./reading-question-Co5TDB3h.js";import"./number-Bfq659es.js";import"./ela-ma-question-option-with-check-BuDjvvGY.js";import"./index-7wWEeRfb.js"; 2/*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT */var m=Symbol("NOT_RESOLVED"),y=Symbol("MERGE_KEY");function b(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify??null,represent:e.represent??(t=>String(t)),representTagName:e.representTagName??null}}function x(t,e){const n=void 0===e.finalize;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(t=>t),carrierIsResult:n,identify:e.identify??null,represent:e.represent??(t=>t),representTagName:e.representTagName??null}}function v(t,e){const n=void 0===e.finalize;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(t=>t),carrierIsResult:n,identify:e.identify??null,represent:e.represent??(t=>t),representTagName:e.representTagName??null}}var A=b("tag:yaml.org,2002:str",{resolve:t=>t,identify:t=>"string"==typeof t}),S=["","~","null","Null","NULL"],C=b("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:t=>-1!==S.indexOf(t)?null:m,identify:t=>null===t,represent:()=>"null"}),I=b("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(t,e)=>"null"===t||e&&""===t?null:m,identify:t=>null===t,represent:()=>"null"}),N=["","~","null","Null","NULL"],k=b("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:t=>-1!==N.indexOf(t)?null:m,identify:t=>null===t,represent:()=>"null"}),T=["true","True","TRUE"],E=["false","False","FALSE"],w=b("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:t=>-1!==T.indexOf(t)||-1===E.indexOf(t)&&m,identify:t=>"[object Boolean]"===Object.prototype.toString.call(t),represent:t=>t?"true":"false"}),j=["true"],F=["false"],O=b("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:t=>-1!==j.indexOf(t)||-1===F.indexOf(t)&&m,identify:t=>"[object Boolean]"===Object.prototype.toString.call(t),represent:t=>t?"true":"false"}),_=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],$=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],L=b("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:t=>-1!==_.indexOf(t)||-1===$.indexOf(t)&&m,identify:t=>"[object Boolean]"===Object.prototype.toString.call(t),represent:t=>t?"true":"false"}),P=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),q=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");var M=b("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:function(t,e){if(e){if(!q.test(t))return m}else if(!P.test(t))return m;const n=function(t){let e=t,n=1;return"-"!==e[0]&&"+"!==e[0]||("-"===e[0]&&(n=-1),e=e.slice(1)),e.startsWith("0b")?n*parseInt(e.slice(2),2):e.startsWith("0o")?n*parseInt(e.slice(2),8):e.startsWith("0x")?n*parseInt(e.slice(2),16):n*parseInt(e,10)}(t);return Number.isFinite(n)?n:m},identify:t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,represent:t=>t.toString(10)}),R=new RegExp("^-?(?:0|[1-9][0-9]*)$"),Y=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");var B=b("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:function(t,e){if(e){if(!Y.test(t))return m}else if(!R.test(t))return m;const n=function(t){let e=t,n=1;return"-"!==e[0]&&"+"!==e[0]||("-"===e[0]&&(n=-1),e=e.slice(1)),e.startsWith("0b")?n*parseInt(e.slice(2),2):e.startsWith("0o")?n*parseInt(e.slice(2),8):e.startsWith("0x")?n*parseInt(e.slice(2),16):n*parseInt(e,10)}(t);return Number.isFinite(n)?n:m},identify:t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,represent:t=>t.toString(10)}),D=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");var K=b("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:function(t){if(!D.test(t))return m;const e=function(t){let e=t.replace(/_/g,""),n=1;if("-"!==e[0]&&"+"!==e[0]||("-"===e[0]&&(n=-1),e=e.slice(1)),e.startsWith("0b"))return n*parseInt(e.slice(2),2);if(e.startsWith("0x"))return n*parseInt(e.slice(2),16);if(e.includes(":")){let t=0;for(const n of e.split(":"))t=60*t+Number(n);return n*t}return"0"!==e&&"0"===e[0]?n*parseInt(e,8):n*parseInt(e,10)}(t);return Number.isFinite(e)?e:m},identify:t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,represent:t=>t.toString(10)}),U=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),V=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var z=b("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:function(t){if(!U.test(t))return m;let e=t.toLowerCase();const n="-"===e[0]?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),".inf"===e)return 1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(".nan"===e)return NaN;const i=n*parseFloat(e);return Number.isFinite(i)||V.test(t)?i:m},identify:t=>"number"==typeof t&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),represent:function(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";const e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}}),W=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),H=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var G=b("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:function(t,e){if(e){if(!H.test(t))return m;let e=t.toLowerCase();const n="-"===e[0]?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),".inf"===e)return 1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(".nan"===e)return NaN;const i=n*parseFloat(e);return Number.isFinite(i)?i:m}if(!W.test(t))return m;const n=Number(t);return Number.isFinite(n)?n:m},identify:t=>"number"==typeof t&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),represent:function(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";const e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}}),Z=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),J=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Q=b("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:function(t){if(!Z.test(t))return m;let e=t.toLowerCase().replace(/_/g,"");const n="-"===e[0]?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),".inf"===e)return 1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(".nan"===e)return NaN;let i=0;if(e.includes(":")){for(const t of e.split(":"))i=60*i+Number(t);i*=n}else i=n*parseFloat(e);return Number.isFinite(i)||J.test(t)?i:m},identify:t=>"number"==typeof t&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),represent:function(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";const e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}}),X=b("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(t,e)=>"<<"===t||e&&""===t?y:m}),tt=/^[A-Za-z0-9+/]*={0,2}$/;var et=b("tag:yaml.org,2002:binary",{resolve:function(t){const e=t.replace(/\s/g,"");if(e.length%4!=0||!tt.test(e))return m;const n=atob(e),i=new Uint8Array(n.length);for(let r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i},identify:t=>"[object Uint8Array]"===Object.prototype.toString.call(t),represent:function(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}}),nt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),it=ne
2w RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var rt=b("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:function(t){let e=nt.exec(t);if(null===e&&(e=it.exec(t)),null===e)return m;const n=+e[1],i=+e[2]-1,r=+e[3];if(!e[4]){const t=new Date(Date.UTC(n,i,r));return t.getUTCFullYear()!==n||t.getUTCMonth()!==i||t.getUTCDate()!==r?m:t}const o=+e[4],a=+e[5],s=+e[6];let c=0;if(o>23||a>59||s>59)return m;if(e[7]){let t=e[7].slice(0,3);for(;t.length<3;)t+="0";c=+t}const l=new Date(Date.UTC(n,i,r,o,a,s,c));if(l.getUTCFullYear()!==n||l.getUTCMonth()!==i||l.getUTCDate()!==r)return m;if(e[9]){const t=+e[10],n=+(e[11]||0);if(t>23||n>59)return m;const i=6e4*(60*t+n);l.setTime(l.getTime()-("-"===e[9]?-i:i))}return l},identify:t=>t instanceof Date,represent:t=>t.toISOString()}),ot=x("tag:yaml.org,2002:seq",{create:()=>[],addItem:(t,e)=>{t.push(e)},identify:Array.isArray});function at(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function st(t,e){const n={};for(const i of e)void 0!==t[i]&&(n[i]=t[i]);return n}var ct=x("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(t,e)=>{let n;if(e instanceof Map){if(1!==e.size)return"cannot resolve an ordered map item";n=e.keys().next().value}else{if(!at(e))return"cannot resolve an ordered map item";{const t=Object.keys(e);if(1!==t.length)return"cannot resolve an ordered map item";n=t[0]}}return t.seen.has(n)?"duplicate key in ordered map":(t.seen.add(n),t.list.push(e),"")},finalize:t=>t.list}),lt=x("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(t,e)=>{if(e instanceof Map)return 1!==e.size?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if("[object Object]"!==Object.prototype.toString.call(e))return"cannot resolve a pairs item";const n=e,i=Object.keys(n);return 1!==i.length?"cannot resolve a pairs item":(t.push([i[0],n[i[0]]]),"")}}),ut=v("tag:yaml.org,2002:map",{create:()=>({}),identify:at,represent:t=>{const e=new Map;for(const n of Object.keys(t))e.set(n,t[n]);return e},addPair:(t,e,n)=>{if(null!==e&&"object"==typeof e)return"object-based map does not support complex keys";const i=String(e);return"__proto__"===i?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,""},has:(t,e)=>(null===e||"object"!=typeof e)&&Object.prototype.hasOwnProperty.call(t,String(e)),keys:t=>Object.keys(t),get:(t,e)=>t[String(e)]}),pt=v("tag:yaml.org,2002:set",{create:()=>new Set,identify:t=>t instanceof Set,represent:t=>{const e=new Map;for(const n of t)e.set(n,null);return e},addPair:(t,e,n)=>null!==n?"cannot resolve a set item":(t.add(e),""),has:(t,e)=>t.has(e),keys:t=>t.keys(),get:()=>null});var ft=class t{constructor(t){e(this,"tags"),e(this,"implicitScalarTags"),e(this,"implicitScalarByFirstChar"),e(this,"implicitScalarAnyFirstChar"),e(this,"defaultScalarTag"),e(this,"defaultSequenceTag"),e(this,"defaultMappingTag"),e(this,"exact"),e(this,"prefix");const n=function(t){const e=[];for(const n of t){let t=e.length;for(let i=0;i<e.length;i++){const r=e[i];if(r.nodeKind===n.nodeKind&&r.tagName===n.tagName&&r.matchByTagPrefix===n.matchByTagPrefix){t=i;break}}e[t]=n}return e}(t),i=[],r={scalar:{},sequence:{},mapping:{}},o={scalar:[],sequence:[],mapping:[]};for(const e of n){if("scalar"===e.nodeKind&&e.implicit){if(e.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");i.push(e)}switch(e.nodeKind){case"scalar":e.matchByTagPrefix?o.scalar.push(e):r.scalar[e.tagName]=e;break;case"sequence":e.matchByTagPrefix?o.sequence.push(e):r.sequence[e.tagName]=e;break;case"mapping":e.matchByTagPrefix?o.mapping.push(e):r.mapping[e.tagName]=e}}const a=i.filter(t=>null===t.implicitFirstChars),s=new Set;for(const e of i)if(null!==e.implicitFirstChars)for(const t of e.implicitFirstChars)s.add(t);const c=new Map;for(const e of s)c.set(e,i.filter(t=>null===t.implicitFirstChars||-1!==t.implicitFirstChars.indexOf(e)));const l=r.scalar["tag:yaml.org,2002:str"];if(!l)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");
2this.tags=n,this.implicitScalarTags=i,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=l,this.defaultSequenceTag=r.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=r.mapping["tag:yaml.org,2002:map"],this.exact=r,this.prefix=o}withTags(...e){let n=[];for(const t of e)n=n.concat(t);return new t([...this.tags,...n])}},dt=new ft([A,ot,ut]);new ft([...dt.tags,I,O,B,G]);var ht=new ft([...dt.tags,C,w,M,z]),gt=new ft([...dt.tags,k,L,K,Q,rt,X,et,ct,lt,pt]);function mt(t){if(Array.isArray(t)){const e=Array.prototype.slice.call(t);for(let t=0;t<e.length;t++){if(Array.isArray(e[t]))return null;"object"==typeof e[t]&&"[object Object]"===Object.prototype.toString.call(e[t])&&(e[t]="[object Object]")}return String(e)}return"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)?"[object Object]":String(t)}v("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(t,e,n)=>(t.set(e,n),""),has:(t,e)=>t.has(e),keys:t=>t.keys(),get:(t,e)=>t.get(e),identify:t=>t instanceof Map||at(t),represent:t=>{if(t instanceof Map)return t;const e=new Map,n=t;for(const i of Object.keys(n))e.set(i,n[i]);return e}}),v("tag:yaml.org,2002:map",{create:()=>({}),identify:at,represent:t=>{const e=new Map;for(const n of Object.keys(t))e.set(n,t[n]);return e},addPair:(t,e,n)=>{const i=mt(e);return null===i?"nested arrays are not supported inside keys":("__proto__"===i?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,"")},has:(t,e)=>{const n=mt(e);return null!==n&&Object.prototype.hasOwnProperty.call(t,n)},keys:t=>Object.keys(t),get:(t,e)=>t[String(e)]});var yt={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function bt(t,e,n,i,r){let o="",a="";const s=Math.floor(r/2)-1;return i-e>s&&(o=" ... ",e=i-s+o.length),n-i>s&&(a=" ...",n=i+s-a.length),{str:o+t.slice(e,n).replace(/\t/g,"â")+a,pos:i-e+o.length}}function xt(t,e){return" ".repeat(Math.max(e-t.length,0))+t}function vt(t,e){let n="";return t.mark?(t.mark.name&&(n+=`in "${t.mark.name}" `),n+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(n+=`\n\n${t.mark.snippet}`),`${t.reason} ${n}`):t.reason}var At=class extends Error{constructor(t,n){super(),e(this,"reason"),e(this,"mark"),this.name="YAMLException",this.reason=t,this.mark=n,this.message=vt(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(t){return`${this.name}: ${vt(this,t)}`}};function St(t,e,n,i=""){let r=0,o=0;for(let s=0;s<e;s++){const e=t.charCodeAt(s);10===e?(r++,o=s+1):13===e&&(r++,10===t.charCodeAt(s+1)&&s++,o=s+1)}const a={name:i,buffer:t,position:e,line:r,column:e-o};throw a.snippet=function(t,e){if(!t.buffer)return null;const n={...yt,...e},i=/\r?\n|\r|\0/g,r=[0],o=[];let a,s=-1;for(;a=i.exec(t.buffer);)o.push(a.index),r.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);let c="";const l=Math.min(t.line+n.linesAfter,o.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let f=1;f<=n.linesBefore&&!(s-f<0);f++){const e=bt(t.buffer,r[s-f],o[s-f],t.position-(r[s]-r[s-f]),u);c=`${" ".repeat(n.indent)}${xt((t.line-f+1).toString(),l)} | ${e.str}\n${c}`}const p=bt(t.buffer,r[s],o[s],t.position,u);c+=`${" ".repeat(n.indent)}${xt((t.line+1).toString(),l)} | ${p.str}\n`,c+=`${"-".repeat(n.indent+l+3+p.pos)}^\n`;for(let f=1;f<=n.linesAfter&&!(s+f>=o.length);f++){const e=bt(t.buffer,r[s+f],o[s+f],t.position-(r[s]-r[s+f]),u);c+=`${" ".repeat(n.indent)}${xt((t.line+f+1).toString(),l)} | ${e.str}\n`}return c.replace(/\n$/,"")}(a),new At(n,a)}function Ct(t){switch(t){case 48:return"\0";case 97:return"�";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"�";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"Â
";case 95:return"Â ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var It=new Array(256),Nt=new Array(256);for(let Ze=0;Ze<256;Ze++)It[Ze]=Ct(Ze)?1:0,Nt[Ze]=Ct(Ze);function kt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function Tt(t){return t>=48&&t<=57?t-48:(32|t)-97+10}function Et(t){return 120===t?2:117===t?4:8}function wt(t,e,n){let i=0;for(;e<n;){const n=t.charCodeAt(e);if(10===n)i++,e++;else if(13===n)i++,e++,10===t.charCodeAt(e)&&e++;else{if(32!==n&&9!==n)break;e++}}return{position:e,breaks:i}}function jt(t){return 1===t?" ":"\n".repeat(t-1)}function Ft(t,e,n,i,r,o){const a=i<0?0:i,s=t.slice(e,n).replace(/\r\n?/g,"\n"),c=""===s?[]:(s.endsWith("\n")?s.slice(0,-1):s).split("\n");let l="",u=!1,p=0,f=!1;for(const d of c){let t=0;for(;
2t<a&&32===d.charCodeAt(t);)t++;if(i<0||t>=d.length){p++;continue}const e=d.slice(a),n=e.charCodeAt(0);o?32===n||9===n?(f=!0,l+="\n".repeat(u?1+p:p)):f?(f=!1,l+="\n".repeat(p+1)):0===p?u&&(l+=" "):l+="\n".repeat(p):l+="\n".repeat(u?1+p:p),l+=e,u=!0,p=0}return 3===r?l+="\n".repeat(u?1+p:p):2!==r&&u&&(l+="\n"),l}function Ot(t,e){if(-1===e.valueStart)return"";const{valueStart:n,valueEnd:i}=e;if(e.fast)return t.slice(n,i);switch(e.style){case 2:return function(t,e,n){let i="",r=e,o=e,a=e;for(;r<n;){const e=t.charCodeAt(r);if(39===e)i+=t.slice(o,r)+"'",r+=2,o=a=r;else if(10===e||13===e){i+=t.slice(o,a);const e=wt(t,r,n);i+=jt(e.breaks),r=o=a=e.position}else r++,32!==e&&9!==e&&(a=r)}return i+t.slice(o,n)}(t,n,i);case 3:return function(t,e,n){let i="",r=e,o=e,a=e;for(;r<n;){const e=t.charCodeAt(r);if(92===e){i+=t.slice(o,r),r++;const e=t.charCodeAt(r);if(10===e||13===e)r=wt(t,r,n).position;else if(e<256&&It[e])i+=Nt[e],r++;else{let n=Et(e),o=0;for(;n>0;n--)r++,o=(o<<4)+Tt(t.charCodeAt(r));i+=kt(o),r++}o=a=r}else if(10===e||13===e){i+=t.slice(o,a);const e=wt(t,r,n);i+=jt(e.breaks),r=o=a=e.position}else r++,32!==e&&9!==e&&(a=r)}return i+t.slice(o,n)}(t,n,i);case 4:return Ft(t,n,i,e.indent,e.chomping,!1);case 5:return Ft(t,n,i,e.indent,e.chomping,!0);default:return function(t,e,n){let i="",r=e,o=e,a=e;for(;r<n;){const e=t.charCodeAt(r);if(10===e||13===e){i+=t.slice(o,a);const e=wt(t,r,n);i+=jt(e.breaks),r=o=a=e.position}else r++,32!==e&&9!==e&&(a=r)}return i+t.slice(o,a)}(t,n,i)}}var _t={"!":"!","!!":"tag:yaml.org,2002:"};function $t(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));const n=t.indexOf("!",1),i=-1===n?"!":t.slice(0,n+1),r=(null==e?void 0:e[i])??_t[i]??i;return decodeURIComponent(r)+decodeURIComponent(t.slice(i.length))}var Lt=-1,Pt={filename:"",schema:ht,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function qt(t){return"tagStart"in t&&t.tagStart!==Lt?t.tagStart:"anchorStart"in t&&t.anchorStart!==Lt?t.anchorStart:"valueStart"in t&&t.valueStart!==Lt?t.valueStart:"start"in t?t.start:0}function Mt(t,e){St(t.source,t.position,e,t.filename)}function Rt(t,e,n,i){try{return n.finalize(i)}catch(r){if(r instanceof At)throw r;St(t.source,e,r instanceof Error?r.message:String(r),t.filename)}}function Yt(t,e,n){const i=t[n];if(i)return i;for(const r of e)if(n.startsWith(r.tagName))return r}function Bt(t,e,n,i,r){const o=Yt(e,n,i);if(o)return o;Mt(t,`unknown ${r} tag !<${i}>`)}function Dt(t,e){const n=Ot(t.source,e),i=e.tagStart===Lt?"":t.source.slice(e.tagStart,e.tagEnd),r=t.schema.defaultScalarTag;if(""!==i){if("!"===i)return{value:n,tag:r};const e=$t(i,t.tagHandlers),o=Yt(t.schema.exact.scalar,t.schema.prefix.scalar,e);if(o){const i=o.resolve(n,!0,e);return i===m&&Mt(t,`cannot resolve a node with !<${e}> explicit tag`),{value:i,tag:o}}const a=Yt(t.schema.exact.mapping,t.schema.prefix.mapping,e)??Yt(t.schema.exact.sequence,t.schema.prefix.sequence,e);if(a){""!==n&&Mt(t,`cannot resolve a node with !<${e}> explicit tag`);const i=a.create(e);return{value:a.carrierIsResult?i:Rt(t,t.position,a,i),tag:a}}Mt(t,`unknown scalar tag !<${e}>`)}if(1===e.style){const e=t.schema.implicitScalarByFirstChar.get(n.charAt(0))??t.schema.implicitScalarAnyFirstChar;for(const t of e){const e=t.resolve(n,!1,t.tagName);if(e!==m)return{value:e,tag:t}}}return{value:r.resolve(n,!1,r.tagName),tag:r}}function Kt(t,e,n,i,r,o){const a=e.tagStart===Lt?"":t.source.slice(e.tagStart,e.tagEnd),s=""===a||"!"===a?r:$t(a,t.tagHandlers);return{tagName:s,tag:Bt(t,n,i,s,o)}}function Ut(t){return"mapping"===t.nodeKind}function Vt(t,e,n,i){for(const r of i.keys(n)){if(-1!==t.maxTotalMergeKeys&&++t.totalMergeKeys>t.maxTotalMergeKeys&&Mt(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`),e.tag.has(e.value,r))continue;const o=e.tag.addPair(e.value,r,i.get(n,r));o&&Mt(t,o),(e.overridable??(e.overridable=new Set)).add(r)}}function zt(t,e,n,i,r){var o,a;if(t.position=e.keyPosition,n===y)return void function(t,e,n,i){if(t.position=e.keyPosition,Ut(i))Vt(t,e,n,i);else if("sequence"===i.nodeKind&&Array.isArray(n))for(const r of n)Vt(t,e,r,e.tag);else Mt(t,"cannot merge mappings; the provided source object is unacceptable")}(t,e,i,r);t.json||!e.tag.has(e.value,n)||(null==(o=e.overridable)?void 0:o.has(n))||Mt(t,"duplicated mapping key");const s=e.tag.addPair(e.value,n,i);s&&Mt(t,s),null==(a=e.overridable)||a.delete(n)}function Wt(t,e,n){const i=t.frames[t.frames.length-1];if("document"===i.kind)i.value=e,i.hasValue=!0;else if("sequence"===i.kind){i.merge&&(Ut(n)||Mt(t,"cannot merge mappings; the provided source object is unacceptable"));const r=i.tag.addItem(i.value,e,i.index++);r&&Mt(t,r)}else if(i.hasKey){const r=i.key;i.key=void 0,i.hasKey=!1,zt(t,i,r,e,n)}else i.key=e,i.keyPosition=t.position,i.hasKey=!0}function Ht(t,e,n,i,r){if(e.anchorStart!==Lt){const o={value:n,tag:i,isValueFinal:r};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}var Gt=-1,Zt=Object.prototype.hasOwnProperty,Jt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qt=/[,\[\]{}]/,Xt=/^(?:!|!!|![0-9A-Za-z-]+!)$/,te=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,ee=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,ne=new RegExp(`^(?:${te})*$`),ie=new RegExp(`^(?:${ee})+$`),re=new RegExp(`^(?:!(?:${te})*|${ee}(?:${te})*)$`),oe={filename:"",maxDepth:100};function ae(t,e,n,i,r,o,a){t.events.push({type:2,start:e,anchorStart:n,anchorEnd:i,tagStart:r,tagEnd:o,style:a})}function se(t,e,n,i,r,o,a){t.events.push({type:3,start:e,anchorStart:n,anchorEnd:i,tagStart:r,tagEnd:o,style:a})}function ce(t,e){t.events.splice(e.eventsLength,0,{type:3,start:e.position,anchorStart:Gt,anchorEnd:Gt,tagStart:Gt,tagEnd:Gt,style:2})}function le(t,e,n,i,r,o,a,s,c=1,l=-1,u=!1){t.events.push({type:4,valueStart:e,valueEnd:n,anchorStart:i,anchorEnd:r,tagStart:o,tagEnd:a,style:s,chomping:c,indent:l,fast:u})}function ue(t){t.events.push({type:6})}function pe(t){le(t,Gt,Gt,Gt,Gt,Gt,Gt,1)}function fe(){return{anchorStart:Gt,anchorEnd:Gt,tagStart:Gt,tagEnd:Gt}}function de(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}function he(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.events.length=e.eventsLength}function ge(t,e){St(t.input.slice(0,t.length),t.position,e,t.filename)}function me(t){return 10===t||13===t}function ye(t){return 9===t||32===t}function be(t){return ye(t)||me(t)}function xe(t){return 0===t||be(t)}function ve(t){return 44===t||91===t||93===t||123===t||125===t}function Ae(t){return t>=48&&t<=57?t-48:-1}function Se(t){if(t>=48&&t<=57)return t-48;const e=32|t;return e>=97&&e<=102?e-97+10:-1}function Ce(t){return 120===t?2:117===t?4:85===t?8:0}function Ie(t){return 48===t||97===t||98===t||116===t||9===t||110===t||118===t||102===t||114===t||101===t||32===t||34===t||47===t||92===t||78===t||95===t||76===t||80===t}function Ne(t){10===t.input.charCodeAt(t.position)?t.position++:(t.position++,10===t.input.charCodeAt(t.position)&&t.position++),t.line++,t.lineStart=t.position,t.lineIndent=0,t.firstTabInLine=-1}
2function ke(t,e){let n=0,i=t.input.charCodeAt(t.position),r=t.position===t.lineStart||be(t.input.charCodeAt(t.position-1));for(;0!==i;){for(;ye(i);)r=!0,9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&r&&35===i)do{i=t.input.charCodeAt(++t.position)}while(!me(i)&&0!==i);if(!me(i))break;for(Ne(t),n++,r=!0,i=t.input.charCodeAt(t.position);32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return n}function Te(t,e=t.position){const n=t.input.charCodeAt(e);if((45===n||46===n)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)){const n=t.input.charCodeAt(e+3);return 0===n||be(n)}return!1}function Ee(t){let e=t.input.charCodeAt(t.position);for(;0!==e&&!me(e);)e=t.input.charCodeAt(++t.position)}function we(t,e,n){Jt.test(t.input.slice(e,n))&&ge(t,"the stream contains non-printable characters")}function je(t,e,n){if(33!==t.input.charCodeAt(t.position))return!1;e.tagStart!==Gt&&ge(t,"duplication of a tag property");const i=t.position;let r=!1,o=!1,a="!",s=t.input.charCodeAt(++t.position);60===s?(r=!0,s=t.input.charCodeAt(++t.position)):33===s&&(o=!0,a="!!",s=t.input.charCodeAt(++t.position));let c,l=t.position;if(r){for(;0!==s&&62!==s;)s=t.input.charCodeAt(++t.position);62!==s&&ge(t,"unexpected end of the stream within a verbatim tag"),c=t.input.slice(l,t.position),t.position++}else{for(;!(0===s||be(s)||n&&ve(s));)33===s&&(o?ge(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(l-1,t.position+1),Xt.test(a)||ge(t,"named tag handle cannot contain such characters"),o=!0,l=t.position+1)),s=t.input.charCodeAt(++t.position);c=t.input.slice(l,t.position),Qt.test(c)&&ge(t,"tag suffix cannot contain flow indicator characters")}return c&&!(r?ne.test(c):ie.test(c))&&ge(t,`tag name cannot contain such characters: ${c}`),r||"!"===a||"!!"===a||Zt.call(t.tagHandlers,a)||ge(t,`undeclared tag handle "${a}"`),e.tagStart=i,e.tagEnd=t.position,!0}function Fe(t,e){if(38!==t.input.charCodeAt(t.position))return!1;e.anchorStart!==Gt&&ge(t,"duplication of an anchor property"),t.position++;const n=t.position;for(;0!==t.input.charCodeAt(t.position)&&!be(t.input.charCodeAt(t.position))&&!ve(t.input.charCodeAt(t.position));)t.position++;return t.position===n&&ge(t,"name of an anchor node must contain at least one character"),e.anchorStart=n,e.anchorEnd=t.position,!0}function Oe(t,e){ke(t,!1),t.lineIndent<e&&ge(t,"deficient indentation")}function _e(t,e,n,i){if(!function(t,e){const n=t.input.charCodeAt(t.position),i=1===e;if(0===n||be(n)||35===n||38===n||42===n||33===n||124===n||62===n||39===n||34===n||37===n||64===n||96===n||i&&ve(n))return!1;if(63===n||45===n){const e=t.input.charCodeAt(t.position+1);if(xe(e)||i&&ve(e))return!1}return!0}(t,n))return!1;const r=t.position;let o=t.position,a=t.input.charCodeAt(t.position);const s=1===n;let c=!1;for(;0!==a&&(t.position!==t.lineStart||!Te(t));){if(58===a){const e=t.input.charCodeAt(t.position+1);if(xe(e)||s&&ve(e))break}else if(35===a){if(be(t.input.charCodeAt(t.position-1)))break}else{if(s&&ve(a))break;if(me(a)){const n=t.position,i=t.line,r=t.lineStart,o=t.lineIndent;if(ke(t,!1),t.lineIndent>=e){c=!0,a=t.input.charCodeAt(t.position);continue}t.position=n,t.line=i,t.lineStart=r,t.lineIndent=o;break}}ye(a)||(o=t.position+1),a=t.input.charCodeAt(++t.position)}return o!==r&&(we(t,r,o),le(t,r,o,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,1,1,-1,!c),!0)}function $e(t,e){const n=t.line;ke(t,!0),(t.line>n&&t.lineIndent<e||-1!==t.firstTabInLine&&t.lineIndent<e)&&ge(t,"deficient indentation")}function Le(t,e,n){if(-1!==t.firstTabInLine||45!==t.input.charCodeAt(t.position)||!xe(t.input.charCodeAt(t.position+1)))return!1;for(ae(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1);45===t.input.charCodeAt(t.position)&&xe(t.input.charCodeAt(t.position+1));){-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,ge(t,"tab characters must not be used in indentation"));const n=t.line;t.position++;const i=ke(t,!0)>0;if(-1!==t.firstTabInLine&&45===t.input.charCodeAt(t.position)&&xe(t.input.charCodeAt(t.position+1))&&ge(t,"bad indentation of a sequence entry"),i&&t.lineIndent<=e?pe(t):qe(t,e,3,!1,!0),ke(t,!0),t.lineIndent<e||t.position>=t.length)break;t.lineIndent>e&&ge(t,"bad indentation of a sequence entry"),t.line===n&&45===t.input.charCodeAt(t.position)&&xe(t.input.charCodeAt(t.position+1))&&ge(t,"bad indentation of a sequence entry")}return ue(t),!0}function Pe(t,e,n,i){let r=!1,o=!1,a=!1,s=!1;if(-1!==t.firstTabInLine)return!1;let c=t.input.charCodeAt(t.position);for(;0!==c;){r||-1===t.firstTabInLine||(t.position=t.firstTabInLine,ge(t,"tab characters must not be used in indentation"));const l=t.input.charCodeAt(t.position+1),u=t.line;if(63!==c&&58!==c||!xe(l)){r&&(pe(t),r=!1);const e=de(t);if(!qe(t,n,2,!1,!0))break;if(t.line===u){for(c=t.input.charCodeAt(t.position);ye(c);)c=t.input.charCodeAt(++t.position);if(58===c){if(c=t.input.charCodeAt(++t.position),xe(c)||ge(t,"a whitespace character is expected after the key-value separator within a block mapping"),!a){for(he(t,e),se(t,e.position,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,1),a=!0,qe(t,n,2,!1,!0),c=t.input.charCodeAt(t.position);ye(c);)c=t.input.charCodeAt(++t.position);t.position++}o=!0,r=!1,s=!1}else{if(!o)return i.anchorStart===Gt&&i.tagStart===Gt||(he(t,e),!1);ge(t,"expected ':' after a mapping key")}}else{if(!o)return i.anchorStart===Gt&&i.tagStart===Gt||(he(t,e),!1);ge(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else a||(se(t,t.position,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,1),a=!0),63===c?(r&&pe(t),o=!0,r=!0):(r||(pe(t),o=!0),r=!1),t.position+=1,s=!0;if(qe(t,e,4,!0,s)&&(s=!1),r||s&&(pe(t),s=!1),ke(t,!0),c=t.input.charCodeAt(t.position),(t.line===u||t.lineIndent>e)&&0!==c)ge(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return!!o&&(r&&pe(t),a&&ue(t),!0)}function qe(t,e,n,i,r,o=!0){var a,s;t.depth>=t.maxDepth&&ge(t,`nesting exceeded maxDepth (${t.maxDepth})`),t.depth++;let c=1,l=!1,u=!1,p=null;const f=fe();let d=4===n||3===n,h=d;const g=d;if(i&&ke(t,!0)&&(l=!0,c=t.lineIndent>e?1:t.lineIndent===e?0:-1),t.position===t.lineStart&&Te(t))return t.depth--,!1;if(1===c)for(;;){const i=t.input.charCodeAt(t.position),r=de(t);if(l&&1!==c&&(33===i||38===i))break;if(l&&g&&(f.tagStart!==Gt||f.anchorStart!==Gt)&&(33===i||38===i)){const n=de(t),i=e+1;if(Pe(t,t.position-t.lineStart,i,f)&&3===(null==(a=t.events[n.eventsLength])?void 0:a.type))return t.depth--,!0;he(t,n)}if(l&&(33===i&&f.tagStart!==Gt||38===i&&f.anchorStart!==Gt))break;if(!je(t,f,1===n)&&!Fe(t,f))break;null===p&&(p=r),ke(t,!0)?(l=!0,h=g,c=t.lineIndent>e?1:t.lineIndent===e?0:-1):h=!1}if(h&&(h=l||r),1===c||4===n){const i=1===n||2===n?e:e+1,r=t.position-t.lineStart;if(1===c)if(h&&(Le(t,r,f)||Pe(t,r,i,f))||function(t,e,n){const i=t.input.charCodeAt(t.position),r=123===i,o=t.position;let a=!0;if(91!==i&&123!==i)return!1;const s=r?125:93;for(r?se(t,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2):ae(t,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2),t.position++;0!==t.input.charCodeAt(t.position);){$e(t,e);let n=t.input.charCodeAt(t.position);if(n===s)return t.position++,ue(t),!0;a?44===n&&ge(t,"expected the node content, but found ','"):ge(t,"missed comma between flow collection entries");let i=!1,o=!1;63===n&&be(t.input.charCodeAt(t.position+1))&&(i=o=!0,t.position+=1,$e(t,e));const c=t.line,l=de(t),u=qe(t,e,1,!1,!0);$e(t,e),n=t.input.charCodeAt(t.position),(r||o||t.line===c)&&58===n?(i=!0,t.position++,$e(t,e),r||ce(t,l),u||pe(t),qe(t,e,1,!1,!0)||pe(t),$e(t,e),r||ue(t)):r&&i?(u||pe(t),pe(t)):r?pe(t):i&&(ce(t,l),u||pe(t),pe(t),ue(t)),n=t.input.charCodeAt(t.position),44===n?(a=!0,t.position++):a=!1}ge(t,"unexpected end of the stream within a flow collection")}(t,i,f))u=!0;else{const e=t.input.charCodeAt(t.position);if(null!==p&&o&&g&&!h&&124!==e&&62!==e){const e=de(t),n=p.position-p.lineStart;he(t,p),Pe(t,n,i,fe())&&3===(null==(s=t.events[e.eventsLength])?void 0:s.type)?u=!0:he(t,e)}!u&&(d&&function(t,e,n){const i=t.input.charCodeAt(t.position);let r=1,o=-1,a=!1;if(124!==i&&62!==i)return!1;const s=124===i?4:5;for(t.position++;0!==t.input.charCodeAt(t.position);){const n=t.input.charCodeAt(t.position),i=Ae(n);if(43===n||45===n)1!==r&&ge(t,"repeat of a chomping mode identifier"),r=43===n?3:2,t.position++;else{if(!(i>=0))break;0===i&&ge(t,"bad explicit indentation width of a block scalar; it cannot be less than one"),a&&ge(t,"repeat of an indentation width identifier"),o=e+i-1,a=!0,t.position++}}let c=!1;for(;ye(t.input.charCodeAt(t.position));)c=!0,t.position++;c&&35===t.input.charCodeAt(t.position)&&Ee(t),me(t.input.charCodeAt(t.position))?Ne(t):0!==t.input.charCodeAt(t.position)&&ge(t,"a line break is expected");let l=a?o:-1,u=0;const p=t.position;let f=t.position;for(;0!==t.input.charCodeAt(t.position);){const n=t.position;let i=0;for(;32===t.input.charCodeAt(n+i);)i++;const r=t.input.charCodeAt(n+i);if(0===r){l>=0?i>l&&(f=n+i):i>0&&(f=n+i);break}if(n===t.lineStart&&Te(t,n))break;if(!a&&-1===l&&me(r)&&(u=Math.max(u,i)),a||-1!==l||me(r)||(9===r&&i<e&&(t.position=n+i,ge(t,"tab characters must not be used in indentation")),i<u&&(t.position=n+i,ge(t,"bad indentation of a mapping entry"))),-1===l&&0!==r&&!me(r)&&i<e){t.lineIndent=i,t.position=n+i;break}a||0===r||me(r)||-1!==l||(l=i);const o=-1===l?e+1:l;if(0!==r&&!me(r)&&i<o){t.lineIndent=i,t.position=n+i;break}Ee(t),f=t.position,me(t.input.charCodeAt(t.position))&&(Ne(t),f=t.position)}return we(t,p,f),le(t,p,f,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,s,r,l),!0}(t,i,f)||function(t,e,n){if(39!==t.input.charCodeAt(t.position))return!1;t.position++;const i=t.position;let r=!0;for(;0!==t.input.charCodeAt(t.position);){const o=t.input.charCodeAt(t.position);if(39===o){if(39===t.input.charCodeAt(t.position+1)){r=!1,t.position+=2;continue}const e=t.position;return t.position++,le(t,i,e,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2,1,-1,r),!0}me(o)?(r=!1,Oe(t,e)):t.position===t.lineStart&&Te(t)?ge(t,"unexpected end of the document within a single quoted scalar"):9!==o&&o<32?ge(t,"expected valid JSON character"):t.position++}ge(t,"unexpected end of the stream within a single quoted scalar")}(t,i,f)||function(t,e,n){if(34!==t.input.charCodeAt(t.position))return!1;t.position++;const i=t.position;let r=!0;for(;0!==t.input.charCodeAt(t.position);){const o=t.input.charCodeAt(t.position);if(34===o){const e=t.position;return t.position++,le(t,i,e,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,3,1,-1,r),!0}if(92===o){r=!1;const n=t.input.charCodeAt(++t.position);if(me(n))Oe(t,e);else if(Ie(n))t.position++;else{let e=Ce(n);for(0===e&&ge(t,"unknown escape sequence");e-- >0;)t.position++,Se(t.input.charCodeAt(t.position))<0&&ge(t,"expected hexadecimal character");t.position++}}else me(o)?(r=!1,Oe(t,e)):t.position===t.lineStart&&Te(t)?ge(t,"unexpected end of the document within a double quoted scalar"):9!==o&&o<32?ge(t,"expected valid JSON character"):t.position++}ge(t,"unexpected end of the stream within a double quoted scalar")}(t,i,f)||function(t,e){if(42!==t.input.charCodeAt(t.position))return!1;e.anchorStart===Gt&&e.tagStart===Gt||ge(t,"alias node should not have any properties"),t.position++;const n=t.position;for(;0!==t.input.charCodeAt(t.position)&&!be(t.input.charCodeAt(t.position))&&!ve(t.input.charCodeAt(t.position));)t.position++;return t.position===n&&ge(t,"name of an alias node must contain at least one character"),function(t,e,n){t.events.push({type:5,anchorStart:e,anchorEnd:n}
2)}(t,n,t.position),!0}(t,f)||_e(t,i,n,f))&&(u=!0)}else 0===c&&(u=h&&Le(t,r,f))}return d=d&&!u,u||f.anchorStart===Gt&&f.tagStart===Gt&&!d||(le(t,Gt,Gt,f.anchorStart,f.anchorEnd,f.tagStart,f.tagEnd,1),u=!0),t.depth--,u||f.anchorStart!==Gt||f.tagStart!==Gt}function Me(t){if(t.lineIndent>0||37!==t.input.charCodeAt(t.position))return!1;t.position++;const e=t.position;for(;0!==t.input.charCodeAt(t.position)&&!be(t.input.charCodeAt(t.position));)t.position++;const n=t.input.slice(e,t.position),i=[];for(0===n.length&&ge(t,"directive name must not be less than one character in length");0!==t.input.charCodeAt(t.position)&&!me(t.input.charCodeAt(t.position));){for(;ye(t.input.charCodeAt(t.position));)t.position++;if(35===t.input.charCodeAt(t.position)||me(t.input.charCodeAt(t.position))||0===t.input.charCodeAt(t.position))break;const e=t.position;for(;0!==t.input.charCodeAt(t.position)&&!be(t.input.charCodeAt(t.position));)t.position++;i.push(t.input.slice(e,t.position))}if(me(t.input.charCodeAt(t.position))&&Ne(t),"YAML"===n){t.directives.some(t=>"yaml"===t.kind)&&ge(t,"duplication of %YAML directive"),1!==i.length&&ge(t,"YAML directive accepts exactly one argument");const e=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);null===e&&ge(t,"ill-formed argument of the YAML directive"),1!==parseInt(e[1],10)&&ge(t,"unacceptable YAML version of the document"),t.directives.push({kind:"yaml",version:i[0]})}else if("TAG"===n){2!==i.length&&ge(t,"TAG directive accepts exactly two arguments");const[e,n]=i;Xt.test(e)||ge(t,"ill-formed tag handle (first argument) of the TAG directive"),Zt.call(t.tagHandlers,e)&&ge(t,`there is a previously declared suffix for "${e}" tag handle`),re.test(n)||ge(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagHandlers[e]=n,t.directives.push({kind:"tag",handle:e,prefix:n})}return!0}function Re(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(ke(t,!0);Me(t);)e=!0,ke(t,!0);let n=!1,i=!1,r=!0;if(0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)&&xe(t.input.charCodeAt(t.position+3))){n=!0;const e=t.line;t.position+=3,ke(t,!0),r=t.line>e}else e&&ge(t,"directives end mark is expected");const o=t.events.length;if(!n&&t.position===t.lineStart&&46===t.input.charCodeAt(t.position)&&Te(t))return t.position+=3,void ke(t,!0);if(function(t,e,n){t.events.push({type:1,explicitStart:e,explicitEnd:n,directives:t.directives})}(t,n,!1),qe(t,t.lineIndent-1,4,!1,r,r)||pe(t),ke(t,!0),t.position===t.lineStart&&Te(t)&&(i=46===t.input.charCodeAt(t.position),i)){const e=t.line;t.position+=3,ke(t,!0),t.line===e&&t.position<t.length&&ge(t,"end of the stream or a document separator is expected")}const a=t.events[o];1===(null==a?void 0:a.type)&&(a.explicitEnd=i),ue(t),i||!(t.position<t.length)||t.position===t.lineStart&&Te(t)||ge(t,"end of the stream or a document separator is expected")}var Ye={...oe,...Pt};function Be(t,e={}){const n={...Ye,...e},i=String(t),r=Object.keys(oe),o=Object.keys(Pt);return function(t,e){const n={...Pt,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){const t=n.events[n.eventIndex++];switch(n.position=qt(t),t.type){case 1:n.anchors=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(const e of t.directives)"tag"===e.kind&&(n.tagHandlers[e.handle]=e.prefix);n.frames.push({kind:"document",position:n.position,value:void 0,hasValue:!1});break;case 4:{const{value:e,tag:i}=Dt(n,t);Ht(n,t,e,i,!0),Wt(n,e,i);break}case 2:{const e=Kt(n,t,n.schema.exact.sequence,n.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),i=e.tag.create(e.tagName),r=Ht(n,t,i,e.tag,e.tag.carrierIsResult),o=n.frames[n.frames.length-1],a=void 0!==o&&"mapping"===o.kind&&o.hasKey&&o.key===y;n.frames.push({kind:"sequence",position:n.position,value:i,tag:e.tag,anchor:r,index:0,merge:a});break}case 3:{const e=Kt(n,t,n.schema.exact.mapping,n.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),i=e.tag.create(e.tagName),r=Ht(n,t,i,e.tag,e.tag.carrierIsResult);n.frames.push({kind:"mapping",position:n.position,value:i,tag:e.tag,anchor:r,key:void 0,keyPosition:n.position,hasKey:!1,overridable:null});break}case 5:{-1!==n.maxAliases&&++n.aliasCount>n.maxAliases&&Mt(n,`aliases exceeded maxAliases (${n.maxAliases})`);const e=n.source.slice(t.anchorStart,t.anchorEnd),i=n.anchors.get(e);i||Mt(n,`unidentified alias "${e}"`),i.isValueFinal||Mt(n,`recursive alias "${e}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),Wt(n,i.value,i.tag);break}case 6:{const t=n.frames.pop();if("document"===t.kind)n.documents.push(t.value);else{const e=t.tag.carrierIsResult?t.value:Rt(n,t.position,t.tag,t.value);t.anchor&&(t.anchor.value=e,t.anchor.isValueFinal=!0),Wt(n,e,t.tag)}break}}}return n.documents}(function(t,e){const n=t.length,i={...oe,...e,input:`${t}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},r=t.indexOf("\0");for(-1!==r&&St(t,r,"null byte is not allowed in input",i.filename),65279===i.input.charCodeAt(i.position)&&i.position++;i.position<i.length&&(ke(i,!0),!(i.position>=i.length));){const t=i.position;Re(i),i.position===t&&ge(i,"can not read a document")}return i.events}(i,st(n,r)),{...st(n,o),source:i})}function De(t){return{uuid:t.question_uuid,question:t.question_text,options:t.question_options,answersIndexes:t.question_answers_indexes,skillIds:t.skill_ids}}function Ke(t){return{uuid:t.question_uuid,question:t.question_text,skillIds:t.skill_ids}}function Ue(t){const e=t.paragraphs.map(ze),n=t.reading.map(De),i=t.writing?t.writing.map(Ke):null;return{uuid:t.uuid,freckleTextLevel:t.freckle_text_level,isDeprecated:t.is_deprecated,paragraphs:e,writing:i,reading:n,audioFilename:t.audio_filename,context:t.context}}function Ve(t){const e=function(t,e){const n=Be(t,e);if(0===n.length)throw new At("expected a document, but the input is empty");if(1===n.length)return n[0];throw new At("expected a single document in the stream, but found more")}(t)[0];return{uuid:e.article_uuid,title:e.title,diagram:e.diagram,diagramUrl:e.diagram_url,genre:e.genre,isSelfAssignable:e.is_self_assignable,isOnlySocialStudies:e.is_only_social_studies,isOnlyScience:e.is_only_science,levels:e.levels.map(Ue),author:e.author}}function ze(t){const e=Object.keys(t);if(2===e.length||3===e.length)return void 0!==t.picture_url?{type:"picture_url",content:t.picture_url,caption:t.caption}:{type:"picture",content:t.picture,caption:t.caption};const n=e[0];return{type:n,content:t[n]}}gt.withTags({...K,resolve:(t,e,n)=>{const i=K.resolve(t,e,n);return i===m?M.resolve(t,e,n):i}},{...Q,resolve:(t,e,n)=>{const i=Q.resolve(t,e,n);return i===m?z.resolve(t,e,n):i}});const We=(t,e)=>{switch(e.tag){case"render-loaded-file":return{tag:"file-loaded",...e.state};case"change-ela-article-level":switch(t.tag){case"no-file-loaded":return t;case"file-loaded":{const n=t.article.levels.find(t=>t.freckleTextLevel===e.textLevel);return void 0===n?t:{...t,currentArticleLevel:n}}default:return p.exhaustive(t)}default:return p.exhaustive(e)}};function He({initialState:t}){const[e,f]=i.useReducer(We,t??{tag:"no-file-loaded"}),m=t=>function(t){return new Promise(e=>{const i=new FileReader;i.readAsText(t),i.onloadend=()=>{const r=Ve(i.result),o=n(r),a=d(o);e({article:o,fileInputValue:t,currentArticleLevel:a})}})}(t).then(t=>f({tag:"render-loaded-file",state:t})),[y,b,x]="file-loaded"===e.tag?[r.jsx(h,{language:o.En,article:e.article,vocabWords:[],currentArticleLevel:e.currentArticleLevel,rlSkillToStandardMap:new Map},"preview"),r.jsxs(a,{alignItems:"center",flexDirection:"column",children:[r.jsx(s,{children:c(l(e.article.title))}),r.jsx("img",{src:e.article.diagramUrl})]},"info"),r.jsx(u,{onClick:()=>{switch(e.tag){case"file-loaded":m(e.fileInputValue);break;case"no-file-loaded":break;default:p.exhaustive(e)}},children:"Reload"},"reload-btn")]:[null,null,null],v="file-loaded"===e.tag?r.jsx(g,{article:e.article,currentArticleLevel:e.currentArticleLevel,onSelectElaArticleLevelId:t=>f({tag:"change-ela-article-level",textLevel:t})}):null;return r.jsxs(r.Fragment,{children:[r.jsxs(a,{justifyContent:"space-around",alignItems:"center",children:[r.jsx("input",{type:"file",onChange:t=>{if(null!==t.target.files){const e=t.target.files[0];m(e)}},"data-test":"yaml-file-input"}),v,x]}),b,y]})}function Ge(){return r.jsx(f,{pageHeaderText:"ELA Article Debugger",children:r.jsx(He,{})})}
2export{Ge as default}; 3//# sourceMappingURL=index-1YR_dL2z.js.map
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.