1"use strict";(self.webpackChunkodmp_angular=self.webpackChunkodmp_angular||[]).push([[839],{84289:(tt,z,d)=>{d.d(z,{$o:()=>c,$u:()=>v,gR:()=>a,zA:()=>o});const c=15.5,o=4,a=64,v=1024},53212:(tt,z,d)=>{d.d(z,{KQ:()=>c,Q4:()=>I,Ss:()=>j});const c=8388607,o=8388608,I=D=>D&c;function j(D,b){return((b?o:0)|D)>>>0}},80862:(tt,z,d)=>{var c,O;d.d(z,{DW:()=>T,GA:()=>P,mv:()=>c}),(O=c||(c={})).Local="Local",O.Global="Global";class o{generateSource(_){const x=[];for(let R=1;R<this.length;R++)x.push(`vec4 atom${R} = texture(${_.animationTexture}, (pointer + 0.5) / size);`),x.push("pointer.x += 1.0;");for(let R=0;R<this.ins;R++)x.push("top--;"),x.push(`vec4 in${this.ins-R-1} = stack[top];`);for(let R=0;R<this.outs;R++)x.push(`vec4 out${R};`);const{microcode:A}=this;for(const R of A)x.push(R);for(let R=0;R<this.outs;R++)x.push(`stack[top] = out${R};`),x.push("top++;"),x.push(`if (top >= ${g}) { top = ${g-1}; }`);return x}}let a=128;function I(O){return[`float duration = clamp(${O.duration}, 0.05, 3600.0);`,`float startTimeOffset = ${O.startTimeOffset};`,`float repeatDelay = ${O.repeatDelay};`,`float timeOriginSelector = ${O.timeOriginSelector};`,`float repeatType = ${O.repeatType};`,`float easing = ${O.easing};`,`float playAnimation = ${O.playAnimation} * (1.0 - step(0.0, -${O.duration}));`,`float reverseAnimation = ${O.reverseAnimation};`,"float time = globalTime - (timeOriginSelector == 1.0 ? localTimeOrigin : 0.0);","time *= playAnimation;","time *= 1.0 - reverseAnimation * 2.0;","float period = duration + repeatDelay;","time += reverseAnimation == 1.0 ? (period - startTimeOffset - 0.001) : startTimeOffset + 0.001;","float omega = time / period;","float oi = floor(omega);","omega = repeatType == 1.0 || repeatType == 3.0 ? omega - oi : omega;","float of = omega * period;","of = (clamp(of, reverseAnimation * repeatDelay, period - (1.0 - reverseAnimation) * repeatDelay) - reverseAnimation * repeatDelay) / duration;","of = easing == 2.0 ? pow(of, 3.0) : of;","of = easing == 3.0 ? 1.0 - pow(1.0 - of, 3.0) : of;","of = easing == 4.0 ? of < 0.5 ? 4.0 * pow(of, 3.0) : 1.0 - pow(-2.0 * of + 2.0, 3.0) / 2.0 : of;","bool oscillate = repeatType == 3.0 && mod(oi, 2.0) == 1.0;",`${O.out} = oscillate ? 1.0 - of : of;`]}const K={Linear:1,EaseIn:2,EaseOut:3,EaseInOut:4},S={Loop:1,None:2,Oscillate:3},j={Local:1,Global:2};function D(O){return[[O.duration,O.startTimeOffset,O.repeatDelay,j[O.timeOriginSelector]],[S[O.repeatType],K[O.easing],O.playAnimation,O.reverseAnimation]]}const P={scalar:new class B extends o{constructor(){super(...arguments),this.opcode=++a,this.length=1,this.ins=0,this.outs=1,this.microcode=["out0 = vec4(atom0.y, atom0.y, atom0.y, atom0.y);"]}encode(_){return[[this.opcode,_,0,0]]}},vector3:new class V extends o{constructor(){super(...arguments),this.opcode=++a,this.length=1,this.ins=0,this.outs=1,this.microcode=["out0 = vec4(atom0.yzw, 0.0);"]}encode(_){return[[this.opcode,_[0]||0,_[1]||0,_[2]||0]]}},vector4:new class U extends o{constructor(){super(...arguments),this.opcode=++a,this.length=2,this.ins=0,this.outs=1,this.microcode=["out0 = atom1;"]}encode(_){return[[this.opcode,0,0,0],_]}},animatedTransform:new class b extends o{constructor(){super(...arguments),this.opcode=++a,this.length=10,this.ins=1,this.outs=1,this.microcode=["vec2 fromTranslation = atom1.xy;","vec2 toTranslation = atom1.zw;","float fromRotation = atom2.x;","float toRotation = atom2.y;","float fromScale = atom2.z;","float toScale = atom2.w;","bool relativeTranslation = atom9.x == 1.0;","bool absoluteScale = atom9.y == 1.0;","vec2 translationMultiplier = relativeTranslation ? pixelDimensions : vec2(1.0, 1.0);","float scaleDivisor = absoluteScale ? pixelDimensions.y : 1.0;","float fTranslation;","{",...I({duration:"atom3.x",startTimeOffset:"atom3.y",repeatDelay:"atom3.z",timeOriginSelector:"atom3.w",repeatType:"atom4.x",easing:"atom4.y",playAnimation:"atom4.z",reverseAnimation:"atom4.w",out:"fTranslation"}),"}","float fRotation;","{",...I({duration:"atom5.x",startTimeOffset:"atom5.y",repeatDelay:"atom5.z",timeOriginSelector:"atom5.w",repeatType:"atom6.x",easing:"atom6.y",playAnimation:"atom6.z",reverseAnimation:"atom6.w",out:"fRotation"}),"}","float fScale;","{",...I({duration:"atom7.x",startTimeOffset:"atom7.y",repeatDelay:"atom7.z",timeOriginSelector:"atom7.w",repeatType:"atom8.x",easing:"atom8.y",playAnimation:"atom8.z",reverseAnimation:"atom8.w",out:"fScale"}),"}","vec2 aTranslation = mix(fromTranslation, toTranslation, fTranslation);","float aRotation = mix(fromRotation, toRotation, fRotation);","float aScale = mix(fromScale, toScale, fScale);","vec2 pTranslation = in0.xy;","float pRotation = in0.z;","float pScale = in0.w;","aTranslation *= translationMultiplier;","aScale /= scaleDivisor;","float rotation = pRotation + aRotation;","float scale = pScale * aScale;","float sin1 = sin(pRotation);","float cos1 = cos(pRotation);","float s1 = pScale;","float x1 = pTranslation.x;","float y1 = pTranslation.y;","float x2 = aTranslation.x;","float y2 = aTranslation.y;","\n vec2 translation = vec2(\n cos1 * s1 * x2 - sin1 * s1 * y2 + x1,\n sin1 * s1 * x2 + cos1 * s1 * y2 + y1\n );\n ","out0 = vec4(translation, rotation, scale);"]}encode(_){return[[this.opcode,0,0,0],[_.translation.from[0],_.translation.from[1],_.translation.to[0],_.translation.to[1]],[_.rotation.from,_.rotation.to,_.scale.from,_.scale.to],...D(_.translation.timing),...D(_.rotation.timing),...D(_.scale.timing),[_.relativeTranslation?1:0,_.absoluteScale?1:0,
10,0]]}},animatedColor:new class m extends o{constructor(){super(...arguments),this.opcode=++a,this.length=7,this.ins=1,this.outs=1,this.microcode=["float fromOpacity = atom0.y;","float toOpacity = atom0.z;","vec4 fromColor = atom1;","vec4 toColor = atom2;","float fColor;","{",...I({duration:"atom3.x",startTimeOffset:"atom3.y",repeatDelay:"atom3.z",timeOriginSelector:"atom3.w",repeatType:"atom4.x",easing:"atom4.y",playAnimation:"atom4.z",reverseAnimation:"atom4.w",out:"fColor"}),"}","float fOpacity;","{",...I({duration:"atom5.x",startTimeOffset:"atom5.y",repeatDelay:"atom5.z",timeOriginSelector:"atom5.w",repeatType:"atom6.x",easing:"atom6.y",playAnimation:"atom6.z",reverseAnimation:"atom6.w",out:"fOpacity"}),"}","vec4 aColor = mix(fromColor, toColor, fColor);","aColor.a *= mix(fromOpacity, toOpacity, fOpacity);","vec4 pColor = in0;","out0 = aColor * pColor;"]}encode(_){return[[this.opcode,_.opacity.from,_.opacity.to,0],[_.color.from[0],_.color.from[1],_.color.from[2],_.color.from[3]],[_.color.to[0],_.color.to[1],_.color.to[2],_.color.to[3]],...D(_.color.timing),...D(_.opacity.timing)]}},ret:new class v extends o{constructor(){super(...arguments),this.opcode=++a,this.length=1,this.ins=0,this.outs=0,this.microcode=["break;"]}encode(){return[[this.opcode,0,0,0]]}}},E=40,g=4;function T(O){const _=[];_.push(`float globalTime = ${O.globalTime};`),_.push(`float localTimeOrigin = ${O.localTimeOrigin};`),_.push(`vec2 pointer = ${O.animationPointer};`),_.push(`vec2 size = ${O.animationTextureSize};`),_.push("int top = 0;"),_.push(`vec4 stack[${g}];`),_.push(`for (int counter = 0; counter < ${E}; counter++) {`),_.push(`vec4 atom0 = texture(${O.animationTexture}, (pointer + 0.5) / size);`),_.push("pointer.x += 1.0;"),_.push(`vec2 pixelDimensions = ${O.pixelDimensions};`),_.push("if (false) {");for(const x in P){const A=P[x];_.push(`} else if (int(atom0.x) == ${A.opcode}) {`);for(const R of A.generateSource(O))_.push(R)}return _.push("} // End if-else."),_.push("} // End for."),_.push(`${O.out} = top > 0 ? stack[top - 1] : vec4(0.0);`),_.join("\n")}},24821:(tt,z,d)=>{d.d(z,{Y7:()=>bt,HS:()=>vt,mm:()=>it,A:()=>Ot,k2:()=>Dt,ZA:()=>ht,E8:()=>ft,hF:()=>_t,C5:()=>X,uK:()=>dt,Pi:()=>st});var c=d(8189),a=(d(3248),d(35150)),v=d(1119),B=d(5922),V=d(20951),U=d(65388);class K{constructor(){this._includedModules=new Map}include(s,l){this._includedModules.has(s)?this._includedModules.get(s):(this._includedModules.set(s,l),s(this.builder,l))}}class S extends K{constructor(){super(...arguments),this.vertex=new b,this.fragment=new b,this.attributes=new m,this.varyings=new P,this.extensions=new E,this.constants=new g}get fragmentUniforms(){return this.fragment.uniforms.entries}get builder(){return this}generate(s,l=!0){const M=this.extensions.generateSource(s),w=this.attributes.generateSource(s),C=this.varyings.generateSource(s),W="vertex"===s?this.vertex:this.fragment,k=W.uniforms.generateSource(),J=W.code.generateSource(),G="vertex"===s?L:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp sampler2D;\n#else\n precision mediump float;\n precision mediump sampler2D;\n#endif\n",Q=this.constants.generateSource().concat(W.constants.generateSource());return`${l?"#version 300 es":""}\n${M.join("\n")}\n${G}\n${Q.join("\n")}\n${k.join("\n")}\n${w.join("\n")}\n${C.join("\n")}\n${J.join("\n")}`}generateBindPass(s){const l=new Map;this.vertex.uniforms.entries.forEach(C=>{const W=C.bind[V.c.Pass];W&&l.set(C.name,W)}),this.fragment.uniforms.entries.forEach(C=>{const W=C.bind[V.c.Pass];W&&l.set(C.name,W)});const M=Array.from(l.values()),w=M.length;return(C,W)=>{for(let k=0;k<w;++k)M[k](s,C,W)}}generateBindDraw(s){const l=new Map;this.vertex.uniforms.entries.forEach(C=>{const W=C.bind[V.c.Draw];W&&l.set(C.name,W)}),this.fragment.uniforms.entries.forEach(C=>{const W=C.bind[V.c.Draw];W&&l.set(C.name,W)});const M=Array.from(l.values()),w=M.length;return(C,W,k)=>{for(let J=0;J<w;++J)M[J](s,k,C,W)}}}class j{constructor(){this._entries=new Map}add(...s){for(const l of s)this._add(l)}get(s){return this._entries.get(s)}_add(s){if(null!=s){if(this._entries.has(s.name)&&!this._entries.get(s.name).equals(s))throw new B.A(`Duplicate uniform name ${s.name} for different uniform type`);this._entries.set(s.name,s)}else a.A.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder").error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map(s=>null!=s.arraySize?`uniform ${s.type} ${s.name}[${s.arraySize}];`:`uniform ${s.type} ${s.name};`)}get entries(){return Array.from(this._entries.values())}}class D{constructor(){this._entries=new Array}add(s){this._entries.push(s)}generateSource(){return this._entries}}class b extends K{constructor(){super(...arguments),this.uniforms=new j,this.code=new D,this.constants=new g}get builder(){return this}}class m{constructor(){this._entries=new Array}add(s,l){this._entries.push([s,l])}generateSource(s){return"fragment"===s?[]:this._entries.map(l=>`in ${l[1]} ${l[0]};`)}}class P{constructor(){this._entries=new Map}add(s,l){this._entries.has(s)&&(0,U.vA)(this._entries.get(s)===l),this._entries.set(s,l)}generateSource(s){const l=new Array;
1return this._entries.forEach((M,w)=>l.push("vertex"===s?`out ${M} ${w};`:`in ${M} ${w};`)),l}}class E{constructor(){this._entries=new Set}add(s){this._entries.add(s)}generateSource(s){const l="vertex"===s?E.ALLOWLIST_VERTEX:E.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter(M=>l.includes(M)).map(M=>`#extension ${M} : enable`)}}E.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"],E.ALLOWLIST_VERTEX=[];class g{constructor(){this._entries=new Set}add(s,l,M){let w="ERROR_CONSTRUCTOR_STRING";switch(l){case"float":w=g._numberToFloatStr(M);break;case"int":w=g._numberToIntStr(M);break;case"bool":w=M.toString();break;case"vec2":w=`vec2(${g._numberToFloatStr(M[0])}, ${g._numberToFloatStr(M[1])})`;break;case"vec3":w=`vec3(${g._numberToFloatStr(M[0])}, ${g._numberToFloatStr(M[1])}, ${g._numberToFloatStr(M[2])})`;break;case"vec4":w=`vec4(${g._numberToFloatStr(M[0])}, ${g._numberToFloatStr(M[1])}, ${g._numberToFloatStr(M[2])}, ${g._numberToFloatStr(M[3])})`;break;case"ivec2":w=`ivec2(${g._numberToIntStr(M[0])}, ${g._numberToIntStr(M[1])})`;break;case"ivec3":w=`ivec3(${g._numberToIntStr(M[0])}, ${g._numberToIntStr(M[1])}, ${g._numberToIntStr(M[2])})`;break;case"ivec4":w=`ivec4(${g._numberToIntStr(M[0])}, ${g._numberToIntStr(M[1])}, ${g._numberToIntStr(M[2])}, ${g._numberToIntStr(M[3])})`;break;case"mat2":case"mat3":case"mat4":w=`${l}(${Array.prototype.map.call(M,C=>g._numberToFloatStr(C)).join(", ")})`}return this._entries.add(`const ${l} ${s} = ${w};`),this}static _numberToIntStr(s){return s.toFixed(0)}static _numberToFloatStr(s){return Number.isInteger(s)?s.toFixed(1):s.toString()}generateSource(){return Array.from(this._entries)}}const L="precision highp float;\nprecision highp sampler2D;";var O=d(3902);function x(H,s,l){const M=s.split("\n");for(const w of M)if(w.trim().length){{let C="";null!=l&&(C+=`/*id:${null!=l?l:"000"}*/ `),H.body+=C.padEnd(14)}H.body+=" ".repeat(H.indent)+w+"\n"}}class A{write(s){for(const l of s.rootOutputNodes())s.shouldPruneOutputNode(l)||(l.variableName=this._write(s,l.node));return s}_createVarName(s,l){let M="";return"boolean"!=typeof l&&"number"!=typeof l&&l.debugInfo.name&&(M=`${l.debugInfo.name}_`),`${M}v${s.varCount++}`}_write(s,l,M=!1){if("number"==typeof l||"boolean"==typeof l)return l.toString();let w=s.getEmit(l);if(w)return w;switch(l.shaderType){case"scope-node":w=this._writeScopeNode(s,l);break;case"primitive-node":w=this._writePrimitiveNode(s,l,M);break;case"function-node":w=this._writeFunctionNode(s,l);break;case"property-access-node":w=this._writePropertyAccessNode(s,l);break;case"text-node":w=l.text;break;case"block-node":w=this._writeBlockNode(s,l);break;case"condition-node":w=this._writeConditionNode(s,l)}return s.setEmit(l,w),w}_writeScopeNode(s,l){const M=new l.child.constructor;M.setDebugName(l.debugInfo.name);const w=this._write(s,M,!0);return x(s,`{ /*ScopeStart: ${l.uid} ${l.debugInfo.name}*/`),s.indent+=2,x(s,`${w} = ${this._write(s,l.child)};`),s.indent-=2,x(s,`} /*ScopeEnd: ${l.uid} ${l.debugInfo.name}*/`),w}_writeConditionNode(s,l){const M=new l.ifTrue.constructor,w=this._write(s,M,!0);x(s,`if (${this._write(s,l.condition)}) {`),s.indent+=2;const C=s.createSubgraphContext(),W=this._write(C,l.ifTrue);if(s.body+=C.body,W&&x(s,`${w} = ${W};`),s.indent-=2,x(s,"}"),l.ifFalse){x(s,"else {"),s.indent+=2;const k=s.createSubgraphContext(),J=this._write(k,l.ifFalse);s.body+=k.body,J&&x(s,`${w} = ${J};`),s.indent-=2,x(s,"}")}return w}_writeBlockNode(s,l){const{captureList:M,generator:w,returnType:C}=l,W={};for(const Q in M){if(!M[Q])continue;const at=this._write(s,M[Q]);W[Q]=at}const k=new C,J=this._write(s,k,!0);if(W.out=J,l.subgraph){const Q=s.createSubgraphContext(),at=this._write(Q,l.subgraph.child);W.subgraph={varName:at,body:Q.body}}const G=w(W);return x(s,"{\n"),s.indent+=2,x(s,G),s.indent-=2,x(s,"}\n"),J}_writePropertyAccessNode(s,l){const M=this._write(s,l.target);return"string"==typeof l.property&&l.property.includes("[")?`${M}${l.property}`:"string"!=typeof l.property?`${M}[${this._write(s,l.property)}]`:`${M}.${l.property}`}_writeFunctionNode(s,l){const M=l.returnType.type;if(l.isInfix){const[W,k]=l.children.map(G=>this._write(s,G)),J=this._createVarName(s,l);return x(s,`${M.padEnd(5)} ${J} = ${W} ${l.token} ${k};`,l.uid),J}const w=l.children.map(W=>this._write(s,W)).join(", "),C=this._createVarName(s,l);return x(s,`${M.padEnd(5)} ${C} = ${l.token}(${w});`,l.uid),C}_writePrimitiveNode(s,l,M=!1){var w;const C=s.getInput(l);if(C)return C.isUsed=!0,C.variableName;const W=1===l.children.length&&(null===(w=l.children[0])||void 0===w?void 0:w.type)===l.type;if(l.isImplicit||W)return this._write(s,l.children[0]);const k=this._createVarName(s,l);
1if(M)return x(s,`${l.type.padEnd(5)} ${k};`,l.uid),k;const J=!l.debugInfo.name&&!l.isMutable;if(J&&"float"===l.type&&"number"==typeof l.children[0])return Number.isInteger(l.children[0])?l.children[0].toFixed(1):l.children[0].toString();if(J&&"int"===l.type&&"number"==typeof l.children[0]&&Number.isInteger(l.children[0]))return l.children[0].toString();const G=l.children.map(Q=>this._write(s,Q)).join(", ");return"array"===l.type?(x(s,`${l.type.padEnd(5)} ${k} = [${G}];`,l.uid),k):J?`${l.type}(${G})`:(x(s,`${l.type.padEnd(5)} ${k} = ${l.type}(${G});`,l.uid),k)}}var R=d(92779);class F{constructor(s,l,M){this.variableName=s,this.variableInputType=l,this.node=M,this.type="shader-input",this.isUsed=!1}clone(){return new F(this.variableName,this.variableInputType,(0,R.vA)(this.node))}}class N{constructor(s,l,M){this.outVariableName=s,this.outVariableType=l,this.node=M,this.type="shader-output"}clone(){const s=new N(this.outVariableName,this.outVariableType,(0,R.vA)(this.node));return s.variableName=this.variableName,s}}class q{static createVertex(s,l,M,w,C,W){const k=[];for(const G in s){const Q=s[G],at=M.get(G);k.push(at?new F(at,"builtin",Q):new F("a_"+G,"in",Q))}for(const G of w)k.push(new F(G.uniformName,"uniform",G.uniformHydrated));const J=[];for(const G in l){const Q=l[G];J.push("glPosition"===G?new N("gl_Position","builtin",Q):"glPointSize"===G?new N("gl_PointSize","builtin",Q):new N("v_"+G,"out",Q))}return new q(k,J,C,W)}static createFragment(s,l,M,w,C,W){const k=[],J=Array.from(C.rootOutputNodes());for(const Q in s){const at=s[Q],gt=M.get(Q);if(gt){k.push(new F(gt,"builtin",at));continue}const wt=J.find(Rt=>Rt.node===at);wt&&k.push(new F(wt.outVariableName,"in",at))}for(const Q of w)k.push(new F(Q.uniformName,"uniform",Q.uniformHydrated));const G=[];for(const Q in l){const at=l[Q],gt=M.get(Q);G.push("discard"===Q?new N(null,"discard",at):gt?new N(gt,"builtin",at):new N(Q,"out",at))}return new q(k,G,W)}constructor(s,l,M,w){this.type="shader-graph-context",this.indent=0,this.body="",this.varCount=0,this._inputShaderTypesByNodeUid=new Map,this._nodeEmitMap=new Map;for(const C of s)this._inputShaderTypesByNodeUid.set(C.node.uid,C);this._outputShaderTypes=l,this._transformFeedbackBindings=M,this._transformFeedbackNames=new Set(M.map(C=>"v_"+C.propertyKey)),this._usedInFragmentShader=w}shouldPruneOutputNode(s){return!!this._usedInFragmentShader&&"builtin"!==s.outVariableType&&!this._transformFeedbackNames.has(s.outVariableName)&&!this._usedInFragmentShader.has(s.node.uid)}setEmit(s,l){this._nodeEmitMap.set(s.uid,l)}getEmit(s){return this._nodeEmitMap.get(s.uid)}inputs(){return this._inputShaderTypesByNodeUid.values()}getInput(s){return this._inputShaderTypesByNodeUid.get(s.uid)}*rootOutputNodes(){for(const s of this._outputShaderTypes)yield s}*nodes(){const s=[];for(const l of this._outputShaderTypes.values())s.push(l.node);for(;s.length;){const l=s.pop();"number"!=typeof l&&"boolean"!=typeof l&&s.push(...l.children.filter(Boolean)),yield l}}*nodesOfTypeOrFunction(){for(const s of this.nodes())"number"!=typeof s&&"boolean"!=typeof s&&(yield s)}createSubgraphContext(){const s=this.clone();return s.body="",s.indent=this.indent+2,s._nodeEmitMap=new Map(this._nodeEmitMap),s}clone(){const s=new q([],this._outputShaderTypes,this._transformFeedbackBindings,this._usedInFragmentShader);return s._inputShaderTypesByNodeUid=this._inputShaderTypesByNodeUid,s.indent=this.indent,s.body=this.body,s.varCount=this.varCount,s._nodeEmitMap=this._nodeEmitMap,s}insertVertexShader(s){s.vertex.code.add(""),this._insertInputs(s,"vertex"),s.vertex.code.add(""),s.vertex.code.add("// OUTPUTS: "),s.vertex.code.add("// --------------------------------------------------------- ");for(const l of this.rootOutputNodes()){const M="builtin"===l.outVariableType;this.shouldPruneOutputNode(l)||s.vertex.code.add(M?`// ${l.outVariableType.padEnd(7)} ${l.node.type.padEnd(9)} ${l.outVariableName};`:`${l.outVariableType.padEnd(10)} ${l.node.type.padEnd(9)} ${l.outVariableName};`)}s.vertex.code.add(""),s.vertex.code.add("void main() {"),s.vertex.code.add(" "+this.body.split("\n").join("\n "));for(const l of this.rootOutputNodes())this.shouldPruneOutputNode(l)||s.vertex.code.add(` ${l.outVariableName} = ${l.variableName};`);s.vertex.code.add("}")}insertFragmentShader(s){this._insertInputs(s,"fragment"),s.fragment.code.add(""),s.fragment.code.add("// OUTPUT
1S: "),s.fragment.code.add("// --------------------------------------------------------- ");for(const l of this.rootOutputNodes())s.fragment.code.add("builtin"===l.outVariableType?`// ${l.outVariableType.padEnd(7)} ${l.node.type.padEnd(9)} ${l.outVariableName};`:`${l.outVariableType.padEnd(10)} ${l.node.type.padEnd(9)} ${l.outVariableName};`);s.fragment.code.add(""),s.fragment.code.add("void main() {"),s.fragment.code.add(" "+this.body.split("\n").join("\n "));for(const l of this.rootOutputNodes())"discard"===l.outVariableType?(s.fragment.code.add(" // TODO: Should ensure codegen for discard appears first in fragment shader"),s.fragment.code.add(` if (${l.variableName}) {`),s.fragment.code.add(" discard;"),s.fragment.code.add(" }"),s.fragment.code.add(" ")):s.fragment.code.add(` ${l.outVariableName} = ${l.variableName};`);s.fragment.code.add("}")}_insertInputs(s,l){s[l].code.add("// INPUTS: "),s[l].code.add("// --------------------------------------------------------- ");for(const M of this.inputs())M.isUsed&&"builtin"!==M.variableInputType&&s[l].code.add("array"===M.node.type?`${M.variableInputType.padEnd(10)} ${M.node.elementType.type.padEnd(9)} ${M.variableName}[${M.node.size}];`:`${M.variableInputType.padEnd(10)} ${M.node.type.padEnd(9)} ${M.variableName};`)}}var nt=d(77989);function rt(H){return new H}function ot(H,s,l){var M;const w=null!==(M=H.constructor[s])&&void 0!==M?M:[];H.constructor.hasOwnProperty(s)||Object.defineProperty(H.constructor,s,{value:w.slice()}),H.constructor[s].push(l)}function X(H,s){return(l,M)=>{ot(l,"locations",{typeCtor:s,propertyKey:M,parameterIndex:null,index:H})}}const _t=H=>(s,l,M)=>{ot(s,"inputs",{inputCtor:H,propertyKey:l,parameterIndex:M})},st=H=>(s,l)=>{ot(s,"uniforms",{typeCtor:H,propertyKey:l})},dt=H=>(s,l)=>{ot(s,"options",{typeCtor:H,propertyKey:l})},ft=(H,s)=>{ot(H,"defines",{propertyKey:s})},Pt=(H,s)=>(l,M)=>{l.constructor.builtins.push({builtin:H,propertyKey:M,typeCtor:s})};class ht{}ht.builtins=[],(0,c._)([Pt("gl_VertexID",O.Ai)],ht.prototype,"glVertexID",void 0);class bt{}class vt{}vt.builtins=[],(0,c._)([Pt("gl_FragCoord",O.Zb)],vt.prototype,"glFragCoord",void 0),(0,c._)([Pt("gl_PointCoord",O.ZY)],vt.prototype,"glPointCoord",void 0);class it{}class Dt{constructor(){this.type="uniform-group"}get _uniforms(){var s;return null!==(s=this.constructor.uniforms)&&void 0!==s?s:[]}}class Ot{constructor(){this.logShader=!1,this.computeAttributes={}}get vertexInput(){const s=this._shaderModuleClass.inputs.findLast(l=>"vertex"===l.propertyKey&&0===l.parameterIndex);if(!s)throw new Error("Unable to find vertex input parameter");return s}get computeInput(){return this._shaderModuleClass.inputs.findLast(s=>"vertex"===s.propertyKey&&1===s.parameterIndex)}get fragmentInput(){const s=this._shaderModuleClass.inputs.findLast(l=>"fragment"===l.propertyKey);if(!s)throw new Error("Unable to find fragment input parameter");return s}get transformFeedbackBindings(){var s;return null!==(s=this.fragmentInput.inputCtor.transformFeedbackBindings)&&void 0!==s?s:[]}get locations(){var s,l;return[...this.vertexInput.inputCtor.locations,...null!==(s=null===(l=this.computeInput)||void 0===l?void 0:l.inputCtor.locations)&&void 0!==s?s:[]]}get locationsMap(){const s=new Map,l=new Set;for(const M of this.locations)l.has(M.index)?a.A.getLogger("esri.views.2d.engine.webgl.shaderGraph.GraphShaderModule").warnOnce("mapview-rendering",`Unable to assigned attribute ${M.propertyKey} to ${M.index}. Index already in use`,{locationsMap:s}):(s.set(M.propertyKey,M.index),l.add(M.index));return s}get locationInfo(){if(!this._locationInfo){const s=this.locationsMap,l=Array.from(s.entries()).map(([C,W])=>`${C}.${W}`).join("."),M=(0,v.Wm)(l);this._locationInfo={hash:M,locations:s,computeAttributeMap:this.computeAttributes}}return this._locationInfo}get renamedLocationsMap(){const s=new Map;for(const l of this.locations)s.set("a_"+l.propertyKey,l.index);return s}get optionPropertyKeys(){if(!this._optionPropertyKeys){const s=new Set;for(const l of this._options)s.add(l.propertyKey);this._optionPropertyKeys=s}return this._optionPropertyKeys}get _shaderModuleClass(){return this.constructor}get _defines(){var s;return null!==(s=this._shaderModuleClass.defines)&&void 0!==s?s:[]}get _options(){var s;return null!==(s=this._shaderModuleClass.options)&&void 0!==s?s:[]}get _uniforms(){var s;return null!==(s=this._shaderModuleClass.uniforms)&&void 0!==s?s:[]}getProgram(s,l,M,w){try{const{vertex:C,fragment:W,uniformBindings:k}=this._generateShaders(s,l,M,w);return new nt.K(C,W,this.renamedLocationsMap,this.locationInfo,k,this.transformFeedbackBindings)}catch{return new nt.K("","",this.renamedLocationsMap,this.locationInfo,[],this.transformFeedbackBindings)}}getDebugUniformClassInfo(s){const l=this._options.find(w=>w.propertyKey===s);if(l)return{type:"option",className:l.typeCtor};const M=this._uniforms.find(w=>w.propertyKey===s);if(!M)throw new Error(`Unable to find uniform class type for property: ${s}`);return{type:"required",className:M.typeCtor}}getShaderKey(s,l,M,w){const C=Object.keys(s).map(G=>`${G}.${s[G]}`).join("."),W=Object.keys(M).map(G=>`${G}.${M[G]}`).join("."),k=Object.keys(w).map(G=>`${G}.${w[G]}`).join("."),J=Object.keys(l).filter(G=>this.optionPropertyKeys.has(G)&&l[G]).join(".");return`${this.constructor.name}.${C}.${W}.${k}.${J}`}_generateShaders(s,l,M,w){const C=[];this._setDefines(M),this._setOptionalUniforms(C,l),this._setRequiredUniforms(C);const W=this._hydrateVertexInput(w),k=this._injectPackPrecisionFactor(W,s),J=this._hydrateComputeInput(),G=J&&this._injectComputePackPrecisionFactor(J,s),Q=this.vertex(k,G),at=this._hydrateFragmentInput(Q),gt=this.fragment(at),wt=new Set;for(const St in gt)(0,R.rz)(wt,gt[St]);const Rt=this._getVertexInputBuiltins(),mt=q.createVertex({...W,...J},Q,Rt,C,this.transformFeedbackBindings,wt);(new A).write(mt);const ut=this._getFragmentInputBuiltins(gt);ut.set("glPointCoord","gl_PointCoord");const Z=q.createFragment(at,gt,ut,C,mt,this.transformFeedbackBindings);
1(new A).write(Z);const lt=this._createShaderBuilder(mt,Z),Tt=lt.generate("vertex",!0),Ct=lt.generate("fragment",!0);return this.logShader&&(console.log(Tt),console.log(Ct)),{vertex:Tt,fragment:Ct,uniformBindings:C}}_setDefines(s){for(const l in s)this[l]=s[l]}_setOptionalUniforms(s,l){for(const M of this._options)this[M.propertyKey]=l[M.propertyKey]?this._hydrateUniformGroup(s,M):null}_setRequiredUniforms(s){for(const l of this._uniforms)this[l.propertyKey]=this._hydrateUniformGroup(s,l)}_hydrateUniformGroup(s,l){const M=new l.typeCtor;for(const C of null!==(w=M._uniforms)&&void 0!==w?w:[]){var w;const W=rt(C.typeCtor),k=`u_${l.propertyKey}_${C.propertyKey}`,J=W.type,G=[l.propertyKey,C.propertyKey].join(".");s.push("type"in C.typeCtor&&"array"===C.typeCtor.type?{shaderModulePath:G,uniformName:k,uniformType:J,uniformArrayLength:W.size,uniformArrayElementType:W.elementType.type,uniformHydrated:W}:{shaderModulePath:G,uniformName:k,uniformType:J,uniformHydrated:W}),M[C.propertyKey]=W}return M}_hydrateVertexInput(s){const l=this.vertexInput.inputCtor,M=l.locations.reduce((w,C)=>!1===s[C.propertyKey]?w:{...w,[C.propertyKey]:rt(C.typeCtor)},{});for(const{propertyKey:w,typeCtor:C}of l.builtins){const W=rt(C);M[w]=W}return M}_hydrateComputeInput(){return null==this.computeInput?null:this.computeInput.inputCtor.locations.reduce((s,l)=>({...s,[l.propertyKey]:rt(l.typeCtor)}),{})}_injectPackPrecisionFactor(s,l){const M={};for(const w in s){const C=s[w],W=l[w];if(W){if("float"!==C.type&&"vec2"!==C.type&&"vec3"!==C.type&&"vec4"!==C.type)throw new Error(`InternalError: packPrecisionFactor requires GenType, but found ${C.type}`);M[w]=C.divide(new O.nt(W))}else M[w]=C}return M}_injectComputePackPrecisionFactor(s,l){const M={},w=new Map;for(const W in this.computeAttributes)for(const k of null!==(C=this.computeAttributes[W])&&void 0!==C?C:[]){var C;w.set(k,W)}for(const W in s){const k=s[W],J=w.get(W);if(!J)continue;const G=l[J];if(G){if("float"!==k.type&&"vec2"!==k.type&&"vec3"!==k.type&&"vec4"!==k.type)throw new Error(`InternalError: packPrecisionFactor requires GenType, but found ${k.type}`);M[W]=k.divide(new O.nt(G))}else M[W]=k}return M}_hydrateFragmentInput(s){const l={};for(const M in s)l[M]=s[M];for(const{propertyKey:M,typeCtor:w}of vt.builtins){const C=rt(w);l[M]=C}return l}_getVertexInputBuiltins(){const s=this.vertexInput.inputCtor,l=new Map;for(const{builtin:M,propertyKey:w}of s.builtins)l.set(w,M);return l}_getFragmentInputBuiltins(s){const l=s.constructor,M=new Map;for(const C of null!==(w=l.builtins)&&void 0!==w?w:[]){var w;M.set(C.propertyKey,C.builtin)}return M}_createShaderBuilder(s,l){const M=new S;return this._insertDebugInfo(M),s.insertVertexShader(M),l.insertFragmentShader(M),M}_insertDebugInfo(s){s.vertex.code.add("// DEFINES: "),s.vertex.code.add("// --------------------------------------------------------- ");for(const l of this._defines)s.vertex.code.add(this[l.propertyKey]?`// ${l.propertyKey}: true`:`// ${l.propertyKey}: false`);s.vertex.code.add(""),s.vertex.code.add("// OPTIONS: "),s.vertex.code.add("// --------------------------------------------------------- ");for(const l of this._options)s.vertex.code.add(this[l.propertyKey]?`// ${l.propertyKey}: true`:`// ${l.propertyKey}: false`)}}},92779:(tt,z,d)=>{function o(D,b){const m=[];for(m.push(b);m.length;){const P=m.pop();if("object"==typeof P&&!D.has(P.uid)){D.add(P.uid);for(const E of P.children)m.push(E)}}}d.d(z,{XL:()=>K,aw:()=>j,rR:()=>S,rz:()=>o,vA:()=>v,vL:()=>B,zg:()=>I});class a{constructor(){this.uid=a.NodeCount++,this._debugName=null,this._isMutable=!1,this.isImplicit=!1}get isMutable(){return this._isMutable}setMutable(){return this._isMutable=!0,this}setDebugName(b){return b=function c(D){return D.split(" ").map((b,m)=>m>0?b.charAt(0).toUpperCase()+b.slice(1):b).join("")}(b),this._debugName=b,this.isImplicit&&this.children[0]instanceof a&&this.children[0].setDebugName(b),this}get debugInfo(){var b;return{name:null!==(b=this._debugName)&&void 0!==b?b:""}}cloneInto(b){b._debugName=this._debugName,b._isMutable=this._isMutable,b.isImplicit=this.isImplicit,b.uid=this.uid}}function v(D){return"object"==typeof D?D.clone():D}a.NodeCount=0;class B extends a{constructor(){super(...arguments),this.shaderType="primitive-node"}}class V extends a{constructor(b){super(),this.child=b,this.shaderType="scope-node"}get children(){return[this.child]}clone(){const b=new V(v(this.child));return this.cloneInto(b),b}}
1class I extends a{constructor(b,m,P){super(),this.property=b,this.target=m,this.returnType=P,this.shaderType="property-access-node"}get children(){const b=[this.target];return"string"!=typeof this.property&&b.push(this.property),b}clone(){const b=new I(this.property,v(this.target),this.returnType);return this.cloneInto(b),b}}class K extends a{constructor(b,m,P){super(),this.condition=b,this.ifTrue=m,this.ifFalse=P,this.shaderType="condition-node"}get children(){return[this.condition,this.ifTrue,this.ifFalse]}clone(){const b=v(this.ifTrue),m=this.ifFalse?v(this.ifFalse):null,P=new K(this.condition,b,m);return this.cloneInto(P),P}}class S extends a{constructor(b,m,P,E){super(),this.captureList=b,this.returnType=m,this.generator=E,this.shaderType="block-node",P&&(this.subgraph=new V(P))}get children(){var b;return Object.keys(this.captureList).map(m=>this.captureList[m]).concat(null!==(b=this.subgraph)&&void 0!==b?b:[])}clone(){const b={};for(const P in this.captureList)b[P]=v(this.captureList[P]);const m=new S(b,this.returnType,this.subgraph?v(this.subgraph.child):this.subgraph,this.generator);return this.cloneInto(m),m}}class j extends a{constructor(b,m,P,E,g,T=!1){super(),this.token=b,this._children=m,this.isInfix=P,this.isPropertyAccess=E,this.returnType=g,this.isTernary=T,this.shaderType="function-node"}get children(){return this._children}clone(){const b=new j(this.token,this._children.map(v),this.isInfix,this.isPropertyAccess,this.returnType,this.isTernary);return this.cloneInto(b),b}}},3902:(tt,z,d)=>{d.d(z,{$5:()=>qt,$I:()=>C,AU:()=>ve,Ai:()=>Ot,Bw:()=>pe,F8:()=>Nt,Gb:()=>Ht,Io:()=>ue,LC:()=>Jt,LI:()=>Ee,MM:()=>te,My:()=>rt,Ny:()=>M,Om:()=>le,PM:()=>be,RI:()=>ce,RZ:()=>Pe,S8:()=>ye,Sj:()=>Yt,T9:()=>he,TF:()=>Me,Tk:()=>Ft,U:()=>w,US:()=>Oe,Uo:()=>Wt,Wh:()=>k,Xe:()=>Qt,ZY:()=>ct,Zb:()=>st,Zc:()=>G,aX:()=>ee,eB:()=>_t,eR:()=>Q,fV:()=>J,gn:()=>zt,j1:()=>Gt,jc:()=>de,jh:()=>fe,jk:()=>_e,ln:()=>at,lw:()=>xt,mk:()=>se,n7:()=>ge,nf:()=>Xt,nt:()=>X,om:()=>St,or:()=>Vt,qE:()=>ae,rY:()=>ie,tn:()=>oe,w0:()=>wt,x:()=>ht,z7:()=>ot,ze:()=>Ct,zi:()=>me});var a,v,B,V,U,I,K,S,j,D,b,m,P,E,c=d(8189),o=d(92779);function R(e){return new Proxy(e,{get(p,h){if("constructor"===h)return new Proxy(p.constructor,{construct:($,Y,et)=>R(new $(...Y))});if(h in p)return p[h];if("string"==typeof h){const $=function A(e){const p=[["float","vec2","vec3","vec4"],["int","ivec2","ivec3","ivec4"],["uint","uvec2","uvec3","uvec4"],["bool","bvec2","bvec3","bvec4"]];for(const h of p)if(h.includes(e))return h.map($=>W[$]);throw new Error("Unable to find type family")}(e.type);return mt(e,h,$[h.length-1])}}})}function F(e){return new Proxy(e,{construct:(p,h,$)=>R(new p(...h))})}class nt extends Error{}let rt=a=class extends o.vL{constructor(e,p){super(),this.elementType=e,this.size=p,this.children=[],this.type="array"}clone(){const e=new a(this.elementType,this.size);return super.cloneInto(e),e}get(e){if("number"==typeof e){const p=new Ot(e);return p.isImplicit=!0,mt(this,p,this.elementType.constructor)}return mt(this,e,this.elementType.constructor)}last(){return this.get(this.size-1)}first(){return this.get(0)}findIndex(e,p,h){return function Zt(e,p,h=0,$=e.size){const Y=new Ot(h).setMutable().setDebugName("FindIndexIterator"),et=p(e.get(Y)).setDebugName("FindIndexPredicate");return St({iter:Y},Ot,et,({out:Et,iter:yt,subgraph:At})=>`\n${Et} = -1;\n\nfor (; ${yt} < ${$}; ${yt}++) {\n\n${At.body}\n\n if (${At.varName}) {\n ${Et} = ${yt};\n break;\n }\n\n}\n`).setDebugName("FindIndexBlock")}(this,e,p,h)}glslFindIndex(e,p,h){return function kt(e,p,h=0,$=e.size){return St({array:e},Ot,null,({out:et,array:Mt})=>`\n${et} = -1;\nfor (int i = ${h}; i < ${$}; i++) {\n bool condition;\n ${p({array:Mt,i:"i",out:"condition"})}\n if (condition) {\n ${et} = i;\n break;\n }\n}\n`).setDebugName("GlslFindIndexBlock")}(this,e,p,h)}static ofType(e,p){const h={construct:($,Y)=>new a(new e,p)};return new Proxy(a,h)}};rt.type="array",rt=a=(0,c._)([function q(e){return new Proxy(e,{construct:(p,h,$)=>function N(e){return new Proxy(e,{get(p,h){if(h in p)return p[h];if("string"==typeof h){const $=parseInt(h,10);if(!isNaN($))return mt(e,`[${$}]`,e.elementType.constructor)}}})}(new p(...h))})}],rt);let ot=(()=>{class e extends o.vL{constructor(){super(...arguments),this.type="sampler2D",this.children=[]}clone(){const h=new e;return h.children=this.children.map(o.vA),super.cloneInto(h),h}}return e.type="sampler2D",e})(),X=(()=>{class e extends o.vL{constructor(h){super(),this.type="float",this.children=[h]}clone(){const h=new e((0,o.vA)(this.children[0]));return super.cloneInto(h),h}multiply(h){return xt(this,"number"==typeof h?it(h,e):h)}divide(h){return Ut(this,"number"==typeof h?it(h,e):h)}add(h){return It(this,"number"==typeof h?it(h,e):h)}subtract(h){return Lt(this,"number"==typeof h?it(h,e):h)}}return e.type="float",e})(),ct=v=class extends o.vL{constructor(e,p){super(),this.type="vec2",this.children=[e,p].filter(h=>null!=h)}clone(){const e=new v((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]));return super.cloneInto(e),e}get 0(){return mt(this,"[0]",X)}
1get 1(){return mt(this,"[1]",X)}get 2(){throw new nt}get 3(){throw new nt}multiply(e){return xt(this,"number"==typeof e?it(e,X):e)}divide(e){return Ut(this,"number"==typeof e?it(e,X):e)}add(e){return It(this,"number"==typeof e?it(e,X):e)}subtract(e){return Lt(this,"number"==typeof e?it(e,X):e)}};ct.type="vec2",ct=v=(0,c._)([F],ct);let _t=B=class extends o.vL{constructor(e,p,h){super(),this.type="vec3",this.children=[e,p,h].filter($=>null!=$)}get 0(){return mt(this,"[0]",X)}get 1(){return mt(this,"[1]",X)}get 2(){return mt(this,"[2]",X)}get 3(){throw new nt}clone(){const e=new B((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]));return super.cloneInto(e),e}multiply(e){return xt(this,"number"==typeof e?it(e,X):e)}divide(e){return Ut(this,"number"==typeof e?it(e,X):e)}add(e){return It(this,"number"==typeof e?it(e,X):e)}subtract(e){return Lt(this,"number"==typeof e?it(e,X):e)}};_t.type="vec3",_t=B=(0,c._)([F],_t);let st=V=class extends o.vL{constructor(e,p,h,$){super(),this.type="vec4",this.children=[e,p,h,$].filter(Y=>null!=Y)}clone(){const e=new V((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]),(0,o.vA)(this.children[3]));return super.cloneInto(e),e}get 0(){return mt(this,"[0]",X)}get 1(){return mt(this,"[1]",X)}get 2(){return mt(this,"[2]",X)}get 3(){return mt(this,"[3]",X)}multiply(e){return xt(this,"number"==typeof e?it(e,X):e)}divide(e){return Ut(this,"number"==typeof e?it(e,X):e)}add(e){return It(this,"number"==typeof e?it(e,X):e)}subtract(e){return Lt(this,"number"==typeof e?it(e,X):e)}};st.type="vec4",st=V=(0,c._)([F],st);let dt=U=class extends o.vL{constructor(e){super(),this.type="uint",this.children=[e]}clone(){const e=new U((0,o.vA)(this.children[0]));return super.cloneInto(e),e}};dt.type="uint",dt=U=(0,c._)([F],dt);let ft=I=class extends o.vL{constructor(e,p){super(),this.type="uvec2",this.children=[e,p].filter(h=>null!=h)}clone(){const e=new I((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]));return super.cloneInto(e),e}};ft.type="uvec2",ft=I=(0,c._)([F],ft);let pt=K=class extends o.vL{constructor(e,p,h){super(),this.type="uvec3",this.children=[e,p,h].filter($=>null!=$)}clone(){const e=new K((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]));return super.cloneInto(e),e}};pt.type="uvec3",pt=K=(0,c._)([F],pt);let Pt=S=class extends o.vL{constructor(e,p,h,$){super(),this.type="uvec4",this.children=[e,p,h,$].filter(Y=>null!=Y)}clone(){const e=new S((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]),(0,o.vA)(this.children[3]));return super.cloneInto(e),e}};Pt.type="uvec4",Pt=S=(0,c._)([F],Pt);let ht=(()=>{class e extends o.vL{constructor(h){super(),this.type="bool",this.children=[h]}and(h){return Wt(this,h)}or(h){return Vt(this,h)}clone(){const h=new e((0,o.vA)(this.children[0]));return super.cloneInto(h),h}}return e.type="bool",e})(),bt=j=class extends o.vL{constructor(e,p){super(),this.type="bvec2",this.children=[e,p].filter(h=>null!=h)}all(){return $t(this)}any(){return Kt(this)}clone(){const e=new j((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]));return super.cloneInto(e),e}};bt.type="bvec2",bt=j=(0,c._)([F],bt);let vt=D=class extends o.vL{constructor(e,p,h){super(),this.type="bvec3",this.children=[e,p,h].filter($=>null!=$)}all(){return $t(this)}any(){return Kt(this)}clone(){const e=new D((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]));return super.cloneInto(e),e}};function it(e,p){return"number"==typeof e?new p(e):e}vt.type="bvec3",vt=D=(0,c._)([F],vt);let Dt=b=class extends o.vL{constructor(e,p,h,$){super(),this.type="bvec4",this.children=[e,p,h,$].filter(Y=>null!=Y)}all(){return $t(this)}any(){return Kt(this)}clone(){const e=new b((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]),(0,o.vA)(this.children[3]));return super.cloneInto(e),e}};Dt.type="bvec4",Dt=b=(0,c._)([F],Dt);let Ot=(()=>{class e extends o.vL{constructor(h){super(),this.type="int",this.children=[h]}multiply(h){return xt(this,it(h,e))}add(h){return It(this,it(h,e))}subtract(h){return Lt(this,it(h,e))}divide(h){return Ut(this,it(h,e))}clone(){const h=new e((0,o.vA)(this.children[0]));return super.cloneInto(h),h}}return e.type="int",e})(),H=m=class extends o.vL{constructor(e,p){super(),this.type="ivec2",this.children=[e,p].filter(h=>null!=h)}clone(){const e=new m((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]));return super.cloneInto(e),e}};H.type="ivec2",H=m=(0,c._)([F],H);let s=P=class extends o.vL{constructor(e,p,h){super(),this.type="ivec3",this.children=[e,p,h].filter($=>null!=$)}clone(){const e=new P((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]));return super.cloneInto(e),e}};s.type="ivec3",s=P=(0,c._)([F],s);let l=E=class extends o.vL{constructor(e,p,h,$){super(),this.type="ivec4",this.children=[e,p,h,$].filter(Y=>null!=Y)}clone(){const e=new E((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]),(0,o.vA)(this.children[3]));return super.cloneInto(e),e}};l.type="ivec4",l=E=(0,c._)([F],l);let M=(()=>{class e extends o.vL{constructor(h,$,Y,et){super(),this.type="mat2",this.children=[h,$,Y,et]}clone(){const h=new e((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]),(0,o.vA)(this.children[3]));return super.cloneInto(h),h}multiply(h){return xt(this,h)}}return e.type="mat2",e})(),w=(()=>{class e extends o.vL{static identity(){return new e(1,0,0,0,1,0,0,0,1)}static fromRotation(h){const $=Nt(h),Y=zt(h);return new e(Y,$,0,Ct($),Y,0,0,0,1)}constructor(h,$,Y,et,Mt,Et,yt,At,Bt){super(),this.type="mat3",this.children=[h,$,Y,et,Mt,Et,yt,At,Bt]}add(h){return It(this,h)}multiply(h){return xt(this,h)}clone(){const h=new e((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]),(0,o.vA)(this.children[3]),(0,o.vA)(this.children[4]),(0,o.vA)(this.children[5]),(0,o.vA)(this.children[
16]),(0,o.vA)(this.children[7]),(0,o.vA)(this.children[8]));return super.cloneInto(h),h}}return e.type="mat3",e})(),C=(()=>{class e extends o.vL{static identity(){return new e(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}constructor(h,$,Y,et,Mt,Et,yt,At,Bt,xe,Te,De,we,Ie,Ae,Ce){super(),this.type="mat4",this.children=[h,$,Y,et,Mt,Et,yt,At,Bt,xe,Te,De,we,Ie,Ae,Ce]}static fromColumns(h,$,Y,et){return new e(h.x,h.y,h.z,h.w,$.x,$.y,$.z,$.w,Y.x,Y.y,Y.z,Y.w,et.x,et.y,et.z,et.w)}multiply(h){return xt(this,h)}clone(){const h=new e((0,o.vA)(this.children[0]),(0,o.vA)(this.children[1]),(0,o.vA)(this.children[2]),(0,o.vA)(this.children[3]),(0,o.vA)(this.children[4]),(0,o.vA)(this.children[5]),(0,o.vA)(this.children[6]),(0,o.vA)(this.children[7]),(0,o.vA)(this.children[8]),(0,o.vA)(this.children[9]),(0,o.vA)(this.children[10]),(0,o.vA)(this.children[11]),(0,o.vA)(this.children[12]),(0,o.vA)(this.children[13]),(0,o.vA)(this.children[14]),(0,o.vA)(this.children[15]));return super.cloneInto(h),h}}return e.type="mat4",e})();const W={float:X,vec2:ct,vec3:_t,vec4:st,int:Ot,ivec2:H,ivec3:s,ivec4:l,uint:dt,uvec2:ft,uvec3:pt,uvec4:Pt,bool:ht,bvec2:bt,bvec3:vt,bvec4:Dt},k=(...e)=>new Ot(...e),J=(...e)=>new X(...e),G=(...e)=>new ct(...e),Q=(...e)=>new _t(...e),at=(...e)=>new st(...e),wt=(...e)=>new w(...e);function mt(e,p,h){const $=new h(new o.zg(p,e,h));return $.isImplicit=!0,$}function ut(e,p,h,$=null){if($){const et=new $,Mt=new $(new o.aw(e,[p,h],!0,!1,et));return Mt.isImplicit=!0,Mt}if("float"===p.type||"int"===p.type){const et=new h.constructor(new o.aw(e,[p,h],!0,!1,h.constructor));return et.isImplicit=!0,et}if(("mat2"===p.type||"mat3"===p.type||"mat4"===p.type)&&"float"!==h.type){const et=new h.constructor(new o.aw(e,[p,h],!0,!1,h.constructor));return et.isImplicit=!0,et}const Y=new p.constructor(new o.aw(e,[p,h],!0,!1,p.constructor));return Y.isImplicit=!0,Y}function Z(e,p,h=p.constructor){const $=new h(new o.aw(e,[p],!1,!1,h));return $.isImplicit=!0,$}function lt(e,p,h,$=p.constructor){const Y=new $(new o.aw(e,[p,h],!1,!1,$));return Y.isImplicit=!0,Y}function Tt(e,p,h,$,Y=p.constructor){const et=new Y(new o.aw(e,[p,h,$],!1,!1,Y));return et.isImplicit=!0,et}function Ct(e){return xt(e,J(-1))}function St(e,p,h,$){return new p(new o.rR(e,p,h,$))}function Ft(e,p,h){const $="function"==typeof p?p():p,Y="function"==typeof h?h():h,et=new $.constructor(new o.XL(e,$,Y));return et.isImplicit=!0,et}function Gt(...e){const p=e.map(([Et,yt])=>"function"==typeof yt?[Et,yt()]:[Et,yt]),h=p[0][1].constructor,$=p.findIndex(Et=>!0===Et[0]);if(-1===$)throw new Error("A cond must have a fallthrough case with `true`/; ");const Mt=new h(p.slice(0,$).reduceRight((Et,yt)=>Ft(yt[0],yt[1],Et),p[$][1]));return Mt.isImplicit=!0,Mt}function xt(e,p){return ut("*",e,p)}function Ut(e,p){return ut("/",e,p)}function It(e,p){return ut("+",e,p)}function Lt(e,p){return ut("-",e,p)}function Ht(e,p){return ut("%",e,p)}function Yt(e,p){return ut(">>",e,p)}function Xt(e,p){return ut("&",e,p)}function Jt(e,p){return ut("==",e,p,ht)}function Qt(e,p){return ut("<",e,p,ht)}function qt(e,p){return ut("<=",e,p,ht)}function te(e,p){return ut(">",e,p,ht)}function ee(e,p){return ut(">=",e,p,ht)}function Vt(...e){return e.length<=1?e[0]:e.slice(1).reduce((p,h)=>function ne(e,p){return ut("||",e,p,ht)}(p,h),e[0])}function Wt(...e){return e.length<=1?e[0]:e.slice(1).reduce((p,h)=>function re(e,p){return ut("&&",e,p,ht)}(p,h),e[0])}function oe(e){return Z("abs",e)}function $t(e){return Z("all",e,ht)}function Kt(e){return Z("any",e,ht)}function ie(e,p){return null==p?Z("atan",e):lt("atan",e,p,e.constructor)}function se(e){return Z("ceil",e)}function ae(e,p,h){return Tt("clamp",e,p,h,e.constructor)}function zt(e){return Z("cos",e)}function ue(e,p){return lt("distance",e,p,X)}function le(e,p){return lt("dot",e,p,X)}function ce(e){return Z("floor",e)}function de(e){return Z("fract",e)}function pe(e){return Z("length",e,X)}function he(e,p){return lt("max",e,p)}function _e(e,p){return lt("min",e,p)}function fe(e,p,h){return Tt("mix",e,p,h)}function me(e,p){return lt("mod",e,p)}function ye(e){return Z("normalize",e)}function ve(e){return Z("bool"===e.type?"!":"not",e)}function ge(e,p){return lt("pow",e,p)}
1function Ee(e){return Z("round",e)}function Nt(e){return Z("sin",e)}function Me(e,p,h){return Tt("smoothstep",e,p,h)}function Pe(e){return Z("sqrt",e)}function be(e,p){return lt("step",e,p,p.constructor)}function Oe(e,p){return lt("texture",e,p,st)}},8137:(tt,z,d)=>{var c,o;d.d(z,{N:()=>c}),(o=c||(c={}))[o.AnimatedMarker=0]="AnimatedMarker",o[o.Blend=1]="Blend",o[o.ComplexFill=2]="ComplexFill",o[o.ComplexOutlineFill=3]="ComplexOutlineFill",o[o.DotDensity=4]="DotDensity",o[o.Fill=5]="Fill",o[o.Grid=6]="Grid",o[o.Heatmap=7]="Heatmap",o[o.Label=8]="Label",o[o.Line=9]="Line",o[o.Magnifier=10]="Magnifier",o[o.Marker=11]="Marker",o[o.OutlineFill=12]="OutlineFill",o[o.Overlay=13]="Overlay",o[o.PatternFill=14]="PatternFill",o[o.PatternOutlineFill=15]="PatternOutlineFill",o[o.PieChart=16]="PieChart",o[o.Test=17]="Test",o[o.Text=18]="Text",o[o.TexturedLine=19]="TexturedLine"},93300:(tt,z,d)=>{d.d(z,{c:()=>c});const c={bitset:{isSDF:0,isMapAligned:1,scaleSymbolsProportionally:2,overrideOutlineColor:3,colorLocked:4,isStroke:5}}},4196:(tt,z,d)=>{d.d(z,{f_:()=>m,$Z:()=>D,DM:()=>b,rz:()=>j});var c=d(8189),o=d(47669),a=d(24821),v=d(3902),B=d(3248),V=d(875);class U extends a.k2{getVisualVariableData(E){if(!this._vvData){const g=this.getAttributeDataCoords(E);this._vvData=(0,v.US)(this.visualVariableData,g).setDebugName("storage2")}return this._vvData}getAttributeDataCoords(E){if(!this._uv){const g=(0,V.Kt)(E),T=this.size,L=(0,v.Wh)(g.x),O=(0,v.Wh)(g.y).multiply((0,v.Wh)(256)),_=(0,v.Wh)(g.z).multiply((0,v.Wh)(256)).multiply((0,v.Wh)(256)),x=(0,v.fV)(L.add(O).add(_)),A=(0,v.zi)(x,T),R=x.subtract(A).divide(T);this._uv=new v.ZY(A,R).add(.5).divide(T)}return this._uv}getFilterData(E){const g=this.getAttributeDataCoords(E);return(0,v.US)(this.filterFlags,g).setDebugName("storage0")}getAnimationData(E){const g=this.getAttributeDataCoords(E);return(0,v.US)(this.animation,g).setDebugName("storage1")}getVVData(E){return this.getVisualVariableData(E)}getDataDrivenData0(E){const g=this.getAttributeDataCoords(E);return(0,v.US)(this.dataDriven0,g).setDebugName("storage30")}getDataDrivenData1(E){const g=this.getAttributeDataCoords(E);return(0,v.US)(this.dataDriven1,g).setDebugName("storage31")}getDataDrivenData2(E){const g=this.getAttributeDataCoords(E);return(0,v.US)(this.dataDriven2,g).setDebugName("storage32")}getGPGPUData(E){const g=this.getAttributeDataCoords(E);return(0,v.US)(this.gpgpu,g).setDebugName("storage4")}getLocalTimeOrigin(E){const g=this.getAttributeDataCoords(E);return(0,v.US)(this.localTimeOrigin,g).x.setDebugName("storage5")}getFilterFlags(E){return(0,B.A)("webgl-ignores-sampler-precision")?(0,v.mk)(this.getFilterData(E).x.multiply((0,v.fV)(255))):this.getFilterData(E).x.multiply((0,v.fV)(255))}getLabelVisibility(E){const g=this.getFilterData(E).y.multiply(255);return new v.nt(1).subtract(g)}getAnimationValue(E){return this.getAnimationData(E).x}getSizeValue(E){return this.getVisualVariableData(E).x}getColorValue(E){return this.getVisualVariableData(E).y}getOpacityValue(E){return this.getVisualVariableData(E).z}getRotationValue(E){return this.getVisualVariableData(E).w}}(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"filterFlags",void 0),(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"animation",void 0),(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"gpgpu",void 0),(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"localTimeOrigin",void 0),(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"visualVariableData",void 0),(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"dataDriven0",void 0),(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"dataDriven1",void 0),(0,c._)([(0,a.Pi)(v.z7)],U.prototype,"dataDriven2",void 0),(0,c._)([(0,a.Pi)(v.nt)],U.prototype,"size",void 0);class I extends a.k2{}(0,c._)([(0,a.Pi)(v.nt)],I.prototype,"activeReasons",void 0),(0,c._)([(0,a.Pi)(v.nt)],I.prototype,"highlightAll",void 0);class K extends a.k2{}(0,c._)([(0,a.Pi)(v.ZY)],K.prototype,"position",void 0),(0,c._)([(0,a.Pi)(v.nt)],K.prototype,"distance",void 0),(0,c._)([(0,a.Pi)(v.nt)],K.prototype,"smallSymbolDistance",void 0),(0,c._)([(0,a.Pi)(v.nt)],K.prototype,"smallSymbolSizeThreshold",void 0);var S=d(16585);class j extends a.ZA{}(0,c._)([(0,a.C5)(0,v.eB)],j.prototype,"id",void 0),(0,c._)([(0,a.C5)(1,v.nt)],j.prototype,"bitset",void 0),(0,c._)([(0,a.C5)(2,v.ZY)],j.prototype,"pos",void 0);class D extends a.Y7{}(0,c._)([(0,a.C5)(14,v.ZY)],D.prototype,"nextPos1",void 0),(0,c._)([(0,a.C5)(15,v.ZY)],D.prototype,"nextPos2",void 0);class b extends a.HS{}class m extends a.A{clip(E,g){let T=new v.nt(0);const L=this.storage.getFilterFlags(E);if(T=T.add((0,v.fV)(2).multiply((0,v.fV)(1).subtract((0,V.i6)(L,0)))),this.inside?T=T.add((0,v.fV)(2).multiply((0,v.fV)(1).subtract((0,V.i6)(L,1)))):this.outside?T=T.add((0,v.fV)(2).multiply((0,V.i6)(L,1))):this.highlight&&(T=T.add((0,v.fV)(2).multiply((0,v.fV)(1).subtract(this._checkHighlight(L))))),null!=g){const O=new v.nt(1).subtract((0,v.PM)(g.x,this.view.currentZoom)),_=(0,v.PM)(g.y,this.view.currentZoom);T=T.add(new v.nt(2).multiply(O.add(_)))}return T}getFragmentOutput(E,g,T=new v.nt(1/255)){var L,O;const _=new a.mm;return _.glFragColor=null!==(L=null!==(O=this._maybeWriteHittest(g))&&void 0!==O?O:this._maybeHighlight(E,T))&&void 0!==L?L:E,_}_maybeHighlight(E,g){return this.highlight?new v.Zb(E.rgb,(0,v.PM)(g,E.a)):null}_checkHighlight(E){let g=this._checkHighlightBit(E,0);for(let T=1;T<o.U5;T++)g=g.add(this._checkHighlightBit(E,T));return(0,v.PM)(new v.nt(.1),g.add(this.highlight.highlightAll))}_checkHighlightBit(E,g){return(0,V.yS)(E,g).multiply((0,V.mh)(this.highlight.activeReasons,g))}maybeRunHittest(E,g,T){if(null==this.hittestRequest)return null;const L=this.hittest(E,g,T);let O=(0,v.Tk)((0,v.MM)(L,this.hittestRequest.distance),new v.nt(2),new v.nt(0));const _=this.storage.getAttributeDataCoords(E.id),x=(0,V.nb)(_);O=O.add(this.clip(E.id,E.zoomRange));const A=new v.Zb(new v.nt(1/255),0,0,0);return{glPointSize:new v.nt(1),glPosition:new v.Zb(x,O,1),color:A}}_maybeWriteHittest(E){return null!=this.hittestRequest?E.color:null}}(0,c._)([a.E8],m.prototype,"inside",void 0),(0,c._)([a.E8],m.prototype,"outside",void 0),(0,c._)([(0,a.uK)(I)],m.prototype,"highlight",void 0),(0,c._)([(0,a.Pi)(U)],m.prototype,"storage",void 0),(0,c._)([(0,a.Pi)(S.o)],m.prototype,"view",void 0),(0,c._)([(0,a.uK)(K)],m.prototype,"hittestRequest",void 0)},61254:(tt,z,d)=>{d.d(z,{Bh:()=>m,KP:()=>b,Ps:()=>P});var c=d(8189),o=d(24821),a=d(3902),v=d(4196),B=d(90731),V=d(35891),U=d(83090),I=d(28580),K=d(875);class S extends V._{}function b(E,g){const T=E.view.requiredZoomFactor,L=new a.ZY(g.width,g.height),O=L.multiply(g.scale).multiply(T),_=g.angle.multiply(B.rp),x=(0,a.F8)(_),A=(0,a.gn)(_),R=function D(E,g,T,L,O){const _=(0,a.LC)((0,K.mh)(O,B.Fz),(0,a.fV)(1)),x=(0,K.Rj)(new a.Zb(E,0));
1return(0,a.Tk)(_,(0,a.w0)(L.divide(g.x),T.divide(g.y),0,(0,a.ze)(T.divide(g.x)),L.divide(g.y),0,(0,K._9)((0,a.Zc)(x,0)),(0,K._9)((0,a.Zc)(0,x)),1),(0,a.w0)(L.divide(g.x),T.divide(g.y),0,(0,a.ze)(T.divide(g.x)),L.divide(g.y),0,0,0,1))}(g.id,O,x,A,g.bitset),F=E.localTileOffset.getPatternOffsetAtTileOrigin(L,x,A),N=T.multiply(g.scale).multiply(g.offset.subtract(F)).divide(O),q=new a.eB(g.pos,1),nt=R.multiply(q).xy.subtract(N),rt=g.tlbr.divide(E.mosaicInfo.size.xyxy);let ot=(0,K.mh)(g.bitset,B.cn);return null!=E.visualVariableColor&&(ot=(0,a.Tk)((0,K.M8)(E.storage.getColorValue(g.id)),new a.nt(0),ot)),{tileTextureCoord:nt,tlbr:rt,sampleAlphaOnly:ot}}function m(E,g){const T=(0,a.zi)(g.tileTextureCoord,new a.nt(1)),L=(0,a.jh)(g.tlbr.xy,g.tlbr.zw,T);let O=(0,a.US)(E.mosaicInfo.texture,L);return O=(0,a.Tk)((0,a.MM)(g.sampleAlphaOnly,new a.nt(.5)),O.aaaa,O),g.color.multiply(O)}(0,c._)([(0,o.C5)(5,a.Zb)],S.prototype,"tlbr",void 0),(0,c._)([(0,o.C5)(6,a.nt)],S.prototype,"width",void 0),(0,c._)([(0,o.C5)(7,a.nt)],S.prototype,"height",void 0),(0,c._)([(0,o.C5)(8,a.ZY)],S.prototype,"offset",void 0),(0,c._)([(0,o.C5)(9,a.ZY)],S.prototype,"scale",void 0),(0,c._)([(0,o.C5)(10,a.nt)],S.prototype,"angle",void 0);class P extends V.z{vertex(g,T){return{...super.vertex(g,T),...b(this,g)}}fragment(g){const T=m(this,g);return this.getFragmentOutput(T,g,new a.nt(0))}}(0,c._)([(0,o.Pi)(I.b)],P.prototype,"mosaicInfo",void 0),(0,c._)([(0,o.Pi)(U.P)],P.prototype,"localTileOffset",void 0),(0,c._)([(0,c.a)(0,(0,o.hF)(S)),(0,c.a)(1,(0,o.hF)(v.$Z))],P.prototype,"vertex",null),(0,c._)([(0,c.a)(0,(0,o.hF)(class j extends v.DM{}))],P.prototype,"fragment",null)},80302:(tt,z,d)=>{d.d(z,{RH:()=>g,cZ:()=>D,v9:()=>m});var c=d(8189),o=d(24821),a=d(3902),v=d(4196),B=d(61254),V=d(6702),U=d(95827),I=d(83090),K=d(28580),S=d(3772),j=d(89148);const D=16,b=1/D,m=128;class P extends v.rz{}(0,c._)([(0,o.C5)(3,a.Zb)],P.prototype,"color",void 0),(0,c._)([(0,o.C5)(4,a.Zb)],P.prototype,"tlbr",void 0),(0,c._)([(0,o.C5)(5,a.nt)],P.prototype,"angle",void 0),(0,c._)([(0,o.C5)(6,a.nt)],P.prototype,"aux1",void 0),(0,c._)([(0,o.C5)(7,a.nt)],P.prototype,"aux2",void 0),(0,c._)([(0,o.C5)(8,a.ZY)],P.prototype,"aux3",void 0),(0,c._)([(0,o.C5)(9,a.ZY)],P.prototype,"aux4",void 0),(0,c._)([(0,o.C5)(10,a.ZY)],P.prototype,"zoomRange",void 0);class g extends S.My{vertex(L,O){const{aux1:_,aux2:x,aux3:A,aux4:R}=L,F={...L,width:_,height:x,offset:A,scale:R.multiply(b)},N={...L,halfWidth:_,referenceHalfWidth:x,offset:A,normal:R.subtract(m).multiply(b)},q=(0,S.Yb)(this,N),nt=(0,B.KP)(this,F),rt=(0,a.MM)(q.isOutline,new a.nt(.5));return{...q,...nt,...this.maybeRunHittest(L,O,rt)}}fragment(L){const{isOutline:O}=L,_=(0,a.MM)(O,new a.nt(.5)),x=(0,U.o7)(L,this.antialiasingControls.blur),A=(0,B.Bh)(this,L),R=(0,a.Tk)(_,x,A),F=(0,a.Tk)(_,new a.nt(1/255),new a.nt(0));return this.getFragmentOutput(R,L,F)}hittest(L,O,_){return(0,a.Tk)(_,(0,V.My)(this.hittestRequest),(0,V.Lq)(this,L,O))}}(0,c._)([(0,o.Pi)(K.b)],g.prototype,"mosaicInfo",void 0),(0,c._)([(0,o.Pi)(I.P)],g.prototype,"localTileOffset",void 0),(0,c._)([(0,c.a)(0,(0,o.hF)(P)),(0,c.a)(1,(0,o.hF)(v.$Z))],g.prototype,"vertex",null),(0,c._)([(0,c.a)(0,(0,o.hF)(class E extends j.A1{}))],g.prototype,"fragment",null)},35891:(tt,z,d)=>{d.d(z,{_:()=>K,z:()=>S});var c=d(8189),o=d(24821),a=d(3902),v=d(4196),B=d(6702),V=d(79677),U=d(35255),I=d(95171);class K extends v.rz{}(0,c._)([(0,o.C5)(3,a.Zb)],K.prototype,"color",void 0),(0,c._)([(0,o.C5)(4,a.ZY)],K.prototype,"zoomRange",void 0);class S extends v.f_{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(D,b){const m=(0,I.cF)(this,D.id),P=(0,I.G7)(this,D.id,D.color).multiply(m),E=this.view.displayViewScreenMat3.multiply(new a.eB(D.pos.xy,1)),g=this.clip(D.id,D.zoomRange);return{glPosition:new a.Zb(E.xy,g,1),color:P,...this.maybeRunHittest(D,b,null)}}
1fragment(D){return this.getFragmentOutput(D.color,D,new a.nt(0))}hittest(D,b){return(0,B.Lq)(this,D,b)}}(0,c._)([(0,o.uK)(V._)],S.prototype,"visualVariableColor",void 0),(0,c._)([(0,o.uK)(U.i)],S.prototype,"visualVariableOpacity",void 0),(0,c._)([(0,c.a)(0,(0,o.hF)(K)),(0,c.a)(1,(0,o.hF)(v.$Z))],S.prototype,"vertex",null),(0,c._)([(0,c.a)(0,(0,o.hF)(v.DM))],S.prototype,"fragment",null)},95827:(tt,z,d)=>{d.d(z,{$0:()=>O,Xc:()=>m,cM:()=>x,fF:()=>P,fg:()=>E,o7:()=>_,xw:()=>T});var c=d(8189),o=d(24821),a=d(3902),v=d(4196),B=d(90731),V=d(6702),U=d(79677),I=d(35255),K=d(2098),S=d(14082),j=d(25688),D=d(47150),b=d(95171);class m extends v.rz{}(0,c._)([(0,o.C5)(3,a.Zb)],m.prototype,"color",void 0),(0,c._)([(0,o.C5)(4,a.ZY)],m.prototype,"offset",void 0),(0,c._)([(0,o.C5)(5,a.ZY)],m.prototype,"normal",void 0),(0,c._)([(0,o.C5)(6,a.nt)],m.prototype,"halfWidth",void 0),(0,c._)([(0,o.C5)(7,a.nt)],m.prototype,"referenceHalfWidth",void 0),(0,c._)([(0,o.C5)(8,a.ZY)],m.prototype,"zoomRange",void 0);class P extends v.DM{}class E extends o.k2{}function g(A){return(0,a.T9)(new a.nt(B.Fb).multiply((0,a.PM)(A,new a.nt(B.J5))),new a.nt(1))}function T(A,R){const{halfWidth:F,normal:N}=A,q=g(F),nt=(0,a.Bw)(N).multiply(F);return(0,a.qE)(q.multiply(F.subtract(nt)).divide(R.add(q).subtract(new a.nt(1))),new a.nt(0),new a.nt(1))}function O(A,R){const{id:F,offset:N,pos:q,normal:nt,zoomRange:rt}=R,{displayViewScreenMat3:ot,displayViewMat3:X}=A.view,ct=(0,b.G7)(A,F,R.color),_t=(0,b.cF)(A,F),st=function L(A,R){const{id:F,halfWidth:N,referenceHalfWidth:q}=R;if((0,b.G5)(A)){const nt=new a.nt(2).multiply(q),rt=(0,b.Mg)(A,F,nt);return new a.nt(.5).multiply(N.divide((0,a.T9)(q,new a.nt(B.Ni)))).multiply(rt)}return N}(A,R),dt=new a.nt(.5).multiply(A.antialiasingControls.antialiasing),ft=(0,a.T9)(st.add(dt),new a.nt(.45)).add(new a.nt(.1).multiply(dt)),pt=g(ft).multiply(ft).multiply(N),Pt=X.multiply(new a.eB(pt,new a.nt(0))),ht=ot.multiply(new a.eB(q,new a.nt(1))).add(Pt),bt=new a.nt(2).multiply((0,a.PM)(st,new a.nt(0))).add(A.clip(F,rt)),vt=new a.Zb(ht.xy,bt,1);return{color:ct,opacity:_t,halfWidth:ft,normal:nt,scaledOffset:pt,scaledHalfWidth:st,glPosition:new a.Zb(vt.xy,bt,1)}}function _(A,R){const{opacity:F,color:N}=A,q=T(A,R);return F.multiply(N).multiply(q)}(0,c._)([(0,o.Pi)(a.nt)],E.prototype,"antialiasing",void 0),(0,c._)([(0,o.Pi)(a.nt)],E.prototype,"blur",void 0);class x extends v.f_{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(R,F){const N=O(this,R);return{...N,...this.maybeRunHittest(R,F,N.halfWidth)}}fragment(R){const F=_(R,this.antialiasingControls.blur);return this.getFragmentOutput(F,R)}hittest(R,F,N){const{viewMat3:q,tileMat3:nt}=this.view,rt=q.multiply(nt),ot=rt.multiply(new a.eB(R.pos,1)),X=rt.multiply(new a.eB(F.nextPos1,1)),ct=rt.multiply(new a.eB(F.nextPos2,1)),{distance:_t,smallSymbolDistance:st,smallSymbolSizeThreshold:dt}=this.hittestRequest,ft=(0,a.PM)(N,dt.multiply(.5)).multiply(_t.subtract(st)),pt=this.hittestRequest.position;return(0,a.jk)((0,V.E2)(pt,ot.xy,X.xy),(0,V.E2)(pt,ot.xy,ct.xy)).subtract(N).add(ft)}}(0,c._)([(0,o.Pi)(E)],x.prototype,"antialiasingControls",void 0),(0,c._)([(0,o.uK)(U._)],x.prototype,"visualVariableColor",void 0),(0,c._)([(0,o.uK)(I.i)],x.prototype,"visualVariableOpacity",void 0),(0,c._)([(0,o.uK)(K.n)],x.prototype,"visualVariableSizeMinMaxValue",void 0),(0,c._)([(0,o.uK)(S.F)],x.prototype,"visualVariableSizeScaleStops",void 0),(0,c._)([(0,o.uK)(j.N)],x.prototype,"visualVariableSizeStops",void 0),(0,c._)([(0,o.uK)(D.d)],x.prototype,"visualVariableSizeUnitValue",void 0),(0,c._)([(0,c.a)(0,(0,o.hF)(m)),(0,c.a)(1,(0,o.hF)(v.$Z))],x.prototype,"vertex",null),(0,c._)([(0,c.a)(0,(0,o.hF)(P))],x.prototype,"fragment",null)},83090:(tt,z,d)=>{d.d(z,{P:()=>B});var c=d(8189),o=d(24821),a=d(3902),v=d(90731);class B extends o.k2{getPatternOffsetAtTileOrigin(U,I=new a.nt(0),K=new a.nt(1)){const S=new a.ZY(v.YV).divide(U);let j=U.multiply((0,a.jc)(this.maxIntsToLocalOrigin.multiply(S))).add(this.tileOffsetFromLocalOrigin).subtract(new a.nt(.5).multiply(U));return j=new a.ZY(j.x.multiply(K).subtract(j.y.multiply(I)),j.x.multiply(I).add(j.y.multiply(K))),(0,a.zi)(j,U)}}
1(0,c._)([(0,o.Pi)(a.ZY)],B.prototype,"tileOffsetFromLocalOrigin",void 0),(0,c._)([(0,o.Pi)(a.ZY)],B.prototype,"maxIntsToLocalOrigin",void 0)},28580:(tt,z,d)=>{d.d(z,{b:()=>v});var c=d(8189),o=d(24821),a=d(3902);class v extends o.k2{}(0,c._)([(0,o.Pi)(a.ZY)],v.prototype,"size",void 0),(0,c._)([(0,o.Pi)(a.z7)],v.prototype,"texture",void 0)},3772:(tt,z,d)=>{d.d(z,{A7:()=>g,My:()=>L,Yb:()=>T,nj:()=>O,wG:()=>E});var c=d(8189),o=d(24821),a=d(3902),v=d(4196),B=d(90731),V=d(6702),U=d(95827),I=d(875),K=d(79677),S=d(35255),j=d(2098),D=d(14082),b=d(25688),m=d(47150),P=d(95171);class E extends v.rz{}(0,c._)([(0,o.C5)(3,a.ZY)],E.prototype,"offset",void 0),(0,c._)([(0,o.C5)(4,a.Zb)],E.prototype,"color",void 0),(0,c._)([(0,o.C5)(5,a.ZY)],E.prototype,"normal",void 0),(0,c._)([(0,o.C5)(6,a.nt)],E.prototype,"halfWidth",void 0),(0,c._)([(0,o.C5)(7,a.nt)],E.prototype,"referenceHalfWidth",void 0),(0,c._)([(0,o.C5)(8,a.ZY)],E.prototype,"zoomRange",void 0);class g extends U.fF{}function T(_,x,A){const{id:R,bitset:F}=x,N=(0,I.mh)(F,B.Xx),q=(0,a.MM)(N,new a.nt(.5)),nt=(0,U.$0)(_,x),rt=(0,a.Tk)(q,nt.halfWidth,new a.nt(0)),ot=(0,P.cF)(_,R),X=(0,P.G7)(_,R,x.color),ct=(0,a.Tk)(q,x.color,X.multiply(ot)),_t=_.view.displayViewScreenMat3.multiply(new a.eB(x.pos.xy,1)),st=_.clip(x.id),dt=new a.Zb(_t.xy,st,1),ft=(0,a.Tk)(q,nt.glPosition,dt),pt=A&&_.maybeRunHittest(x,A,q);return{isOutline:N,color:ct,opacity:new a.nt(1),halfWidth:rt,normal:nt.normal,glPosition:ft,...pt}}class L extends v.f_{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}(0,c._)([(0,o.Pi)(U.fg)],L.prototype,"antialiasingControls",void 0),(0,c._)([(0,o.uK)(K._)],L.prototype,"visualVariableColor",void 0),(0,c._)([(0,o.uK)(S.i)],L.prototype,"visualVariableOpacity",void 0),(0,c._)([(0,o.uK)(j.n)],L.prototype,"visualVariableSizeMinMaxValue",void 0),(0,c._)([(0,o.uK)(D.F)],L.prototype,"visualVariableSizeScaleStops",void 0),(0,c._)([(0,o.uK)(b.N)],L.prototype,"visualVariableSizeStops",void 0),(0,c._)([(0,o.uK)(m.d)],L.prototype,"visualVariableSizeUnitValue",void 0);class O extends L{vertex(x,A){return T(this,x,A)}fragment(x){const{color:A,isOutline:R}=x,F=(0,a.MM)(R,new a.nt(.5)),N=(0,U.o7)(x,this.antialiasingControls.blur),q=(0,a.Tk)(F,N,A),nt=(0,a.Tk)(F,new a.nt(1/255),new a.nt(0));return this.getFragmentOutput(q,x,nt)}hittest(x,A,R){return(0,a.Tk)(R,(0,V.My)(this.hittestRequest),(0,V.Lq)(this,x,A))}}(0,c._)([(0,c.a)(0,(0,o.hF)(E)),(0,c.a)(1,(0,o.hF)(v.$Z))],O.prototype,"vertex",null),(0,c._)([(0,c.a)(0,(0,o.hF)(g))],O.prototype,"fragment",null)},61312:(tt,z,d)=>{d.d(z,{_u:()=>j,dW:()=>D,vx:()=>b});var c=d(8189),o=d(24821),a=d(3902),v=d(4196),B=d(35891),V=d(83090),U=d(28580);class I extends B._{}function j(m,P){const E=P.tlbr.xy,g=P.tlbr.zw,T=g.x.subtract(E.x),L=E.y.subtract(g.y),O=new a.ZY(T,L).multiply(P.inverseRasterizationScale),_=O.multiply(m.view.requiredZoomFactor),x=function S(m){const P=new a.nt(1),E=new a.nt(0);return new a.U(P.divide(m.x),E.divide(m.y),0,(0,a.ze)(E.divide(m.x)),P.divide(m.y),0,0,0,1)}(_),A=m.localTileOffset.getPatternOffsetAtTileOrigin(O).divide(_),R=new a.eB(P.pos,1);return{tileTextureCoord:x.multiply(R).xy.subtract(A),tlbr:P.tlbr.divide(m.mosaicInfo.size.xyxy)}}function D(m,P){const E=(0,a.zi)(m.tileTextureCoord,new a.nt(1)),g=(0,a.jh)(m.tlbr.xy,m.tlbr.zw,E),T=(0,a.US)(P.texture,g);return m.color.multiply(T)}(0,c._)([(0,o.C5)(5,a.Zb)],I.prototype,"tlbr",void 0),(0,c._)([(0,o.C5)(6,a.nt)],I.prototype,"inverseRasterizationScale",void 0);class b extends B.z{vertex(P,E){return{...super.vertex(P,E),...j(this,P)}}fragment(P){const E=D(P,this.mosaicInfo);return this.getFragmentOutput(E,P,new a.nt(0))}}(0,c._)([(0,o.Pi)(U.b)],b.prototype,"mosaicInfo",void 0),(0,c._)([(0,o.Pi)(V.P)],b.prototype,"localTileOffset",void 0),(0,c._)([(0,c.a)(0,(0,o.hF)(I)),(0,c.a)(1,(0,o.hF)(v.$Z))],b.prototype,"vertex",null),(0,c._)([(0,c.a)(0,(0,o.hF)(class K extends v.DM{}))],b.prototype,"fragment",null)},89148:(tt,z,d)=>{d.d(z,{A1:()=>j,tA:()=>D});var c=d(8189),o=d(24821),a=d(3902),v=d(4196),B=d(95827),V=d(83090),U=d(28580),I=d(3772),K=d(61312);class S extends I.wG{}(0,c._)([(0,o.C5)(9,a.Zb)],S.prototype,"tlbr",void 0),(0,c._)([(0,o.C5)(10,a.nt)],S.prototype,"inverseRasterizationScale",void 0);
1class j extends I.A7{}class D extends I.nj{vertex(m,P){return{...(0,I.Yb)(this,m,P),...(0,K._u)(this,m)}}fragment(m){const{isOutline:P}=m,E=(0,a.MM)(P,new a.nt(.5)),g=(0,B.o7)(m,this.antialiasingControls.blur),T=(0,K.dW)(m,this.mosaicInfo),L=(0,a.Tk)(E,g,T),O=(0,a.Tk)(E,new a.nt(1/255),new a.nt(0));return this.getFragmentOutput(L,m,O)}}(0,c._)([(0,o.Pi)(U.b)],D.prototype,"mosaicInfo",void 0),(0,c._)([(0,o.Pi)(V.P)],D.prototype,"localTileOffset",void 0),(0,c._)([(0,c.a)(0,(0,o.hF)(S)),(0,c.a)(1,(0,o.hF)(v.$Z))],D.prototype,"vertex",null),(0,c._)([(0,c.a)(0,(0,o.hF)(j))],D.prototype,"fragment",null)},16585:(tt,z,d)=>{d.d(z,{o:()=>v});var c=d(8189),o=d(24821),a=d(3902);class v extends o.k2{}(0,c._)([(0,o.Pi)(a.U)],v.prototype,"displayViewScreenMat3",void 0),(0,c._)([(0,o.Pi)(a.U)],v.prototype,"displayViewMat3",void 0),(0,c._)([(0,o.Pi)(a.U)],v.prototype,"displayMat3",void 0),(0,c._)([(0,o.Pi)(a.U)],v.prototype,"viewMat3",void 0),(0,c._)([(0,o.Pi)(a.U)],v.prototype,"tileMat3",void 0),(0,c._)([(0,o.Pi)(a.nt)],v.prototype,"displayZoomFactor",void 0),(0,c._)([(0,o.Pi)(a.nt)],v.prototype,"requiredZoomFactor",void 0),(0,c._)([(0,o.Pi)(a.ZY)],v.prototype,"tileOffset",void 0),(0,c._)([(0,o.Pi)(a.nt)],v.prototype,"currentScale",void 0),(0,c._)([(0,o.Pi)(a.nt)],v.prototype,"currentZoom",void 0),(0,c._)([(0,o.Pi)(a.nt)],v.prototype,"metersPerSRUnit",void 0),(0,c._)([(0,o.Pi)(a.nt)],v.prototype,"rotation",void 0),(0,c._)([(0,o.Pi)(a.nt)],v.prototype,"pixelRatio",void 0)},79677:(tt,z,d)=>{d.d(z,{_:()=>B});var c=d(8189),o=d(24821),a=d(3902),v=d(875);class B extends o.k2{getColor(U,I,K){return(0,a.j1)([(0,a.or)((0,v.M8)(U),K),I],[(0,a.$5)(U,this.values.first()),this.colors.first()],[(0,a.aX)(U,this.values.last()),this.colors.last()],[!0,()=>{const S=this.values.findIndex(P=>(0,a.MM)(P,U)),j=this.values.get(S),D=S.subtract(1),b=this.values.get(D),m=U.subtract(b).divide(j.subtract(b));return(0,a.jh)(this.colors.get(D),this.colors.get(S),m)}])}}(0,c._)([(0,o.Pi)(a.My.ofType(a.Zb,8))],B.prototype,"colors",void 0),(0,c._)([(0,o.Pi)(a.My.ofType(a.nt,8))],B.prototype,"values",void 0)},35255:(tt,z,d)=>{d.d(z,{i:()=>B});var c=d(8189),o=d(24821),a=d(3902),v=d(875);class B extends o.k2{getOpacity(U){return(0,a.j1)([(0,v.M8)(U),new a.nt(1)],[(0,a.$5)(U,this.opacityValues.first()),this.opacities.first()],[(0,a.aX)(U,this.opacityValues.last()),this.opacities.last()],[!0,()=>{const I=this.opacityValues.findIndex(b=>(0,a.MM)(b,U)),K=this.opacityValues.get(I),S=I.subtract(1),j=this.opacityValues.get(S),D=U.subtract(j).divide(K.subtract(j));return(0,a.jh)(this.opacities.get(S),this.opacities.get(I),D)}])}}(0,c._)([(0,o.Pi)(a.My.ofType(a.nt,8))],B.prototype,"opacities",void 0),(0,c._)([(0,o.Pi)(a.My.ofType(a.nt,8))],B.prototype,"opacityValues",void 0)},2098:(tt,z,d)=>{d.d(z,{n:()=>B});var c=d(8189),o=d(24821),a=d(3902),v=d(875);class B extends o.k2{getSize(U,I){const K=this.minMaxValueAndSize.xy,S=this.minMaxValueAndSize.zw;return(0,a.Tk)((0,v.M8)(U),I,()=>{const j=U.subtract(K.x).divide(K.y.subtract(K.x)),D=(0,a.qE)(j,new a.nt(0),new a.nt(1));return S.x.add(D.multiply(S.y.subtract(S.x)))})}}(0,c._)([(0,o.Pi)(a.Zb)],B.prototype,"minMaxValueAndSize",void 0)},14082:(tt,z,d)=>{d.d(z,{F:()=>v});var c=d(8189),o=d(24821),a=d(3902);class v extends o.k2{getSizeForViewScale(V){return(0,a.j1)([(0,a.$5)(V,this.values.first()),this.sizes.first()],[(0,a.aX)(V,this.values.last()),this.sizes.last()],[!0,()=>{const U=this.values.findIndex(D=>(0,a.MM)(D,V)),I=this.values.get(U),K=U.subtract(1),S=this.values.get(K),j=V.subtract(S).divide(I.subtract(S));return(0,a.jh)(this.sizes.get(K),this.sizes.get(U),j)}])}}(0,c._)([(0,o.Pi)(a.My.ofType(a.nt,8))],v.prototype,"sizes",void 0),(0,c._)([(0,o.Pi)(a.My.ofType(a.nt,8))],v.prototype,"values",void 0)},25688:(tt,z,d)=>{d.d(z,{N:()=>B});var c=d(8189),o=d(24821),a=d(3902),v=d(875);class B extends o.k2{getSize(U,I){const K=(0,a.j1)([(0,v.M8)(U),I],[(0,a.$5)(U,this.values.first()),this.sizes.first()],[(0,a.aX)(U,this.values.last()),this.sizes.last()],[!0,()=>{const S=this.values.findIndex(P=>(0,a.MM)(P,U)),j=this.values.get(S),D=S.subtract(1),b=this.values.get(D),m=U.subtract(b).divide(j.subtract(b));return(0,a.jh)(this.sizes.get(D),this.sizes.get(S),m)}]);return(0,a.Tk)((0,v.M8)(K),I,K)}}
1(0,c._)([(0,o.Pi)(a.My.ofType(a.nt,8))],B.prototype,"sizes",void 0),(0,c._)([(0,o.Pi)(a.My.ofType(a.nt,8))],B.prototype,"values",void 0)},47150:(tt,z,d)=>{d.d(z,{d:()=>B});var c=d(8189),o=d(24821),a=d(3902),v=d(875);class B extends o.k2{getSize(U,I){return(0,a.Tk)((0,v.M8)(U),I,U.multiply(this.unitValueToPixelsRatio))}}(0,c._)([(0,o.Pi)(a.nt)],B.prototype,"unitValueToPixelsRatio",void 0)},90731:(tt,z,d)=>{var c,pt;d.d(z,{$w:()=>m,Fb:()=>I,Fz:()=>ot,H_:()=>c,J5:()=>K,M:()=>g,Ni:()=>E,V5:()=>U,Xx:()=>rt,YV:()=>dt,au:()=>b,b5:()=>ct,bg:()=>_t,cn:()=>F,eo:()=>ft,kx:()=>X,os:()=>o,qM:()=>A,rp:()=>a,ti:()=>st}),(pt=c||(c={}))[pt.Geographic=0]="Geographic",pt[pt.Arithmatic=1]="Arithmatic";const o=3.14159265359/180,a=3.14159265359/128,U=1,I=1.1,K=1,b=24,m=8,E=1e-5,g=.05,A=1e-30,F=4,rt=0,ot=2,X=2,ct=3,_t=0,st=3,dt=16777216,ft=1.1},6702:(tt,z,d)=>{d.d(z,{Bo:()=>K,Bs:()=>U,E2:()=>B,Lq:()=>j,My:()=>S,g$:()=>D,kW:()=>V});var c=d(3902),o=d(90731),a=d(875);function B(b,m,P){const E=P.subtract(m),g=function v(b,m){return(0,c.Om)(b,(0,c.S8)(m))}(b.subtract(m),E),T=(0,c.qE)(g.divide((0,c.Bw)(E)),new c.nt(0),new c.nt(1));return(0,c.Io)(b,m.add(T.multiply(P.subtract(m))))}function V(b){const m=(0,c.tn)(b);return(0,c.PM)(m.x.add(m.y).add(m.z),new c.nt(1.05))}function U(b,m,P,E){const g=new c.U(P.x.multiply(E.y).subtract(E.x.multiply(P.y)),E.x.multiply(m.y).subtract(m.x.multiply(E.y)),m.x.multiply(P.y).subtract(P.x.multiply(m.y)),P.y.subtract(E.y),E.y.subtract(m.y),m.y.subtract(P.y),E.x.subtract(P.x),m.x.subtract(E.x),P.x.subtract(m.x)),T=m.x.multiply(P.y.subtract(E.y)),L=P.x.multiply(E.y.subtract(m.y)),O=E.x.multiply(m.y.subtract(P.y)),_=T.add(L).add(O);return new c.nt(1).divide(_).multiply(g.multiply(new c.eB(1,b)))}function I(b,m,P,E){return(0,c.LC)(V(U(b,m,P,E)),new c.nt(1))}function K(b,m,P,E){const g=P.subtract(m),T=E.subtract(m),L=(0,a.tL)(g,T),O=(0,c.Uo)((0,c.Xe)(L,new c.nt(o.M)),(0,c.MM)(L,new c.nt(-o.M)));return(0,c.j1)([(0,c.Uo)((0,c.AU)(O),I(b.xy,m,P,E)),new c.nt(-1)],[!0,()=>{const _=B(b,m,P),x=B(b,P,E),A=B(b,E,m);return(0,c.jk)((0,c.jk)(_,x),A)}])}function S(b){return b.distance.add(1)}function j(b,m,P){const{viewMat3:E,tileMat3:g}=b.view,T=E.multiply(g),L=T.multiply(new c.eB(m.pos,1)),O=T.multiply(new c.eB(P.nextPos1,1)),_=T.multiply(new c.eB(P.nextPos2,1));return K(b.hittestRequest.position,L.xy,O.xy,_.xy)}function D(b,m,P){return(0,c.Io)(b,P).subtract(m)}},875:(tt,z,d)=>{d.d(z,{K5:()=>j,Kt:()=>m,M8:()=>B,Rj:()=>P,_9:()=>v,i6:()=>D,mh:()=>S,nb:()=>I,p8:()=>T,tL:()=>U,xf:()=>E,yS:()=>b,zb:()=>g,zy:()=>O});var c=d(47669),o=d(3902),a=d(90731);function v(_){const x=(0,o.fV)(12.9898),A=(0,o.fV)(78.233),R=(0,o.fV)(43758.5453),F=(0,o.Om)(_,(0,o.Zc)(x,A)),N=(0,o.zi)(F,(0,o.fV)(3.14));return(0,o.jc)((0,o.F8)(N).multiply(R))}function B(_){return(0,o.LC)(_,(0,o.fV)(a.qM))}function U(_,x){return _.x.multiply(x.y).subtract(x.x.multiply(_.y))}function I(_){return _.multiply(2).subtract(1)}function S(_,x){const A=(0,o.fV)(2**x);return(0,o.zi)((0,o.RI)(_.divide(A)),(0,o.fV)(2))}function j(_,x){return(0,o.MM)(S(_,x),(0,o.fV)(.5))}function D(_,x){return S(_,x+c.U5)}function b(_,x){return S(_,x)}function m(_){const x=S(_.z,7),A=(0,o.fV)(1).subtract(x),R=_.xyz.subtract((0,o.eR)(0,0,(0,o.fV)(128)));return A.multiply(_).add(x.multiply(R))}function P(_){const x=(0,o.ln)(.99609375,.0038909912109375,1519918441772461e-20,5.9371814131736755e-8);return(0,o.Om)(_,x)}function E(_){return(0,o.T9)((0,o.T9)((0,o.T9)(_.x,_.y),_.z),_.w)}function g(_){return new o.nt(1).subtract(_)}function T(_){return _.subtract(new o.nt(1))}function O(_,x){return _.subtract(new o.nt(x))}},95171:(tt,z,d)=>{d.d(z,{G5:()=>o,G7:()=>v,Mg:()=>a,TL:()=>V,cF:()=>B,g_:()=>U});var c=d(3902);function o(I){return null!=I.visualVariableSizeMinMaxValue||null!=I.visualVariableSizeScaleStops||null!=I.visualVariableSizeStops||null!=I.visualVariableSizeUnitValue}function a(I,K,S){if(o(I)){var j,D,b,m,P,E,g;const T=I.storage.getSizeValue(K);return null!==(j=null!==(D=null!==(b=null===(m=I.visualVariableSizeMinMaxValue)||void 0===m?void 0:m.getSize(T,S))&&void 0!==b?b:null===(P=I.visualVariableSizeScaleStops)||void 0===P?void 0:P.getSizeForViewScale(I.view.currentScale))&&void 0!==D?D:null===(E=I.visualVariableSizeStops)||void 0===E?void 0:E.getSize(T,S))&&void 0!==j?j:null===(g=I.visualVariableSizeUnitValue)||void 0===g?void 0:g.getSize(T,S)}return S}
1function v(I,K,S,j=new c.x(!1)){if(null==I.visualVariableColor)return S;const D=I.storage.getColorValue(K);return I.visualVariableColor.getColor(D,S,j)}function B(I,K){if(null==I.visualVariableOpacity)return new c.nt(1);const S=I.storage.getOpacityValue(K);return I.visualVariableOpacity.getOpacity(S)}function V(I,K){if(null==I.visualVariableRotation)return c.U.identity();const S=I.storage.getRotationValue(K);return I.visualVariableRotation.getVVRotationMat3(S)}function U(I,K){if(null==I.visualVariableRotation)return new c.nt(0);const S=I.storage.getRotationValue(K);return I.visualVariableRotation.getNormalizedAngle(S)}},77989:(tt,z,d)=>{d.d(z,{K:()=>P});var c=d(5922),o=d(35150),a=d(89221),K=(d(40707),d(3248),d(77440),d(50915),d(79061),d(23063)),D=(d(68165),d(10746),d(24370));function m(E,g,T){const L=g.length;if(L!==T){const O=new c.A("Invalid Uniform",`Invalid length, expected ${T} but got ${L}`,{uniformName:E,values:g});o.A.getLogger("esri.views.2d.engine.webgl.shaderGraph.typed.TypedShaderProgram").errorOnce(O)}}class P{constructor(g,T,L,O,_,x){this._program=null,this._vao=null,this._temporaryTextures=[],this.vertexShader=g,this.fragmentShader=T,this._locations=L,this._locationInfo=O,this._uniformBindings=_,this._transformFeedbackBindings=x}destroy(){this._program&&this._program.dispose(),this.cleanupTemporaryTextures()}get locations(){return this._locations}get locationInfo(){return this._locationInfo}setUniforms(g){this._uniforms=g}cleanupTemporaryTextures(){for(const g of this._temporaryTextures)g.dispose();this._temporaryTextures=[]}bind(g){const T=this._uniforms;if(!this._program){const _=new Map;for(const[A,R]of this._locations)_.set(A,R);const x=[];for(const A of null!==(L=this._transformFeedbackBindings)&&void 0!==L?L:[]){var L;const{index:R,propertyKey:F}=A;x[R]=`v_${F}`}this._program=new K.B(g,this.vertexShader,this.fragmentShader,_,new Map,x)}const O=this._program;g.useProgram(O);for(const _ of this._uniformBindings){const{shaderModulePath:x,uniformName:A,uniformType:R,uniformArrayLength:F}=_,N=(0,a.wc)(x,T);if(null==N){if("sampler2D"===R)continue;throw new Error(`Failed to find uniform value for ${x}`)}switch("array"===R?_.uniformArrayElementType:R){case"sampler2D":{const{unit:q,texture:nt}=N;if(O.setUniform1i(A,q),"type"in nt)g.bindTexture(nt,q);else{const rt=(0,D.sZ)(g,nt.descriptor,nt.data);g.bindTexture(rt,q)}break}case"int":if(!F){O.setUniform1i(A,N);break}m(_.uniformName,N,F),O.setUniform1iv(A,N);break;case"float":if(!F){O.setUniform1f(A,N);break}m(_.uniformName,N,F),O.setUniform1fv(A,N);break;case"vec2":if(!F){O.setUniform2f(A,N[0],N[1]);break}m(_.uniformName,N,F),O.setUniform2fv(A,N.flat());break;case"vec3":if(!F){O.setUniform3f(A,N[0],N[1],N[2]);break}m(_.uniformName,N,F),O.setUniform3fv(A,N.flat());break;case"vec4":if(!F){O.setUniform4f(A,N[0],N[1],N[2],N[3]);break}m(_.uniformName,N,F),O.setUniform4fv(A,N.flat());break;case"mat3":O.setUniformMatrix3fv(A,N);break;case"mat4":O.setUniformMatrix4fv(A,N);break;default:throw new Error(`Unable to set uniform for type ${R}`)}}}}},35547:(tt,z,d)=>{d.d(z,{F:()=>j});var c=d(8189),o=d(98877),a=d(3248),v=d(12619),B=d(48900),V=d(85211),K=(d(35150),d(40707),d(76576)),S=d(56985);let j=class extends o.A{constructor(D){super(D),this.debugName="",this._updatingHandles=new S.U,this._idToUpdatingState=new v.A}get updating(){const D=this._updatingHandles.updating||Array.from(this._idToUpdatingState.values()).some(b=>b);if((0,a.A)("esri-2d-log-updating")){const b=Array.from(this._idToUpdatingState.entries()).map(([m,P])=>`-> ${m}: ${P}`).join("\n");console.log(`${this.debugName}: Updating: ${D}\n-> Handles: ${this._updatingHandles.updating}\n${b}`)}return D}addUpdateTracking(D,b){const m=(0,B.wB)(()=>b.updating,P=>this._idToUpdatingState.set(D,P),{sync:!0});this.addHandles(m)}addPromise(D){return this._updatingHandles.addPromise(D)}};(0,c._)([(0,V.MZ)({constructOnly:!0})],j.prototype,"debugName",void 0),(0,c._)([(0,V.MZ)({readOnly:!0})],j.prototype,"updating",null),j=(0,c._)([(0,K.$)("esri.views.2d.layers.support.UpdateTracking2D")],j)},20951:(tt,z,d)=>{var c,o;d.d(z,{c:()=>c}),(o=c||(c={}))[o.Pass=0]="Pass",o[o.Draw=1]="Draw"},65388:(tt,z,d)=>{d.d(z,{O_:()=>I,vA:()=>V}),d(45475),d(53781),(0,d(89141).vt)();class B{constructor(P){this.message=P}toString(){return`AssertException: ${this.message}`}}function V(m,P="Assertion"){if(!m){const E=new Error(P).stack;throw new B(`${P} at ${E}`)}}function I(m,P,E,g){let T,L=(E[0]-m[0])/P[0],O=(g[0]-m[0])/P[0];L>O&&(T=L,L=O,O=T);let _=(E[1]-m[1])/P[1],x=(g[1]-m[1])/P[1];if(_>x&&(T=_,_=x,x=T),L>x||_>O)return!1;_>L&&(L=_),x<O&&(O=x);let A=(E[2]-m[2])/P[2],R=(g[2]-m[2])/P[2];return A>R&&(T=A,A=R,R=T),!(L>R||A>O||(R<O&&(O=R),O<0))}}}]);
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.