Useanidentitypropertyfunctioninstead:\`{ "type": "identity", "property": ${JSON.stringify(A[1])} }\`.`)];constC=[];returni.layerType==="symbol"&&(m==="text-field"&&o&&!o.glyphs&&C.push(newAe(r,f,'use of "text-field" requires a style "glyphs" property')),m==="text-font"&&Bt(wn(f))&&jt(f.type)==="identity"&&C.push(newAe(r,f,'"text-font" does not support identity functions'))),C.concat(a({key:i.key,value:f,valueSpec:S,style:o,styleSpec:d,expressionContext:"property",propertyType:e,propertyKey:m}))}functiondl(i){returnpl(i,"paint")}functionfl(i){returnpl(i,"layout")}functionml(i){lete=[];constr=i.value,a=i.key,o=i.style,d=i.styleSpec;r.type||r.ref||e.push(newAe(a,r,'either "type" or "ref" is required'));letf=jt(r.type);constm=jt(r.ref);if(r.id){consty=jt(r.id);for(letv=0;v<i.arrayIndex;v++){constS=o.layers[v];jt(S.id)===y&&e.push(newAe(a,r.id,`duplicate layer id "${r.id}", previously used at line ${S.id.__line__}`))}}if("ref"inr){lety;["type","source","source-layer","filter","layout"].forEach((v=>{vinr&&e.push(newAe(a,r[v],`"${v}" is prohibited for ref layers`))})),o.layers.forEach((v=>{jt(v.id)===m&&(y=v)})),y?y.ref?e.push(newAe(a,r.ref,"ref cannot reference another ref layer")):f=jt(y.type):e.push(newAe(a,r.ref,`ref layer "${m}" not found`))}elseif(f!=="background")if(r.source){consty=o.sources&&o.sources[r.source],v=y&&jt(y.type);y?v==="vector"&&f==="raster"?e.push(newAe(a,r.source,`layer "${r.id}" requires a raster source`)):v!=="raster-dem"&&f==="hillshade"?e.push(newAe(a,r.source,`layer "${r.id}" requires a raster-dem source`)):v==="raster"&&f!=="raster"?e.push(newAe(a,r.source,`layer "${r.id}" requires a vector source`)):v!=="vector"||r["source-layer"]?v==="raster-dem"&&f!=="hillshade"?e.push(newAe(a,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):f!=="line"||!r.paint||!r.paint["line-gradient"]||v==="geojson"&&y.lineMetrics||e.push(newAe(a,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(newAe(a,r,`layer "${r.id}" must specify a "source-layer"`)):e.push(newAe(a,r.source,`source "${r.source}" not found`))}elsee.push(newAe(a,r,'missing required property "source"'));returne=e.concat(zi({key:a,value:r,valueSpec:d.layer,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,objectElementValidators:{"*":()=>[],type:()=>i.validateSpec({key:`${a}.type`,value:r.type,valueSpec:d.layer.type,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,object:r,objectKey:"type"}),filter:Xn,layout:y=>zi({layer:r,key:y.key,value:y.value,style:y.style,styleSpec:y.styleSpec,validateSpec:y.validateSpec,objectElementValidators:{"*":v=>fl(br({layerType:f},v))}}),paint:y=>zi({layer:r,key:y.key,value:y.value,style:y.style,styleSpec:y.styleSpec,validateSpec:y.validateSpec,objectElementValidators:{"*":v=>dl(br({layerType:f},v))}})}})),e}functionSr(i){conste=i.value,r=i.key,a=xt(e);returna!=="string"?[newAe(r,e,`string expected, ${a} found`)]:[]}constba={promoteId:function({key:i,value:e}){if(xt(e)==="string")returnSr({key:i,value:e});{constr=[];for(constaine)r.push(...Sr({key:`${i}.${a}`,value:e[a]}));returnr}}};functionHi(i){conste=i.value,r=i.key,a=i.styleSpec,o=i.style,d=i.validateSpec;if(!e.type)return[newAe(r,e,'"type" is required')];constf=jt(e.type);letm;switch(f){case"vector":case"raster":returnm=zi({key:r,value:e,valueSpec:a[`source_${f.replace("-","_")}`],style:i.style,styleSpec:a,objectElementValidators:ba,validateSpec:d}),m;case"raster-dem":returnm=(function(y){varv;constS=(v=y.sourceName)!==null&&v!==void0?v:"",A=y.value,C=y.styleSpec,z=C.source_raster_dem,D=y.style;letO=[];constq=xt(A);if(A===void0)returnO;if(q!=="object")returnO.push(newAe("source_raster_dem",A,`object expected, ${q} found`)),O;constH=jt(A.encoding)==="custom",re=["redFactor","greenFactor","blueFactor","baseShift"],Y=y.value.encoding?`"${y.value.encoding}"`:"Default";for(constaeinA)!H&&re.includes(ae)?O.push(newAe(ae,A[ae],`In "${S}": "${ae}" is only valid when "encoding" is se
`),G=_.createShader(_.FRAGMENT_SHADER);if(_.isContextLost())return void(this.failedToCreate=!0);if(_.shaderSource(G,ee),_.compileShader(G),!_.getShaderParameter(G,_.COMPILE_STATUS))throw new Error(`Couldnotcompilefragmentshader:${_.getShaderInfoLog(G)}`);_.attachShader(this.program,G);const te=_.createShader(_.VERTEX_SHADER);if(_.isContextLost())return void(this.failedToCreate=!0);if(_.shaderSource(te,se),_.compileShader(te),!_.getShaderParameter(te,_.COMPILE_STATUS))throw new Error(`Couldnotcompilevertexshader:${_.getShaderInfoLog(te)}`);_.attachShader(this.program,te),this.attributes={};const ce={};this.numAttributes=T.length;for(let ue=0;ue<this.numAttributes;ue++)T[ue]&&(_.bindAttribLocation(this.program,ue,T[ue]),this.attributes[T[ue]]=ue);if(_.linkProgram(this.program),!_.getProgramParameter(this.program,_.LINK_STATUS))throw new Error(`Programfailedtolink:${_.getProgramInfoLog(this.program)}`);_.deleteShader(te),_.deleteShader(G);for(let ue=0;ue<$.length;ue++){const me=$[ue];if(me&&!ce[me]){const be=_.getUniformLocation(this.program,me);be&&(ce[me]=be)}}this.fixedUniforms=c(t,ce),this.terrainUniforms=((ue,me)=>({u_depth:new l.aL(ue,me.u_depth),u_terrain:new l.aL(ue,me.u_terrain),u_terrain_dim:new l.aM(ue,me.u_terrain_dim),u_terrain_matrix:new l.aN(ue,me.u_terrain_matrix),u_terrain_unpack:new l.aO(ue,me.u_terrain_unpack),u_terrain_exaggeration:new l.aM(ue,me.u_terrain_exaggeration)}))(t,ce),this.binderUniforms=s?s.getUniforms(t,ce):[]}draw(t,n,s,c,p,g,_,x,b,T,I,P,V,N,$,B,ee,se){const G=t.gl;if(this.failedToCreate)return;if(t.program.set(this.program),t.setDepthMode(s),t.setStencilMode(c),t.setColorMode(p),t.setCullFace(g),x){t.activeTexture.set(G.TEXTURE2),G.bindTexture(G.TEXTURE_2D,x.depthTexture),t.activeTexture.set(G.TEXTURE3),G.bindTexture(G.TEXTURE_2D,x.texture);for(const ce in this.terrainUniforms)this.terrainUniforms[ce].set(x[ce])}for(const ce in this.fixedUniforms)this.fixedUniforms[ce].set(_[ce]);$&&$.setUniforms(t,this.binderUniforms,V,{zoom:N});let te=0;switch(n){case G.LINES:te=2;break;case G.TRIANGLES:te=3;break;case G.LINE_STRIP:te=1}for(const ce of P.get()){const ue=ce.vaos||(ce.vaos={});(ue[b]||(ue[b]=new yn)).bind(t,this,T,$?$.getPaintVertexBuffers():[],I,ce.vertexOffset,B,ee,se),G.drawElements(n,ce.primitiveLength*te,G.UNSIGNED_SHORT,ce.primitiveOffset*te*2)}}}function or(u,t,n){const s=1/J(n,1,t.transform.tileZoom),c=Math.pow(2,n.tileID.overscaledZ),p=n.tileSize*Math.pow(2,t.transform.tileZoom)/c,g=p*(n.tileID.canonical.x+n.tileID.wrap*c),_=p*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[s,u.fromScale,u.toScale],u_fade:u.t,u_pixel_coord_upper:[g>>16,_>>16],u_pixel_coord_lower:[65535&g,65535&_]}}const zs=(u,t,n,s)=>{const c=t.style.light,p=c.properties.get("position"),g=[p.x,p.y,p.z],_=(function(){var b=new l.A(9);return l.A!=Float32Array&&(b[1]=0,b[2]=0,b[3]=0,b[5]=0,b[6]=0,b[7]=0),b[0]=1,b[4]=1,b[8]=1,b})();c.properties.get("anchor")==="viewport"&&(function(b,T){var I=Math.sin(T),P=Math.cos(T);b[0]=P,b[1]=I,b[2]=0,b[3]=-I,b[4]=P,b[5]=0,b[6]=0,b[7]=0,b[8]=1})(_,-t.transform.angle),(function(b,T,I){var P=T[0],V=T[1],N=T[2];b[0]=P*I[0]+V*I[3]+N*I[6],b[1]=P*I[1]+V*I[4]+N*I[7],b[2]=P*I[2]+V*I[5]+N*I[8]})(g,g,_);const x=c.properties.get("color");return{u_matrix:u,u_lightpos:g,u_lightintensity:c.properties.get("intensity"),u_lightcolor:[x.r,x.g,x.b],u_vertical_gradient:+n,u_opacity:s}},Jr=(u,t,n,s,c,p,g)=>l.e(zs(u,t,n,s),or(p,t,g),{u_height_factor:-Math.pow(2,c.overscaledZ)/g.tileSize/8}),Ho=u=>({u_matrix:u}),Ds=(u,t,n,s)=>l.e(Ho(u),or(n,t,s)),ja=(u,t)=>({u_matrix:u,u_world:t}),qa=(u,t,n,s,c)=>l.e(Ds(u,t,n,s),{u_world:c}),Qr=(u,t,n,s)=>{const c=u.transform;let p,g;if(s.paint.get("circle-pitch-alignment")==="map"){const _=J(n,1,c.zoom);p=!0,g=[_,_]}else p=!1,g=c.pixelsToGLUnits;return{u_camera_to_center_distance:c.cameraToCenterDistance,u_scale_with_map:+(s.paint.get("circle-pitch-scale")==="map"),u_matrix:u.translatePosMatrix(t.posMatrix,n,s.paint.get("circle-translate"),s.paint.get("circle-translate-anchor")),u_pitch_with_map:+p,u_device_pixel_ratio:u
<divclass="maplibregl-desktop-message">${u}</div>
<divclass="maplibregl-mobile-message">${typeofthis._cooperativeGestures!="boolean"&&this._cooperativeGestures.mobileHelpText?this._cooperativeGestures.mobileHelpText:"Use two fingers to move the map"}</div>
`,this._cooperativeGesturesScreen.setAttribute("aria-hidden","true"),this._canvasContainer.addEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.add("maplibregl-cooperative-gestures")}_destroyCooperativeGestures(){W.remove(this._cooperativeGesturesScreen),this._canvasContainer.removeEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.remove("maplibregl-cooperative-gestures")}_resizeCanvas(u,t,n){this._canvas.width=Math.floor(n*u),this._canvas.height=Math.floor(n*t),this._canvas.style.width=`${u}px`,this._canvas.style.height=`${t}px`}_setupPainter(){const u={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let t=null;this._canvas.addEventListener("webglcontextcreationerror",(s=>{t={requestedAttributes:u},s&&(t.statusMessage=s.statusMessage,t.type=s.type)}),{once:!0});const n=this._canvas.getContext("webgl2",u)||this._canvas.getContext("webgl",u);if(!n){const s="Failed to initialize WebGL";throw t?(t.message=s,new Error(JSON.stringify(t))):new Error(s)}this.painter=new wn(n,this.transform),Se.testSupport(n)}_onCooperativeGesture(u,t,n){return!t&&n<2&&(this._cooperativeGesturesScreen.classList.add("maplibregl-show"),setTimeout((()=>{this._cooperativeGesturesScreen.classList.remove("maplibregl-show")}),100)),!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(u){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||u,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(u){return this._update(),this._renderTaskQueue.add(u)}_cancelRenderFrame(u){this._renderTaskQueue.remove(u)}_render(u){const t=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(u),this._removed)return;let n=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const c=this.transform.zoom,p=l.h.now();this.style.zoomHistory.update(c,p);const g=new l.a8(c,{now:p,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),_=g.crossFadingFactor();_===1&&_===this._crossFadingFactor||(n=!0,this._crossFadingFactor=_),this.style.update(g)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,t,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding}),this.fire(new l.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,l.bg.mark(l.bh.load),this.fire(new l.k("load"))),this.style&&(this.style.hasTransitions()||n)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const s=this._sourcesDirty||this._styleDirty||this._placementDirty;return s||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new l.k("idle")),!this._loaded||this._fullyLoaded||s||(this._fullyLoaded=!0,l.bg.mark(l.bh.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){var u;this._hash&&this._hash.remove();for(const n of this._controls)n.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),
`;return l.replace(/\n$/,"")}var Ud=Vd,$d=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],jd=["scalar","sequence","mapping"];function qd(h){var w={};return h!==null&&Object.keys(h).forEach(function(E){h[E].forEach(function(L){w[String(L)]=E})}),w}function Zd(h,w){if(w=w||{},Object.keys(w).forEach(function(E){if($d.indexOf(E)===-1)throw new Vi('Unknown option "'+E+'" is met in definition of "'+h+'" YAML type.')}),this.options=w,this.tag=h,this.kind=w.kind||null,this.resolve=w.resolve||function(){return!0},this.construct=w.construct||function(E){return E},this.instanceOf=w.instanceOf||null,this.predicate=w.predicate||null,this.represent=w.represent||null,this.representName=w.representName||null,this.defaultStyle=w.defaultStyle||null,this.multi=w.multi||!1,this.styleAliases=qd(w.styleAliases||null),jd.indexOf(this.kind)===-1)throw new Vi('Unknown kind "'+this.kind+'" is specified for "'+h+'" YAML type.')}var bi=Zd;function Tu(h,w){var E=[];return h[w].forEach(function(L){var F=E.length;E.forEach(function(Q,K){Q.tag===L.tag&&Q.kind===L.kind&&Q.multi===L.multi&&(F=K)}),E[F]=L}),E}function Gd(){var h={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},w,E;function L(F){F.multi?(h.multi[F.kind].push(F),h.multi.fallback.push(F)):h[F.kind][F.tag]=h.fallback[F.tag]=F}for(w=0,E=arguments.length;w<E;w+=1)arguments[w].forEach(L);return h}function tc(h){return this.extend(h)}tc.prototype.extend=function(w){var E=[],L=[];if(w instanceof bi)L.push(w);else if(Array.isArray(w))L=L.concat(w);else if(w&&(Array.isArray(w.implicit)||Array.isArray(w.explicit)))w.implicit&&(E=E.concat(w.implicit)),w.explicit&&(L=L.concat(w.explicit));else throw new Vi("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");E.forEach(function(Q){if(!(Q instanceof bi))throw new Vi("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(Q.loadKind&&Q.loadKind!=="scalar")throw new Vi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(Q.multi)throw new Vi("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),L.forEach(function(Q){if(!(Q instanceof bi))throw new Vi("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var F=Object.create(tc.prototype);return F.implicit=(this.implicit||[]).concat(E),F.explicit=(this.explicit||[]).concat(L),F.compiledImplicit=Tu(F,"implicit"),F.compiledExplicit=Tu(F,"explicit"),F.compiledTypeMap=Gd(F.compiledImplicit,F.compiledExplicit),F};var Iu=tc,Au=new bi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(h){return h!==null?h:""}}),ku=new bi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(h){return h!==null?h:[]}}),Cu=new bi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(h){return h!==null?h:{}}}),Eu=new Iu({explicit:[Au,ku,Cu]});function Hd(h){if(h===null)return!0;var w=h.length;return w===1&&h==="~"||w===4&&(h==="null"||h==="Null"||h==="NULL")}function Wd(){return null}function Xd(h){return h===null}var Mu=new bi("tag:yaml.org,2002:null",{kind:"scalar",resolve:Hd,construct:Wd,predicate:Xd,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Kd(h){if(h===null)return!1;var w=h.length;return w===4&&(h==="true"||h==="True"||h==="TRUE")||w===5&&(h==="false"||h==="False"||h==="FALSE")}function Yd(h){return h==="true"||h==="True"||h==="TRUE"}function Jd(h){return Object.prototype.toString.call(h)==="[object Boolean]"}var Pu=new bi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Kd,construct:Yd,predicate:Jd,represent:{lowercase:function(h){return h?"true":"false"},uppercase:function(h){return h?"TRUE":"FALSE"},camelcase:function(h){return h?"True":"False"}},defaultStyle:"lowercase"});functio
`:h===118?"\v":h===102?"\f":h===114?"\r":h===101?"\x1B":h===32?" ":h===34?'"':h===47?"/":h===92?"\\":h===78?"":h===95?"":h===76?"\u2028":h===80?"\u2029":""}function Bf(h){return h<=65535?String.fromCharCode(h):String.fromCharCode((h-65536>>10)+55296,(h-65536&1023)+56320)}function Yu(h,w,E){w==="__proto__"?Object.defineProperty(h,w,{configurable:!0,enumerable:!0,writable:!0,value:E}):h[w]=E}for(var Ju=new Array(256),Qu=new Array(256),La=0;La<256;La++)Ju[La]=Ku(La)?1:0,Qu[La]=Ku(La);function Of(h,w){this.input=h,this.filename=w.filename||null,this.schema=w.schema||rc,this.onWarning=w.onWarning||null,this.legacy=w.legacy||!1,this.json=w.json||!1,this.listener=w.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=h.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eh(h,w){var E={name:h.filename,buffer:h.input.slice(0,-1),position:h.position,line:h.line,column:h.position-h.lineStart};return E.snippet=Ud(E),new Vi(w,E)}function Ye(h,w){throw eh(h,w)}function $o(h,w){h.onWarning&&h.onWarning.call(null,eh(h,w))}var th={YAML:function(w,E,L){var F,Q,K;w.version!==null&&Ye(w,"duplication of %YAML directive"),L.length!==1&&Ye(w,"YAML directive accepts exactly one argument"),F=/^([0-9]+)\.([0-9]+)$/.exec(L[0]),F===null&&Ye(w,"ill-formed argument of the YAML directive"),Q=parseInt(F[1],10),K=parseInt(F[2],10),Q!==1&&Ye(w,"unacceptable YAML version of the document"),w.version=L[0],w.checkLineBreaks=K<2,K!==1&&K!==2&&$o(w,"unsupported YAML version of the document")},TAG:function(w,E,L){var F,Q;L.length!==2&&Ye(w,"TAG directive accepts exactly two arguments"),F=L[0],Q=L[1],Hu.test(F)||Ye(w,"ill-formed tag handle (first argument) of the TAG directive"),Ln.call(w.tagMap,F)&&Ye(w,'there is a previously declared suffix for "'+F+'" tag handle'),Wu.test(Q)||Ye(w,"ill-formed tag prefix (second argument) of the TAG directive");try{Q=decodeURIComponent(Q)}catch{Ye(w,"tag prefix is malformed: "+Q)}w.tagMap[F]=Q}};function Fn(h,w,E,L){var F,Q,K,l;if(w<E){if(l=h.input.slice(w,E),L)for(F=0,Q=l.length;F<Q;F+=1)K=l.charCodeAt(F),K===9||32<=K&&K<=1114111||Ye(h,"expected valid JSON character");else Pf.test(l)&&Ye(h,"the stream contains non-printable characters");h.result+=l}}function ih(h,w,E,L){var F,Q,K,l;for(ci.isObject(E)||Ye(h,"cannot merge mappings; the provided source object is unacceptable"),F=Object.keys(E),K=0,l=F.length;K<l;K+=1)Q=F[K],Ln.call(w,Q)||(Yu(w,Q,E[Q]),L[Q]=!0)}function Fa(h,w,E,L,F,Q,K,l,le){var W,Se;if(Array.isArray(F))for(F=Array.prototype.slice.call(F),W=0,Se=F.length;W<Se;W+=1)Array.isArray(F[W])&&Ye(h,"nested arrays are not supported inside keys"),typeof F=="object"&&Xu(F[W])==="[object Object]"&&(F[W]="[object Object]");if(typeof F=="object"&&Xu(F)==="[object Object]"&&(F="[object Object]"),F=String(F),w===null&&(w={}),L==="tag:yaml.org,2002:merge")if(Array.isArray(Q))for(W=0,Se=Q.length;W<Se;W+=1)ih(h,w,Q[W],E);else ih(h,w,Q,E);else!h.json&&!Ln.call(E,F)&&Ln.call(w,F)&&(h.line=K||h.line,h.lineStart=l||h.lineStart,h.position=le||h.position,Ye(h,"duplicated mapping key")),Yu(w,F,Q),delete E[F];return w}function ac(h){var w;w=h.input.charCodeAt(h.position),w===10?h.position++:w===13?(h.position++,h.input.charCodeAt(h.position)===10&&h.position++):Ye(h,"a line break is expected"),h.line+=1,h.lineStart=h.position,h.firstTabInLine=-1}function li(h,w,E){for(var L=0,F=h.input.charCodeAt(h.position);F!==0;){for(;oa(F);)F===9&&h.firstTabInLine===-1&&(h.firstTabInLine=h.position),F=h.input.charCodeAt(++h.position);if(w&&F===35)do F=h.input.charCodeAt(++h.position);while(F!==10&&F!==13&&F!==0);if(Zr(F))for(ac(h),F=h.input.charCodeAt(h.position),L++,h.lineIndent=0;F===32;)h.lineIndent++,F=h.input.charCodeAt(++h.position);else break}return E!==-1&&L!==0&&h.lineIndent<E&&$o(h,"deficient indentation"),L}function jo(h){var w=h.position,E;return E=h.input.charCodeAt(w),!!((E===45||E===46)&&E===h.input.charCodeAt(w+1)&&E===h.input.charCodeAt(w+2)&&(w+=3,E=h.input.charCodeAt(w),E===0||er(E)))}function sc(h,w
`,w-1))}function Nf(h,w,E){var L,F,Q,K,l,le,W,Se,de=h.kind,ge=h.result,ve;if(ve=h.input.charCodeAt(h.position),er(ve)||Da(ve)||ve===35||ve===38||ve===42||ve===33||ve===124||ve===62||ve===39||ve===34||ve===37||ve===64||ve===96||(ve===63||ve===45)&&(F=h.input.charCodeAt(h.position+1),er(F)||E&&Da(F)))return!1;for(h.kind="scalar",h.result="",Q=K=h.position,l=!1;ve!==0;){if(ve===58){if(F=h.input.charCodeAt(h.position+1),er(F)||E&&Da(F))break}else if(ve===35){if(L=h.input.charCodeAt(h.position-1),er(L))break}else{if(h.position===h.lineStart&&jo(h)||E&&Da(ve))break;if(Zr(ve))if(le=h.line,W=h.lineStart,Se=h.lineIndent,li(h,!1,-1),h.lineIndent>=w){l=!0,ve=h.input.charCodeAt(h.position);continue}else{h.position=K,h.line=le,h.lineStart=W,h.lineIndent=Se;break}}l&&(Fn(h,Q,K,!1),sc(h,h.line-le),Q=K=h.position,l=!1),oa(ve)||(K=h.position+1),ve=h.input.charCodeAt(++h.position)}return Fn(h,Q,K,!1),h.result?!0:(h.kind=de,h.result=ge,!1)}function Vf(h,w){var E,L,F;if(E=h.input.charCodeAt(h.position),E!==39)return!1;for(h.kind="scalar",h.result="",h.position++,L=F=h.position;(E=h.input.charCodeAt(h.position))!==0;)if(E===39)if(Fn(h,L,h.position,!0),E=h.input.charCodeAt(++h.position),E===39)L=h.position,h.position++,F=h.position;else return!0;else Zr(E)?(Fn(h,L,F,!0),sc(h,li(h,!1,w)),L=F=h.position):h.position===h.lineStart&&jo(h)?Ye(h,"unexpected end of the document within a single quoted scalar"):(h.position++,F=h.position);Ye(h,"unexpected end of the stream within a single quoted scalar")}function Uf(h,w){var E,L,F,Q,K,l;if(l=h.input.charCodeAt(h.position),l!==34)return!1;for(h.kind="scalar",h.result="",h.position++,E=L=h.position;(l=h.input.charCodeAt(h.position))!==0;){if(l===34)return Fn(h,E,h.position,!0),h.position++,!0;if(l===92){if(Fn(h,E,h.position,!0),l=h.input.charCodeAt(++h.position),Zr(l))li(h,!1,w);else if(l<256&&Ju[l])h.result+=Qu[l],h.position++;else if((K=Ff(l))>0){for(F=K,Q=0;F>0;F--)l=h.input.charCodeAt(++h.position),(K=Lf(l))>=0?Q=(Q<<4)+K:Ye(h,"expected hexadecimal character");h.result+=Bf(Q),h.position++}else Ye(h,"unknown escape sequence");E=L=h.position}else Zr(l)?(Fn(h,E,L,!0),sc(h,li(h,!1,w)),E=L=h.position):h.position===h.lineStart&&jo(h)?Ye(h,"unexpected end of the document within a double quoted scalar"):(h.position++,L=h.position)}Ye(h,"unexpected end of the stream within a double quoted scalar")}function $f(h,w){var E=!0,L,F,Q,K=h.tag,l,le=h.anchor,W,Se,de,ge,ve,Ve=Object.create(null),Je,Ze,je,it;if(it=h.input.charCodeAt(h.position),it===91)Se=93,ve=!1,l=[];else if(it===123)Se=125,ve=!0,l={};else return!1;for(h.anchor!==null&&(h.anchorMap[h.anchor]=l),it=h.input.charCodeAt(++h.position);it!==0;){if(li(h,!0,w),it=h.input.charCodeAt(h.position),it===Se)return h.position++,h.tag=K,h.anchor=le,h.kind=ve?"mapping":"sequence",h.result=l,!0;E?it===44&&Ye(h,"expected the node content, but found ','"):Ye(h,"missed comma between flow collection entries"),Ze=Je=je=null,de=ge=!1,it===63&&(W=h.input.charCodeAt(h.position+1),er(W)&&(de=ge=!0,h.position++,li(h,!0,w))),L=h.line,F=h.lineStart,Q=h.position,Ra(h,w,Vo,!1,!0),Ze=h.tag,Je=h.result,li(h,!0,w),it=h.input.charCodeAt(h.position),(ge||h.line===L)&&it===58&&(de=!0,it=h.input.charCodeAt(++h.position),li(h,!0,w),Ra(h,w,Vo,!1,!0),je=h.result),ve?Fa(h,l,Ve,Ze,Je,je,L,F,Q):de?l.push(Fa(h,null,Ve,Ze,Je,je,L,F,Q)):l.push(Je),li(h,!0,w),it=h.input.charCodeAt(h.position),it===44?(E=!0,it=h.input.charCodeAt(++h.position)):E=!1}Ye(h,"unexpected end of the stream within a flow collection")}function jf(h,w){var E,L,F=nc,Q=!1,K=!1,l=w,le=0,W=!1,Se,de;if(de=h.input.charCodeAt(h.position),de===124)L=!1;else if(de===62)L=!0;else return!1;for(h.kind="scalar",h.result="";de!==0;)if(de=h.input.charCodeAt(++h.position),de===43||de===45)nc===F?F=de===43?Gu:Mf:Ye(h,"repeat of a chomping mode identifier");else if((Se=Rf(de))>=0)Se===0?Ye(h,"bad explicit indentation width of a block scalar; it cannot be less than one"):K?Ye(h,"repeat of an indentation width identifier"):(l=w+Se-1,K=!0);else break;if(oa(de)){do de=h.input.charCodeAt(++h.position);while(oa(de));if(de===35)do de=h.input.charCod
`,Q?1+le:le),Q=!0,K=!0,le=0,E=h.position;!Zr(de)&&de!==0;)de=h.input.charCodeAt(++h.position);Fn(h,E,h.position,!1)}return!0}function rh(h,w){var E,L=h.tag,F=h.anchor,Q=[],K,l=!1,le;if(h.firstTabInLine!==-1)return!1;for(h.anchor!==null&&(h.anchorMap[h.anchor]=Q),le=h.input.charCodeAt(h.position);le!==0&&(h.firstTabInLine!==-1&&(h.position=h.firstTabInLine,Ye(h,"tab characters must not be used in indentation")),!(le!==45||(K=h.input.charCodeAt(h.position+1),!er(K))));){if(l=!0,h.position++,li(h,!0,-1)&&h.lineIndent<=w){Q.push(null),le=h.input.charCodeAt(h.position);continue}if(E=h.line,Ra(h,w,Zu,!1,!0),Q.push(h.result),li(h,!0,-1),le=h.input.charCodeAt(h.position),(h.line===E||h.lineIndent>w)&&le!==0)Ye(h,"bad indentation of a sequence entry");else if(h.lineIndent<w)break}return l?(h.tag=L,h.anchor=F,h.kind="sequence",h.result=Q,!0):!1}function qf(h,w,E){var L,F,Q,K,l,le,W=h.tag,Se=h.anchor,de={},ge=Object.create(null),ve=null,Ve=null,Je=null,Ze=!1,je=!1,it;if(h.firstTabInLine!==-1)return!1;for(h.anchor!==null&&(h.anchorMap[h.anchor]=de),it=h.input.charCodeAt(h.position);it!==0;){if(!Ze&&h.firstTabInLine!==-1&&(h.position=h.firstTabInLine,Ye(h,"tab characters must not be used in indentation")),L=h.input.charCodeAt(h.position+1),Q=h.line,(it===63||it===58)&&er(L))it===63?(Ze&&(Fa(h,de,ge,ve,Ve,null,K,l,le),ve=Ve=Je=null),je=!0,Ze=!0,F=!0):Ze?(Ze=!1,F=!0):Ye(h,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),h.position+=1,it=L;else{if(K=h.line,l=h.lineStart,le=h.position,!Ra(h,E,qu,!1,!0))break;if(h.line===Q){for(it=h.input.charCodeAt(h.position);oa(it);)it=h.input.charCodeAt(++h.position);if(it===58)it=h.input.charCodeAt(++h.position),er(it)||Ye(h,"a whitespace character is expected after the key-value separator within a block mapping"),Ze&&(Fa(h,de,ge,ve,Ve,null,K,l,le),ve=Ve=Je=null),je=!0,Ze=!1,F=!1,ve=h.tag,Ve=h.result;else if(je)Ye(h,"can not read an implicit mapping pair; a colon is missed");else return h.tag=W,h.anchor=Se,!0}else if(je)Ye(h,"can not read a block mapping entry; a multiline key may not be an implicit key");else return h.tag=W,h.anchor=Se,!0}if((h.line===Q||h.lineIndent>w)&&(Ze&&(K=h.line,l=h.lineStart,le=h.position),Ra(h,w,Uo,!0,F)&&(Ze?Ve=h.result:Je=h.result),Ze||(Fa(h,de,ge,ve,Ve,Je,K,l,le),ve=Ve=Je=null),li(h,!0,-1),it=h.input.charCodeAt(h.position)),(h.line===Q||h.lineIndent>w)&&it!==0)Ye(h,"bad indentation of a mapping entry");else if(h.lineIndent<w)break}return Ze&&Fa(h,de,ge,ve,Ve,null,K,l,le),je&&(h.tag=W,h.anchor=Se,h.kind="mapping",h.result=de),je}function Zf(h){var w,E=!1,L=!1,F,Q,K;if(K=h.input.charCodeAt(h.position),K!==33)return!1;if(h.tag!==null&&Ye(h,"duplication of a tag property"),K=h.input.charCodeAt(++h.position),K===60?(E=!0,K=h.input.charCodeAt(++h.position)):K===33?(L=!0,F="!!",K=h.input.charCodeAt(++h.position)):F="!",w=h.position,E){do K=h.input.charCodeAt(++h.position);while(K!==0&&K!==62);h.position<h.length?(Q=h.input.slice(w,h.position),K=h.input.charCodeAt(++h.position)):Ye(h,"unexpected end of the stream within a verbatim tag")}else{for(;K!==0&&!er(K);)K===33&&(L?Ye(h,"tag suffix cannot contain exclamation marks"):(F=h.input.slice(w-1,h.position+1),Hu.test(F)||Ye(h,"named tag handle cannot contain such characters"),L=!0,w=h.position+1)),K=h.input.charCodeAt(++h.position);Q=h.input.slice(w,h.position),Df.test(Q)&&Ye(h,"tag suffix cannot contain flow indicator characters")}Q&&!Wu.test(Q)&&Ye(h,"tag name cannot contain such characters: "+Q);try{Q=decodeURIComponent(Q)}catch{Ye(h,"tag name is malformed: "+Q)}return E?h.tag=Q:Ln.call(h.tagMap,F)?h.tag=h.tagMap[F]+Q:F==="!"?h.tag="!"+Q:F==="!!"?h.tag="tag:yaml.org,2002:"+Q:Ye(h,'undeclared tag handle "'+F+'"'),!0}function Gf(h){var w,E;if(E=h.input.charCodeAt(h.position),E!==38)return!1;for(h.anchor!==null&&Ye(h,"duplication of an anchor property"),E=h.input.charCodeAt(++h.position),w=h.position;E!==0&&!er(E)&&!Da(E);)E=h.input.charCodeAt(++h.position);return h.position===w&&Ye(h,"name of an anchor node must contain at least one character"),h.anchor=h.input.slice(w,h.positi
`),h.charCodeAt(0)===65279&&(h=h.slice(1)));var E=new Of(h,w),L=h.indexOf("\0");for(L!==-1&&(E.position=L,Ye(E,"null byte is not allowed in input")),E.input+="\0";E.input.charCodeAt(E.position)===32;)E.lineIndent+=1,E.position+=1;for(;E.position<E.length-1;)Wf(E);return E.documents}function Xf(h,w,E){w!==null&&typeof w=="object"&&typeof E>"u"&&(E=w,w=null);var L=nh(h,E);if(typeof w!="function")return L;for(var F=0,Q=L.length;F<Q;F+=1)w(L[F])}function Kf(h,w){var E=nh(h,w);if(E.length!==0){if(E.length===1)return E[0];throw new Vi("expected a single document in the stream, but found more")}}var Yf=Xf,Jf=Kf,ah={loadAll:Yf,load:Jf},sh=Object.prototype.toString,oh=Object.prototype.hasOwnProperty,oc=65279,Qf=9,ks=10,em=13,tm=32,im=33,rm=34,lc=35,nm=37,am=38,sm=39,om=42,lh=44,lm=45,qo=58,cm=61,um=62,hm=63,pm=64,ch=91,uh=93,dm=96,hh=123,fm=124,ph=125,Ei={};Ei[0]="\\0",Ei[7]="\\a",Ei[8]="\\b",Ei[9]="\\t",Ei[10]="\\n",Ei[11]="\\v",Ei[12]="\\f",Ei[13]="\\r",Ei[27]="\\e",Ei[34]='\\"',Ei[92]="\\\\",Ei[133]="\\N",Ei[160]="\\_",Ei[8232]="\\L",Ei[8233]="\\P";var mm=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],gm=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _m(h,w){var E,L,F,Q,K,l,le;if(w===null)return{};for(E={},L=Object.keys(w),F=0,Q=L.length;F<Q;F+=1)K=L[F],l=String(w[K]),K.slice(0,2)==="!!"&&(K="tag:yaml.org,2002:"+K.slice(2)),le=h.compiledTypeMap.fallback[K],le&&oh.call(le.styleAliases,l)&&(l=le.styleAliases[l]),E[K]=l;return E}function ym(h){var w,E,L;if(w=h.toString(16).toUpperCase(),h<=255)E="x",L=2;else if(h<=65535)E="u",L=4;else if(h<=4294967295)E="U",L=8;else throw new Vi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+E+ci.repeat("0",L-w.length)+w}var xm=1,Cs=2;function vm(h){this.schema=h.schema||rc,this.indent=Math.max(1,h.indent||2),this.noArrayIndent=h.noArrayIndent||!1,this.skipInvalid=h.skipInvalid||!1,this.flowLevel=ci.isNothing(h.flowLevel)?-1:h.flowLevel,this.styleMap=_m(this.schema,h.styles||null),this.sortKeys=h.sortKeys||!1,this.lineWidth=h.lineWidth||80,this.noRefs=h.noRefs||!1,this.noCompatMode=h.noCompatMode||!1,this.condenseFlow=h.condenseFlow||!1,this.quotingType=h.quotingType==='"'?Cs:xm,this.forceQuotes=h.forceQuotes||!1,this.replacer=typeof h.replacer=="function"?h.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function dh(h,w){for(var E=ci.repeat(" ",w),L=0,F=-1,Q="",K,l=h.length;L<l;)F=h.indexOf(`