@arcgis/core 5.1.0-next.23 → 5.1.0-next.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/359d3ba9d6e3b1de05d1.js +1 -0
  3. package/assets/esri/core/workers/chunks/53817ef8c00d8cce4b8e.js +1 -0
  4. package/assets/esri/core/workers/chunks/{73e02f6c7ccc2013c812.js → 5fa5a2fb69f84e9092ba.js} +1 -1
  5. package/assets/esri/libs/linkchartlayout/lclayout.wasm +0 -0
  6. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  7. package/assets/esri/themes/base/widgets/_ResponsiveToolbar.scss +6 -0
  8. package/assets/esri/themes/dark/main.css +1 -1
  9. package/assets/esri/themes/light/main.css +1 -1
  10. package/assets/esri/themes/light/view.css +1 -1
  11. package/chunks/HUDMaterial.glsl.js +50 -35
  12. package/chunks/lclayout.js +1 -1
  13. package/config.js +1 -1
  14. package/core/workers.d.ts +1 -1
  15. package/editing/sharedTemplates/SharedTemplate.d.ts +12 -3
  16. package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +11 -2
  17. package/interfaces.d.ts +4 -12
  18. package/kernel.js +1 -1
  19. package/layers/mixins/ArcGISImageService.js +1 -1
  20. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  21. package/networks/UtilityNetwork.js +1 -1
  22. package/package.json +1 -1
  23. package/support/revision.js +1 -1
  24. package/symbols/cim/types.d.ts +7 -0
  25. package/views/2d/engine/webgl/Overlay.js +1 -1
  26. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  27. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  28. package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
  29. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  30. package/views/2d/layers/KMLLayerView2D.js +1 -1
  31. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  32. package/views/2d/types.d.ts +4 -3
  33. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  34. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  35. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  36. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  37. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  38. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  39. package/views/3d/layers/graphics/LabelParameters.js +1 -1
  40. package/views/3d/layers/graphics/Labeler.js +1 -1
  41. package/views/3d/types.d.ts +2 -1
  42. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  43. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  44. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  45. package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
  46. package/views/layers/GeoRSSLayerView.d.ts +5 -4
  47. package/views/layers/GeoRSSLayerView.js +2 -0
  48. package/views/layers/GraphicsLayerView.d.ts +21 -21
  49. package/views/layers/GraphicsLayerView.js +2 -0
  50. package/views/layers/KMLLayerView.d.ts +10 -10
  51. package/views/layers/KMLLayerView.js +2 -0
  52. package/views/layers/VectorTileLayerView.d.ts +5 -5
  53. package/views/layers/VectorTileLayerView.js +2 -0
  54. package/widgets/Editor.js +1 -1
  55. package/widgets/Sketch/SketchViewModel.js +1 -1
  56. package/widgets/Sketch/support/ResponsiveToolbar/OverflowGroup.js +1 -1
  57. package/widgets/Sketch/support/ResponsiveToolbar/SplitButton.js +1 -1
  58. package/widgets/Sketch/support/ResponsiveToolbar/responsiveToolbarUtils.js +1 -1
  59. package/widgets/Sketch.js +1 -1
  60. package/assets/esri/core/workers/chunks/7642905920e169a147f3.js +0 -1
  61. package/assets/esri/core/workers/chunks/8aabc71d7f15c4407d7d.js +0 -1
  62. package/views/3d/layers/graphics/focusAreaStyle.js +0 -2
@@ -1,5 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{copy as e,set as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as i}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{ZEROS as r}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{RejectBySlice as t}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{ObjectAndLayerIdColor as l}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{AlignPixel as a}from"../views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js";import{HUD as s}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js";import{HUDOcclusionPass as n}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js";import{HUDVisibility as c}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js";import{OutputHighlight as d}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadDepth as u}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{positionOutsideClipSpace as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PositionOutsideClipSpace.js";import{VisualVariables as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as m}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{ScreenSizePerspective as g,addScreenSizePerspective as v,addScreenSizePerspectiveAlignment as x}from"../views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import{addPixelRatio as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as b}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4BindUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js";import{Float4PassUniform as w}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as z}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{If as S,glsl as P}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DBindUniform as j}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as y}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{alphaCutoff as A}from"../views/3d/webgl-engine/shaders/alphaCutoff.glsl.js";import{outputColorHighlightOLID as O}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as D}from"../views/webgl/ShaderBuilder.js";function F(e){const i=new D;if(i.include(s,e),i.vertex.include(t,e),e.occlusionPass)return i.include(n,e),i;const{output:F,oitPass:B,hasOcclusionTexture:T,signedDistanceFieldEnabled:M,useVisibilityPixel:_,pixelSnappingEnabled:H,hasEmission:q,hasScreenSizePerspective:R,debugDrawLabelBorder:I,hasVVSize:k,hasVVColor:E,hasRotation:G,occludedFragmentFade:J,sampleSignedDistanceFieldTexelCenter:K,hasVertexColor:N,hasVertexSize:Q,hasVertexRotation:W,hasVertexUVi:X}=e;i.include(g),i.include(p,e),i.include(l,e),i.include(O,e),_&&i.include(c);const{vertex:Y,fragment:Z}=i;Z.include(m),i.varyings.add("vcolor","vec4"),i.varyings.add("vtc","vec2"),i.varyings.add("vsize","vec2");const ee=8===F,oe=ee&&_;oe&&i.varyings.add("voccluded","float"),Y.uniforms.add(new C("viewport",e=>e.camera.fullViewport),new b("screenOffset",(e,i)=>o(L,2*e.screenOffset[0]*i.camera.pixelRatio,2*e.screenOffset[1]*i.camera.pixelRatio)),new b("anchorPosition",e=>V(e)),new w("materialColor",({color:e})=>e),new z("materialRotation",e=>e.rotation),new b("materialSize",e=>e.size),new y("tex",e=>e.texture)),h(Y),M&&(Y.uniforms.add(new w("outlineColor",e=>e.outlineColor)),Z.uniforms.add(new w("outlineColor",e=>$(e)?e.outlineColor:r),new z("outlineSize",e=>$(e)?e.outlineSize:0))),H&&Y.include(a),R&&(v(Y),x(Y)),I&&i.varyings.add("debugBorderCoords","vec4"),i.attributes.add("uv0","vec2"),X&&i.attributes.add("uvi","vec4"),N&&i.attributes.add("color","vec4"),Q&&i.attributes.add("size","vec2"),W&&i.attributes.add("rotation","float"),(k||E)&&i.attributes.add("featureAttribute","vec4"),Y.main.add(P`
2
+ import{copy as e,set as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as i}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{ZEROS as r}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{RejectBySlice as t}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{ObjectAndLayerIdColor as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{AlignPixel as l}from"../views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js";import{HUD as s}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js";import{HUDOcclusionPass as n}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js";import{HUDVisibility as c}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js";import{OutputHighlight as d}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadDepth as u}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{positionOutsideClipSpace as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PositionOutsideClipSpace.js";import{VisualVariables as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as g}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{ScreenSizePerspective as m,addScreenSizePerspective as v,addScreenSizePerspectiveAlignment as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import{addPixelRatio as x}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as b}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4BindUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js";import{Float4PassUniform as w}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as S}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as z,If as P}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{IntegerPassUniform as y}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{Texture2DBindUniform as j}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as A}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{styleToEffect as O}from"../views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js";import{alphaCutoff as F}from"../views/3d/webgl-engine/shaders/alphaCutoff.glsl.js";import{outputColorHighlightOLID as D}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as $}from"../views/webgl/ShaderBuilder.js";const B=e=>e?O[e]:0;function V(e){const i=new $;if(i.include(s,e),i.vertex.include(t,e),e.occlusionPass)return i.include(n,e),i;const{output:O,oitPass:V,hasOcclusionTexture:T,signedDistanceFieldEnabled:H,useVisibilityPixel:q,pixelSnappingEnabled:R,hasEmission:k,hasScreenSizePerspective:I,debugDrawLabelBorder:E,hasVVSize:G,hasVVColor:N,hasRotation:J,occludedFragmentFade:K,sampleSignedDistanceFieldTexelCenter:Q,hasVertexColor:W,hasVertexSize:X,hasVertexRotation:Y,hasVertexUVi:Z}=e;i.include(m),i.include(p,e),i.include(a,e),i.include(D,e),q&&i.include(c);const{vertex:ee,fragment:oe}=i;oe.include(g),oe.code.add(z`
3
+ vec4 applyFocusAreaStyle(vec4 color, int style) {
4
+ const float factor = 0.46;
5
+ const float factorBright = 0.32;
6
+
7
+ if (style == ${z.int(0)}) {
8
+ float luma = (color.r + color.g + color.b) / 3.0;
9
+ float bright = luma * (1.0 - 0.6 * factorBright) + 0.6 * factorBright * color.a;
10
+ float brightScaled = bright * factorBright;
11
+ return vec4(brightScaled, brightScaled, brightScaled, color.a * factorBright);
12
+ }
13
+
14
+ float darkScaled = factor * factor;
15
+ return vec4(color.rgb * darkScaled, color.a * factor);
16
+ }
17
+ `),i.varyings.add("vcolor","vec4"),i.varyings.add("vtc","vec2"),i.varyings.add("vsize","vec2");const ie=8===O,re=ie&&q;re&&i.varyings.add("voccluded","float"),ee.uniforms.add(new C("viewport",e=>e.camera.fullViewport),new b("screenOffset",(e,i)=>o(M,2*e.screenOffset[0]*i.camera.pixelRatio,2*e.screenOffset[1]*i.camera.pixelRatio)),new b("anchorPosition",e=>U(e)),new w("materialColor",({color:e})=>e),new S("materialRotation",e=>e.rotation),new b("materialSize",e=>e.size),new A("tex",e=>e.texture)),x(ee),H&&(ee.uniforms.add(new w("outlineColor",e=>e.outlineColor)),oe.uniforms.add(new w("outlineColor",e=>L(e)?e.outlineColor:r),new S("outlineSize",e=>L(e)?e.outlineSize:0))),R&&ee.include(l),I&&(v(ee),h(ee)),E&&i.varyings.add("debugBorderCoords","vec4"),i.attributes.add("uv0","vec2"),Z&&i.attributes.add("uvi","vec4"),W&&i.attributes.add("color","vec4"),X&&i.attributes.add("size","vec2"),Y&&i.attributes.add("rotation","float"),(G||N)&&i.attributes.add("featureAttribute","vec4"),ee.main.add(z`
3
18
  ProjectHUDAux projectAux;
4
19
  vec4 posProj = projectPositionHUD(projectAux);
5
20
  forwardObjectAndLayerIdColor();
@@ -9,39 +24,39 @@ import{copy as e,set as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{cre
9
24
  return;
10
25
  }
11
26
 
12
- vec2 vertexSize = materialSize${S(Q," * size")};
27
+ vec2 vertexSize = materialSize${P(X," * size")};
13
28
  vec2 inputSize;
14
- ${S(R,P`
29
+ ${P(I,z`
15
30
  inputSize = screenSizePerspectiveScaleVec2(vertexSize, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspective);
16
- vec2 screenOffsetScaled = screenSizePerspectiveScaleVec2(screenOffset, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspectiveAlignment);`,P`
31
+ vec2 screenOffsetScaled = screenSizePerspectiveScaleVec2(screenOffset, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspectiveAlignment);`,z`
17
32
  inputSize = vertexSize;
18
33
  vec2 screenOffsetScaled = screenOffset;`)}
19
- ${S(k,P`inputSize *= vvScale(featureAttribute).xx;`)}
34
+ ${P(G,z`inputSize *= vvScale(featureAttribute).xx;`)}
20
35
 
21
36
  vec2 combinedSize = inputSize * pixelRatio;
22
37
  vec4 quadOffset = vec4(0.0);
23
38
 
24
- ${S(_,P`
39
+ ${P(q,z`
25
40
  bool visible = testHUDVisibility(posProj);
26
41
  if (!visible) {
27
42
  vtc = vec2(0.0);
28
- ${S(I,"debugBorderCoords = vec4(0.5, 0.5, 1.5 / combinedSize);")}
43
+ ${P(E,"debugBorderCoords = vec4(0.5, 0.5, 1.5 / combinedSize);")}
29
44
  return;
30
45
  }
31
46
  `)}
32
- ${S(oe,P`voccluded = visible ? 0.0 : 1.0;`)}
33
- `);const ie=P`
34
- ${S(X,P`
47
+ ${P(re,z`voccluded = visible ? 0.0 : 1.0;`)}
48
+ `);const te=z`
49
+ ${P(Z,z`
35
50
  vec2 texSize = vec2(textureSize(tex, 0));
36
51
  vec2 uv = mix(uvi.xy, uvi.zw, bvec2(uv0)) / texSize;
37
- `,P`
52
+ `,z`
38
53
  vec2 uv = mix(vec2(0.), vec2(1.), bvec2(uv0));
39
54
  `)}
40
55
 
41
56
  quadOffset.xy = (uv0 - anchorPosition) * 2.0 * combinedSize;
42
57
 
43
- ${S(G,P`
44
- float angle = radians(materialRotation${S(W," + rotation")});
58
+ ${P(J,z`
59
+ float angle = radians(materialRotation${P(Y," + rotation")});
45
60
  float cosAngle = cos(angle);
46
61
  float sinAngle = sin(angle);
47
62
  mat2 rotate = mat2(cosAngle, -sinAngle, sinAngle, cosAngle);
@@ -50,34 +65,34 @@ import{copy as e,set as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{cre
50
65
  `)}
51
66
 
52
67
  quadOffset.xy = (quadOffset.xy + screenOffsetScaled) / viewport.zw * posProj.w;
53
- `,re=H?M?P`posProj = alignToPixelOrigin(posProj, viewport.zw) + quadOffset;`:P`posProj += quadOffset;
68
+ `,ae=R?H?z`posProj = alignToPixelOrigin(posProj, viewport.zw) + quadOffset;`:z`posProj += quadOffset;
54
69
  if (inputSize.x == vertexSize.x) {
55
70
  posProj = alignToPixelOrigin(posProj, viewport.zw);
56
- }`:P`posProj += quadOffset;`;switch(Y.include(A),Y.main.add(P`
57
- ${ie}
58
- ${E?"vcolor = interpolateVVColor(featureAttribute.y) * materialColor;":N?"vcolor = color * materialColor;":"vcolor = materialColor;"}
71
+ }`:z`posProj += quadOffset;`;ee.include(F),ee.main.add(z`
72
+ ${te}
73
+ ${N?"vcolor = interpolateVVColor(featureAttribute.y) * materialColor;":W?"vcolor = color * materialColor;":"vcolor = materialColor;"}
59
74
 
60
- ${S(9===F,P`vcolor.a = 1.0;`)}
75
+ ${P(9===O,z`vcolor.a = 1.0;`)}
61
76
 
62
77
  bool alphaDiscard = vcolor.a < alphaCutoff;
63
- ${S(M,"alphaDiscard = alphaDiscard && outlineColor.a < alphaCutoff;")}
78
+ ${P(H,"alphaDiscard = alphaDiscard && outlineColor.a < alphaCutoff;")}
64
79
  if (alphaDiscard) {
65
80
  // "early discard" if both symbol color (= fill) and outline color (if applicable) are transparent
66
81
  gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
67
82
  return;
68
83
  } else {
69
- ${re}
84
+ ${ae}
70
85
  gl_Position = posProj;
71
86
  }
72
87
 
73
88
  vtc = uv;
74
89
 
75
- ${S(I,P`debugBorderCoords = vec4(uv0, 1.5 / combinedSize);`)}
90
+ ${P(E,z`debugBorderCoords = vec4(uv0, 1.5 / combinedSize);`)}
76
91
  vsize = inputSize;
77
- `),Z.uniforms.add(new y("tex",e=>e.texture)),J&&!ee&&(Z.include(u),Z.uniforms.add(new j("depthMap",e=>e.mainDepth),new z("occludedOpacity",e=>e.occludedFragmentOpacity?.value??1))),T&&Z.uniforms.add(new j("texOcclusion",e=>e.hudOcclusion?.attachment)),I?Z.main.add("\n float isBorder = float(any(lessThan(debugBorderCoords.xy, debugBorderCoords.zw)) || any(greaterThan(debugBorderCoords.xy, 1.0 - debugBorderCoords.zw)));\n // don't discard fragments on debug border\n float textureAlphaCutoff = isBorder > 0.0 ? 0.0 : alphaCutoff;\n "):Z.main.add("float textureAlphaCutoff = alphaCutoff;"),Z.main.add("vec2 samplePos = vtc;"),K&&Z.main.add(P`float txSize = float(textureSize(tex, 0).x);
92
+ `);const le=0===O&&e.hasFocusAreaStyle&&!e.draped;switch(oe.uniforms.add(new A("tex",e=>e.texture)),le&&oe.uniforms.add(new y("focusAreaStyle",e=>B(e.focusAreaStyle))),K&&!ie&&(oe.include(u),oe.uniforms.add(new j("depthMap",e=>e.mainDepth),new S("occludedOpacity",e=>e.occludedFragmentOpacity?.value??1))),T&&oe.uniforms.add(new j("texOcclusion",e=>e.hudOcclusion?.attachment)),E?oe.main.add("\n float isBorder = float(any(lessThan(debugBorderCoords.xy, debugBorderCoords.zw)) || any(greaterThan(debugBorderCoords.xy, 1.0 - debugBorderCoords.zw)));\n // don't discard fragments on debug border\n float textureAlphaCutoff = isBorder > 0.0 ? 0.0 : alphaCutoff;\n "):oe.main.add("float textureAlphaCutoff = alphaCutoff;"),oe.main.add("vec2 samplePos = vtc;"),Q&&oe.main.add(z`float txSize = float(textureSize(tex, 0).x);
78
93
  float texelSize = 1.0 / txSize;
79
94
  vec2 scaleFactor = (vsize - txSize) * texelSize;
80
- samplePos += (vec2(1.0, -1.0) * texelSize) * scaleFactor;`),M?Z.main.add(P`
95
+ samplePos += (vec2(1.0, -1.0) * texelSize) * scaleFactor;`),H?oe.main.add(z`
81
96
  vec4 fillPixelColor = vcolor;
82
97
 
83
98
  // Get distance in output units (i.e. pixels)
@@ -109,35 +124,35 @@ samplePos += (vec2(1.0, -1.0) * texelSize) * scaleFactor;`),M?Z.main.add(P`
109
124
  vec3 compositeColor = vec3(outlinePixelColor) * outlinePixelColor.a +
110
125
  vec3(fillPixelColor) * fillPixelColor.a * (1.0 - outlinePixelColor.a);
111
126
 
112
- ${S(!ee,P`fragColor = vec4(compositeColor, compositeAlpha);`)}
127
+ ${P(!ie,z`fragColor = vec4(compositeColor, compositeAlpha);`)}
113
128
  } else {
114
129
  if (fillAlphaFactor < textureAlphaCutoff) {
115
130
  discard;
116
131
  }
117
132
 
118
- ${S(!ee,P`fragColor = premultiplyAlpha(fillPixelColor);`)}
133
+ ${P(!ie,z`fragColor = premultiplyAlpha(fillPixelColor);`)}
119
134
  }
120
135
 
121
136
  // visualize SDF:
122
137
  // fragColor = vec4(clamp(-pixelDistance/vsize.x*2.0, 0.0, 1.0), clamp(pixelDistance/vsize.x*2.0, 0.0, 1.0), 0.0, 1.0);
123
- `):Z.main.add(P`
138
+ `):oe.main.add(z`
124
139
  vec4 texColor = texture(tex, samplePos, -0.5);
125
140
  if (texColor.a < textureAlphaCutoff) {
126
141
  discard;
127
142
  }
128
- ${S(!ee,P`fragColor = texColor * premultiplyAlpha(vcolor);`)}
129
- `),J&&!ee&&Z.main.add(P`
143
+ ${P(!ie,z`fragColor = texColor * premultiplyAlpha(vcolor);`)}
144
+ `),K&&!ie&&oe.main.add(z`
130
145
  float zSample = -linearizeDepth(texelFetch(depthMap, ivec2(gl_FragCoord.xy), 0).x);
131
146
  float zFragment = -linearizeDepth(gl_FragCoord.z);
132
- if (zSample < ${P.float(1-U)} * zFragment) {
147
+ if (zSample < ${z.float(1-_)} * zFragment) {
133
148
  fragColor *= occludedOpacity;
134
149
  }
135
- `),T&&Z.main.add("fragColor *= texelFetch(texOcclusion, ivec2(gl_FragCoord.xy), 0).r;"),!ee&&I&&Z.main.add("fragColor = mix(fragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);"),2===B&&Z.main.add(P`if (fragColor.a < alphaCutoff) {
150
+ `),T&&oe.main.add("fragColor *= texelFetch(texOcclusion, ivec2(gl_FragCoord.xy), 0).r;"),!ie&&E&&oe.main.add("fragColor = mix(fragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);"),2===V&&oe.main.add(z`if (fragColor.a < alphaCutoff) {
136
151
  discard;
137
- }`),F){case 0:Z.main.add(P`
152
+ }`),le&&oe.main.add(z`fragColor = applyFocusAreaStyle(fragColor, focusAreaStyle);`),O){case 0:oe.main.add(z`
138
153
  // Unlike other materials, the fragment shader outputs premultiplied colors.
139
154
  // Disable this for front face rendering for correct OIT compositing.
140
- ${S(2===B,P`fragColor.rgb /= fragColor.a;`)}
141
- ${S(q,P`fragEmission = vec4(0.0);`)}
142
- ${S(1===B,P`fragAlpha = fragColor.a;`)}`);break;case 9:Z.main.add(P`outputObjectAndLayerIdColor();`);break;case 8:i.include(d,e),Z.main.add(P`
143
- outputHighlight(${S(oe,P`voccluded == 1.0`,P`false`)});`)}return i}function $(e){return e.outlineColor[3]>0&&e.outlineSize>0}function V(o){return o.textureIsSignedDistanceField?B(o.anchorPosition,o.distanceFieldBoundingBox,L):e(L,o.anchorPosition),L}const L=i();function B(e,i,r){o(r,e[0]*(i[2]-i[0])+i[0],e[1]*(i[3]-i[1])+i[1])}const U=.08,T=Object.freeze(Object.defineProperty({__proto__:null,build:F,calculateAnchorPosition:V},Symbol.toStringTag,{value:"Module"}));export{T as H,F as b,V as c};
155
+ ${P(2===V,z`fragColor.rgb /= fragColor.a;`)}
156
+ ${P(k,z`fragEmission = vec4(0.0);`)}
157
+ ${P(1===V,z`fragAlpha = fragColor.a;`)}`);break;case 9:oe.main.add(z`outputObjectAndLayerIdColor();`);break;case 8:i.include(d,e),oe.main.add(z`
158
+ outputHighlight(${P(re,z`voccluded == 1.0`,z`false`)});`)}return i}function L(e){return e.outlineColor[3]>0&&e.outlineSize>0}function U(o){return o.textureIsSignedDistanceField?T(o.anchorPosition,o.distanceFieldBoundingBox,M):e(M,o.anchorPosition),M}const M=i();function T(e,i,r){o(r,e[0]*(i[2]-i[0])+i[0],e[1]*(i[3]-i[1])+i[1])}const _=.08,H=Object.freeze(Object.defineProperty({__proto__:null,build:V,calculateAnchorPosition:U},Symbol.toStringTag,{value:"Module"}));export{H,V as b,U as c};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{g as r}from"./_commonjsHelpers.js";function e(r,e){for(var t=0;t<e.length;t++){const n=e[t];if("string"!=typeof n&&!Array.isArray(n))for(const e in n)if("default"!==e&&!(e in r)){const t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:()=>n[e]})}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var t,n={exports:{}};function a(){return t||(t=1,r=n,e="undefined"!=typeof document?document.currentScript?.src:void 0,a=function(r={}){var t,n,a=Object.assign({},r),o=new Promise((r,e)=>{t=r,n=e}),i=!0,u=Object.assign({},a),s="./this.program",l="";function c(r){return a.locateFile?a.locateFile(r,l):l+r}"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),e&&(l=e),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var f,d,h=a.printErr||console.error.bind(console);Object.assign(a,u),u=null,a.arguments&&a.arguments,a.thisProgram&&(s=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(f=a.wasmBinary);var m,v,p,y,g,w,_,b,A=!1;function T(){var r=d.buffer;a.HEAP8=m=new Int8Array(r),a.HEAP16=p=new Int16Array(r),a.HEAPU8=v=new Uint8Array(r),a.HEAPU16=y=new Uint16Array(r),a.HEAP32=g=new Int32Array(r),a.HEAPU32=w=new Uint32Array(r),a.HEAPF32=_=new Float32Array(r),a.HEAPF64=b=new Float64Array(r)}var C=[],P=[],F=[];function W(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)O(a.preRun.shift());G(C)}function E(){G(P)}function S(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)$(a.postRun.shift());G(F)}function O(r){C.unshift(r)}function j(r){P.unshift(r)}function $(r){F.unshift(r)}var D=0,M=null;function R(r){D++,a.monitorRunDependencies?.(D)}function x(r){if(D--,a.monitorRunDependencies?.(D),0==D&&M){var e=M;M=null,e()}}function k(r){a.onAbort?.(r),h(r="Aborted("+r+")"),A=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}var H,I="data:application/octet-stream;base64,",V=r=>r.startsWith(I);function U(r){if(r==H&&f)return new Uint8Array(f);throw"both async and sync fetching of the wasm failed"}function Y(r){return!f&&i&&"function"==typeof fetch?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>U(r)):Promise.resolve().then(()=>U(r))}function B(r,e,t){return Y(r).then(r=>WebAssembly.instantiate(r,e)).then(t,r=>{h(`failed to asynchronously prepare wasm: ${r}`),k(r)})}function z(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||V(e)||"function"!=typeof fetch?B(e,t,n):fetch(e,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(n,function(r){return h(`wasm streaming compile failed: ${r}`),h("falling back to ArrayBuffer instantiation"),B(e,t,n)}))}function N(){return{a:st}}function q(){var r=N();function e(r,e){return lt=r.exports,d=lt.N,T(),kr=lt.Q,j(lt.O),x(),lt}function t(r){e(r.instance)}if(R(),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(o){h(`Module.instantiateWasm callback failed with error: ${o}`),n(o)}return z(f,H,r,t).catch(n),{}}V(H="lclayout.wasm")||(H=c(H));var G=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class J{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){w[this.ptr+4>>2]=r}get_type(){return w[this.ptr+4>>2]}set_destructor(r){w[this.ptr+8>>2]=r}get_destructor(){return w[this.ptr+8>>2]}set_caught(r){r=r?1:0,m[this.ptr+12]=r}get_caught(){return 0!=m[this.ptr+12]}set_rethrown(r){r=r?1:0,m[this.ptr+13]=r}get_rethrown(){return 0!=m[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){w[this.ptr+16>>2]=r}get_adjusted_ptr(){return w[this.ptr+16>>2]}get_exception_ptr(){if(ht(this.get_type()))return w[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var L=(r,e,t)=>{throw new J(r).init(e,t),r},X={},K=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function Q(r){return this.fromWireType(w[r>>2])}var Z,rr,er,tr={},nr={},ar={},or=r=>{throw new Z(r)},ir=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&or("Mismatched type converter count");for(var a=0;a<r.length;++a)hr(r[a],n[a])}r.forEach(function(r){ar[r]=e});var a=new Array(e.length),o=[],i=0;e.forEach((r,e)=>{nr.hasOwnProperty(r)?a[e]=nr[r]:(o.push(r),tr.hasOwnProperty(r)||(tr[r]=[]),tr[r].push(()=>{a[e]=nr[r],++i===o.length&&n(a)}))}),0===o.length&&n(a)},ur=r=>{var e=X[r];delete X[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));ir([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),K(t)}}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:n}]})},sr=(r,e,t,n,a)=>{},lr=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);rr=r},cr=r=>{for(var e="",t=r;v[t];)e+=rr[v[t++]];return e},fr=r=>{throw new er(r)};function dr(r,e,t={}){var n=e.name;if(r||fr(`type "${n}" must have a positive integer typeid pointer`),nr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;fr(`Cannot register type '${n}' twice`)}if(nr[r]=e,delete ar[r],tr.hasOwnProperty(r)){var a=tr[r];delete tr[r],a.forEach(r=>r())}}function hr(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return dr(r,e,t)}var mr=8,vr=(r,e,t,n)=>{hr(r,{name:e=cr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:mr,readValueFromPointer:function(r){return this.fromWireType(v[r])},destructorFunction:null})},pr=(r,e,t)=>{r=cr(r),ir([],[e],e=>(e=e[0],a[r]=e.fromWireType(t),[]))},yr=[],gr=[],wr=r=>{r>9&&0===--gr[r+1]&&(gr[r]=void 0,yr.push(r))},_r=()=>gr.length/2-5-yr.length,br=()=>{gr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=_r},Ar={toValue:r=>(r||fr("Cannot use deleted val. handle = "+r),gr[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=yr.pop()||gr.length;return gr[e]=r,gr[e+1]=1,e}}}},Tr={name:"emscripten::val",fromWireType:r=>{var e=Ar.toValue(r);return wr(r),e},toWireType:(r,e)=>Ar.toHandle(e),argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:null},Cr=r=>hr(r,Tr),Pr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||fr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Fr=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&fr(`Cannot register public name '${r}' twice`),Pr(a,r,r),a.hasOwnProperty(t)&&fr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},Wr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(m[r])}:function(r){return this.fromWireType(v[r])};case 2:return t?function(r){return this.fromWireType(p[r>>1])}:function(r){return this.fromWireType(y[r>>1])};case 4:return t?function(r){return this.fromWireType(g[r>>2])}:function(r){return this.fromWireType(w[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Er=(r,e,t,n)=>{function a(){}e=cr(e),a.values={},hr(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:mr,readValueFromPointer:Wr(e,t,n),destructorFunction:null}),Fr(e,a)},Sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Or=r=>{var e=ct(r),t=cr(e);return dt(e),t},jr=(r,e)=>{var t=nr[r];return void 0===t&&fr(`${e} has unknown type ${Or(r)}`),t},$r=(r,e,t)=>{var n=jr(r,"enum");e=cr(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:Sr(`${n.name}_${e}`,function(){})}});a.values[t]=o,a[e]=o},Dr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(_[r>>2])};case 8:return function(r){return this.fromWireType(b[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Mr=(r,e,t)=>{hr(r,{name:e=cr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:mr,readValueFromPointer:Dr(e,t),destructorFunction:null})};function Rr(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}function xr(r,e,t,n,a,o){var i=e.length;i<2&&fr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var u=Rr(e),s="void"!==e[0].name,l=i-2,c=new Array(l),f=[],d=[];return Sr(r,function(...t){var o;t.length!==l&&fr(`function ${r} called with ${t.length} arguments, expected ${l}`),d.length=0,f.length=1,f[0]=a;for(var i=0;i<l;++i)c[i]=e[i+2].toWireType(d,t[i]),f.push(c[i]);function h(r){if(u)K(d);else for(var t=2;t<e.length;t++){var n=1===t?o:c[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}return h(n(...f))})}var kr,Hr,Ir,Vr=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(w[e+4*n>>2]);return t},Ur=(r,e,t)=>{a.hasOwnProperty(r)||or("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},Yr=(r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)),Br=[],zr=r=>{var e=Br[r];return e||(r>=Br.length&&(Br.length=r+1),Br[r]=e=kr.get(r)),e},Nr=(r,e,t=[])=>r.includes("j")?Yr(r,e,t):zr(e)(...t),qr=(r,e)=>(...t)=>Nr(r,e,t),Gr=(r,e)=>{function t(){return r.includes("j")?qr(r,e):zr(e)}r=cr(r);var n=t();return"function"!=typeof n&&fr(`unknown function pointer with signature ${r}: ${e}`),n},Jr=(r,e)=>{var t=Sr(e,function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},Lr=(r,e)=>{var t=[],n={};function a(r){n[r]||nr[r]||(ar[r]?ar[r].forEach(a):(t.push(r),n[r]=!0))}throw e.forEach(a),new Hr(`${r}: `+t.map(Or).join([", "]))},Xr=r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r},Kr=(r,e,t,n,a,o,i)=>{var u=Vr(e,t);r=cr(r),r=Xr(r),a=Gr(n,a),Fr(r,function(){Lr(`Cannot call ${r} due to unbound types`,u)},e-1),ir([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Ur(r,xr(r,n,null,a,o),e-1),[]})},Qr=(r,e,t)=>{switch(e){case 1:return t?r=>m[r]:r=>v[r];case 2:return t?r=>p[r>>1]:r=>y[r>>1];case 4:return t?r=>g[r>>2]:r=>w[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Zr=(r,e,t,n,a)=>{e=cr(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned"),s=(r,e)=>{};hr(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return s(e,this.name),e>>>0}:function(r,e){return s(e,this.name),e},argPackAdvance:mr,readValueFromPointer:Qr(e,t,0!==n),destructorFunction:null})},re=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=w[r>>2],t=w[r+4>>2];return new n(m.buffer,t,e)}hr(r,{name:t=cr(t),fromWireType:a,argPackAdvance:mr,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},ee=(r,e)=>{Cr(r)},te=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},ne=(r,e,t)=>te(r,v,e,t),ae=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},oe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ie=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&oe)return oe.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},ue=(r,e)=>r?ie(v,r,e):"",se=(r,e)=>{var t="std::string"===(e=cr(e));hr(r,{name:e,fromWireType(r){var e,n=w[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==v[u]){var s=ue(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(v[a+i]);e=l.join("")}return dt(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||fr("Cannot pass non-string to std::string"),n=t&&a?ae(e):e.length;var o=ft(4+n+1),i=o+4;if(w[o>>2]=n,t&&a)ne(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(dt(i),fr("String has UTF-16 code units that do not fit in 8 bits")),v[i+u]=s}else for(u=0;u<n;++u)v[i+u]=e[u];return null!==r&&r.push(dt,o),o},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},le="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ce=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&y[n];)++n;if((t=n<<1)-r>32&&le)return le.decode(v.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=p[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},fe=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);p[e>>1]=i,e+=2}return p[e>>1]=0,e-n},de=r=>2*r.length,he=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=g[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},me=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),g[e>>2]=i,(e+=4)+4>a)break}return g[e>>2]=0,e-n},ve=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},pe=(r,e,t)=>{var n,a,o,i;t=cr(t),2===e?(n=ce,a=fe,i=de,o=r=>y[r>>1]):4===e&&(n=he,a=me,i=ve,o=r=>w[r>>2]),hr(r,{name:t,fromWireType:r=>{for(var t,a=w[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return dt(r),t},toWireType:(r,n)=>{"string"!=typeof n&&fr(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=ft(4+o+e);return w[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(dt,u),u},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},ye=(r,e,t,n,a,o)=>{X[r]={name:cr(e),rawConstructor:Gr(t,n),rawDestructor:Gr(a,o),fields:[]}},ge=(r,e,t,n,a,o,i,u,s,l)=>{X[r].fields.push({fieldName:cr(e),getterReturnType:t,getter:Gr(n,a),getterContext:o,setterArgumentType:i,setter:Gr(u,s),setterContext:l})},we=(r,e)=>{hr(r,{isVoid:!0,name:e=cr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},_e=1,be=()=>_e,Ae=(r,e,t)=>v.copyWithin(r,e,e+t),Te=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(w[e>>2]=Ar.toHandle(n)),a},Ce=(r,e,t)=>(r=Ar.toValue(r),e=jr(e,"emval::as"),Te(e,t,r)),Pe=[],Fe=(r,e,t,n)=>(r=Pe[r])(null,e=Ar.toValue(e),t,n),We={},Ee=r=>{var e=We[r];return void 0===e?cr(r):e},Se=(r,e,t,n,a)=>(r=Pe[r])(e=Ar.toValue(e),e[t=Ee(t)],n,a),Oe=r=>{var e=Pe.length;return Pe.push(r),e},je=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=jr(w[e+4*n>>2],"parameter "+n);return t},$e=Reflect.construct,De=(r,e,t)=>{var n=je(r,e),a=n.shift();r--;var o=new Array(r),i=(e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?$e(i,o):i.apply(e,o);return Te(a,u,f)},u=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${a.name}>`;return Oe(Sr(u,i))},Me=(r,e)=>(r=Ar.toValue(r),e=Ar.toValue(e),Ar.toHandle(r[e])),Re=()=>Ar.toHandle([]),xe=r=>{r=Ar.toValue(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return Ar.toHandle(e)},ke=r=>Ar.toHandle(Ee(r)),He=r=>{var e=Ar.toValue(r);K(e),wr(r)},Ie=(r,e)=>{var t=(r=jr(r,"_emval_take_value")).readValueFromPointer(e);return Ar.toHandle(t)},Ve=()=>{k("")},Ue=()=>Date.now(),Ye=()=>2147483648,Be=()=>Ye();Ir=()=>performance.now();var ze=r=>{var e=(r-d.buffer.byteLength+65535)/65536;try{return d.grow(e),T(),1}catch(t){}},Ne=r=>{var e=v.length;r>>>=0;var t=Ye();if(r>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(ze(i))return!0}return!1},qe={},Ge=()=>s||"./this.program",Je=()=>{if(!Je.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Ge()};for(var e in qe)void 0===qe[e]?delete r[e]:r[e]=qe[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Je.strings=t}return Je.strings},Le=(r,e)=>{for(var t=0;t<r.length;++t)m[e++]=r.charCodeAt(t);m[e]=0},Xe=(r,e)=>{var t=0;return Je().forEach((n,a)=>{var o=e+t;w[r+4*a>>2]=o,Le(n,o),t+=n.length+1}),0},Ke=(r,e)=>{var t=Je();w[r>>2]=t.length;var n=0;return t.forEach(r=>n+=r.length+1),w[e>>2]=n,0},Qe=r=>r%4==0&&(r%100!=0||r%400==0),Ze=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},rt=[31,29,31,30,31,30,31,31,30,31,30,31],et=[31,28,31,30,31,30,31,31,30,31,30,31],tt=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Qe(t.getFullYear()),a=t.getMonth(),o=(n?rt:et)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t};function nt(r,e,t){var n=ae(r)+1,a=new Array(n);return te(r,a,0,a.length),a}var at=(r,e)=>{m.set(r,e)},ot=(r,e,t,n)=>{var a=w[n+40>>2],o={tm_sec:g[n>>2],tm_min:g[n+4>>2],tm_hour:g[n+8>>2],tm_mday:g[n+12>>2],tm_mon:g[n+16>>2],tm_year:g[n+20>>2],tm_wday:g[n+24>>2],tm_yday:g[n+28>>2],tm_isdst:g[n+32>>2],tm_gmtoff:g[n+36>>2],tm_zone:a?ue(a):""},i=ue(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function v(r){var e=tt(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var p={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>v(r).toString().substring(2),"%G":v,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+Ze(Qe(r.tm_year+1900)?rt:et,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&Qe(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&Qe(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),p)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),p[s](o)));var y=nt(i=i.replace(/\0\0/g,"%"));return y.length>e?0:(at(y,r),y.length-1)},it=(r,e,t,n,a)=>ot(r,e,t,n);Z=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},lr(),er=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},br(),Hr=a.UnboundTypeError=Jr(Error,"UnboundTypeError");var ut,st={a:L,k:ur,z:sr,w:vr,t:pr,M:Cr,r:Er,j:$r,v:Mr,e:Kr,m:Zr,f:re,L:ee,u:se,s:pe,l:ye,c:ge,x:we,F:be,J:Ae,g:Ce,y:Fe,p:Se,b:wr,n:De,h:Me,q:Re,K:xe,o:ke,d:He,i:Ie,E:Ve,G:Ue,A:Be,I:Ir,H:Ne,C:Xe,D:Ke,B:it},lt=q(),ct=r=>(ct=lt.P)(r),ft=a._malloc=r=>(ft=a._malloc=lt.R)(r),dt=a._free=r=>(dt=a._free=lt.S)(r),ht=r=>(ht=lt.T)(r);function mt(){function r(){ut||(ut=!0,a.calledRun=!0,A||(E(),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),S()))}D>0||(W(),D>0||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),r()},1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=lt.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=lt.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=lt.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=lt.X)(r,e,t,n,o,i,u,s,l,c),M=function r(){ut||mt(),ut||(M=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return mt(),o},r.exports=a),n.exports;var r,e,a}var o=a();const i=e({__proto__:null,default:r(o)},[o]);export{i as l};
2
+ var r,e=(r="undefined"!=typeof document?document.currentScript?.src:void 0,function(e={}){var t,n,a=Object.assign({},e),o=new Promise((r,e)=>{t=r,n=e}),i=!0,u=Object.assign({},a),s="./this.program",l="";function c(r){return a.locateFile?a.locateFile(r,l):l+r}"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),r&&(l=r),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var f,d,h=a.printErr||console.error.bind(console);Object.assign(a,u),u=null,a.arguments&&a.arguments,a.thisProgram&&(s=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(f=a.wasmBinary);var m,v,y,p,g,w,_,b,A=!1;function T(){var r=d.buffer;a.HEAP8=m=new Int8Array(r),a.HEAP16=y=new Int16Array(r),a.HEAPU8=v=new Uint8Array(r),a.HEAPU16=p=new Uint16Array(r),a.HEAP32=g=new Int32Array(r),a.HEAPU32=w=new Uint32Array(r),a.HEAPF32=_=new Float32Array(r),a.HEAPF64=b=new Float64Array(r)}var C=[],F=[],P=[];function W(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)$(a.preRun.shift());G(C)}function E(){G(F)}function S(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)D(a.postRun.shift());G(P)}function $(r){C.unshift(r)}function O(r){F.unshift(r)}function D(r){P.unshift(r)}var M=0,R=null;function j(r){M++,a.monitorRunDependencies?.(M)}function k(r){if(M--,a.monitorRunDependencies?.(M),0==M&&R){var e=R;R=null,e()}}function x(r){a.onAbort?.(r),h(r="Aborted("+r+")"),A=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}var H,I="data:application/octet-stream;base64,",V=r=>r.startsWith(I);function U(r){if(r==H&&f)return new Uint8Array(f);throw"both async and sync fetching of the wasm failed"}function Y(r){return!f&&i&&"function"==typeof fetch?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>U(r)):Promise.resolve().then(()=>U(r))}function B(r,e,t){return Y(r).then(r=>WebAssembly.instantiate(r,e)).then(t,r=>{h(`failed to asynchronously prepare wasm: ${r}`),x(r)})}function z(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||V(e)||"function"!=typeof fetch?B(e,t,n):fetch(e,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(n,function(r){return h(`wasm streaming compile failed: ${r}`),h("falling back to ArrayBuffer instantiation"),B(e,t,n)}))}function N(){return{a:st}}function q(){var r=N();function e(r,e){return lt=r.exports,d=lt.N,T(),xr=lt.Q,O(lt.O),k(),lt}function t(r){e(r.instance)}if(j(),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(o){h(`Module.instantiateWasm callback failed with error: ${o}`),n(o)}return z(f,H,r,t).catch(n),{}}V(H="lclayout.wasm")||(H=c(H));var G=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class J{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){w[this.ptr+4>>2]=r}get_type(){return w[this.ptr+4>>2]}set_destructor(r){w[this.ptr+8>>2]=r}get_destructor(){return w[this.ptr+8>>2]}set_caught(r){r=r?1:0,m[this.ptr+12]=r}get_caught(){return 0!=m[this.ptr+12]}set_rethrown(r){r=r?1:0,m[this.ptr+13]=r}get_rethrown(){return 0!=m[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){w[this.ptr+16>>2]=r}get_adjusted_ptr(){return w[this.ptr+16>>2]}get_exception_ptr(){if(ht(this.get_type()))return w[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var L=(r,e,t)=>{throw new J(r).init(e,t),r},X={},K=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function Q(r){return this.fromWireType(w[r>>2])}var Z,rr,er,tr={},nr={},ar={},or=r=>{throw new Z(r)},ir=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&or("Mismatched type converter count");for(var a=0;a<r.length;++a)hr(r[a],n[a])}r.forEach(function(r){ar[r]=e});var a=new Array(e.length),o=[],i=0;e.forEach((r,e)=>{nr.hasOwnProperty(r)?a[e]=nr[r]:(o.push(r),tr.hasOwnProperty(r)||(tr[r]=[]),tr[r].push(()=>{a[e]=nr[r],++i===o.length&&n(a)}))}),0===o.length&&n(a)},ur=r=>{var e=X[r];delete X[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));ir([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),K(t)}}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:n}]})},sr=(r,e,t,n,a)=>{},lr=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);rr=r},cr=r=>{for(var e="",t=r;v[t];)e+=rr[v[t++]];return e},fr=r=>{throw new er(r)};function dr(r,e,t={}){var n=e.name;if(r||fr(`type "${n}" must have a positive integer typeid pointer`),nr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;fr(`Cannot register type '${n}' twice`)}if(nr[r]=e,delete ar[r],tr.hasOwnProperty(r)){var a=tr[r];delete tr[r],a.forEach(r=>r())}}function hr(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return dr(r,e,t)}var mr=8,vr=(r,e,t,n)=>{hr(r,{name:e=cr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:mr,readValueFromPointer:function(r){return this.fromWireType(v[r])},destructorFunction:null})},yr=(r,e,t)=>{r=cr(r),ir([],[e],e=>(e=e[0],a[r]=e.fromWireType(t),[]))},pr=[],gr=[],wr=r=>{r>9&&0===--gr[r+1]&&(gr[r]=void 0,pr.push(r))},_r=()=>gr.length/2-5-pr.length,br=()=>{gr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=_r},Ar={toValue:r=>(r||fr("Cannot use deleted val. handle = "+r),gr[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=pr.pop()||gr.length;return gr[e]=r,gr[e+1]=1,e}}}},Tr={name:"emscripten::val",fromWireType:r=>{var e=Ar.toValue(r);return wr(r),e},toWireType:(r,e)=>Ar.toHandle(e),argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:null},Cr=r=>hr(r,Tr),Fr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||fr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Pr=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&fr(`Cannot register public name '${r}' twice`),Fr(a,r,r),a.hasOwnProperty(t)&&fr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},Wr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(m[r])}:function(r){return this.fromWireType(v[r])};case 2:return t?function(r){return this.fromWireType(y[r>>1])}:function(r){return this.fromWireType(p[r>>1])};case 4:return t?function(r){return this.fromWireType(g[r>>2])}:function(r){return this.fromWireType(w[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Er=(r,e,t,n)=>{function a(){}e=cr(e),a.values={},hr(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:mr,readValueFromPointer:Wr(e,t,n),destructorFunction:null}),Pr(e,a)},Sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),$r=r=>{var e=ct(r),t=cr(e);return dt(e),t},Or=(r,e)=>{var t=nr[r];return void 0===t&&fr(`${e} has unknown type ${$r(r)}`),t},Dr=(r,e,t)=>{var n=Or(r,"enum");e=cr(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:Sr(`${n.name}_${e}`,function(){})}});a.values[t]=o,a[e]=o},Mr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(_[r>>2])};case 8:return function(r){return this.fromWireType(b[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Rr=(r,e,t)=>{hr(r,{name:e=cr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:mr,readValueFromPointer:Mr(e,t),destructorFunction:null})};function jr(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}function kr(r,e,t,n,a,o){var i=e.length;i<2&&fr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var u=jr(e),s="void"!==e[0].name,l=i-2,c=new Array(l),f=[],d=[];return Sr(r,function(...t){var o;t.length!==l&&fr(`function ${r} called with ${t.length} arguments, expected ${l}`),d.length=0,f.length=1,f[0]=a;for(var i=0;i<l;++i)c[i]=e[i+2].toWireType(d,t[i]),f.push(c[i]);function h(r){if(u)K(d);else for(var t=2;t<e.length;t++){var n=1===t?o:c[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}return h(n(...f))})}var xr,Hr,Ir,Vr=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(w[e+4*n>>2]);return t},Ur=(r,e,t)=>{a.hasOwnProperty(r)||or("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},Yr=(r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)),Br=[],zr=r=>{var e=Br[r];return e||(r>=Br.length&&(Br.length=r+1),Br[r]=e=xr.get(r)),e},Nr=(r,e,t=[])=>r.includes("j")?Yr(r,e,t):zr(e)(...t),qr=(r,e)=>(...t)=>Nr(r,e,t),Gr=(r,e)=>{function t(){return r.includes("j")?qr(r,e):zr(e)}r=cr(r);var n=t();return"function"!=typeof n&&fr(`unknown function pointer with signature ${r}: ${e}`),n},Jr=(r,e)=>{var t=Sr(e,function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},Lr=(r,e)=>{var t=[],n={};function a(r){n[r]||nr[r]||(ar[r]?ar[r].forEach(a):(t.push(r),n[r]=!0))}throw e.forEach(a),new Hr(`${r}: `+t.map($r).join([", "]))},Xr=r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r},Kr=(r,e,t,n,a,o,i)=>{var u=Vr(e,t);r=cr(r),r=Xr(r),a=Gr(n,a),Pr(r,function(){Lr(`Cannot call ${r} due to unbound types`,u)},e-1),ir([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Ur(r,kr(r,n,null,a,o),e-1),[]})},Qr=(r,e,t)=>{switch(e){case 1:return t?r=>m[r]:r=>v[r];case 2:return t?r=>y[r>>1]:r=>p[r>>1];case 4:return t?r=>g[r>>2]:r=>w[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Zr=(r,e,t,n,a)=>{e=cr(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned"),s=(r,e)=>{};hr(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return s(e,this.name),e>>>0}:function(r,e){return s(e,this.name),e},argPackAdvance:mr,readValueFromPointer:Qr(e,t,0!==n),destructorFunction:null})},re=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=w[r>>2],t=w[r+4>>2];return new n(m.buffer,t,e)}hr(r,{name:t=cr(t),fromWireType:a,argPackAdvance:mr,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},ee=(r,e)=>{Cr(r)},te=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},ne=(r,e,t)=>te(r,v,e,t),ae=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},oe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ie=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&oe)return oe.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},ue=(r,e)=>r?ie(v,r,e):"",se=(r,e)=>{var t="std::string"===(e=cr(e));hr(r,{name:e,fromWireType(r){var e,n=w[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==v[u]){var s=ue(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(v[a+i]);e=l.join("")}return dt(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||fr("Cannot pass non-string to std::string"),n=t&&a?ae(e):e.length;var o=ft(4+n+1),i=o+4;if(w[o>>2]=n,t&&a)ne(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(dt(i),fr("String has UTF-16 code units that do not fit in 8 bits")),v[i+u]=s}else for(u=0;u<n;++u)v[i+u]=e[u];return null!==r&&r.push(dt,o),o},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},le="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ce=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&p[n];)++n;if((t=n<<1)-r>32&&le)return le.decode(v.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=y[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},fe=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);y[e>>1]=i,e+=2}return y[e>>1]=0,e-n},de=r=>2*r.length,he=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=g[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},me=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),g[e>>2]=i,(e+=4)+4>a)break}return g[e>>2]=0,e-n},ve=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},ye=(r,e,t)=>{var n,a,o,i;t=cr(t),2===e?(n=ce,a=fe,i=de,o=r=>p[r>>1]):4===e&&(n=he,a=me,i=ve,o=r=>w[r>>2]),hr(r,{name:t,fromWireType:r=>{for(var t,a=w[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return dt(r),t},toWireType:(r,n)=>{"string"!=typeof n&&fr(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=ft(4+o+e);return w[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(dt,u),u},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},pe=(r,e,t,n,a,o)=>{X[r]={name:cr(e),rawConstructor:Gr(t,n),rawDestructor:Gr(a,o),fields:[]}},ge=(r,e,t,n,a,o,i,u,s,l)=>{X[r].fields.push({fieldName:cr(e),getterReturnType:t,getter:Gr(n,a),getterContext:o,setterArgumentType:i,setter:Gr(u,s),setterContext:l})},we=(r,e)=>{hr(r,{isVoid:!0,name:e=cr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},_e=1,be=()=>_e,Ae=(r,e,t)=>v.copyWithin(r,e,e+t),Te=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(w[e>>2]=Ar.toHandle(n)),a},Ce=(r,e,t)=>(r=Ar.toValue(r),e=Or(e,"emval::as"),Te(e,t,r)),Fe=[],Pe=(r,e,t,n)=>(r=Fe[r])(null,e=Ar.toValue(e),t,n),We={},Ee=r=>{var e=We[r];return void 0===e?cr(r):e},Se=(r,e,t,n,a)=>(r=Fe[r])(e=Ar.toValue(e),e[t=Ee(t)],n,a),$e=r=>{var e=Fe.length;return Fe.push(r),e},Oe=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Or(w[e+4*n>>2],"parameter "+n);return t},De=Reflect.construct,Me=(r,e,t)=>{var n=Oe(r,e),a=n.shift();r--;var o=new Array(r),i=(e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?De(i,o):i.apply(e,o);return Te(a,u,f)},u=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${a.name}>`;return $e(Sr(u,i))},Re=(r,e)=>(r=Ar.toValue(r),e=Ar.toValue(e),Ar.toHandle(r[e])),je=()=>Ar.toHandle([]),ke=r=>{r=Ar.toValue(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return Ar.toHandle(e)},xe=r=>Ar.toHandle(Ee(r)),He=r=>{var e=Ar.toValue(r);K(e),wr(r)},Ie=(r,e)=>{var t=(r=Or(r,"_emval_take_value")).readValueFromPointer(e);return Ar.toHandle(t)},Ve=()=>{x("")},Ue=()=>Date.now(),Ye=()=>2147483648,Be=()=>Ye();Ir=()=>performance.now();var ze=r=>{var e=(r-d.buffer.byteLength+65535)/65536;try{return d.grow(e),T(),1}catch(t){}},Ne=r=>{var e=v.length;r>>>=0;var t=Ye();if(r>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(ze(i))return!0}return!1},qe={},Ge=()=>s||"./this.program",Je=()=>{if(!Je.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Ge()};for(var e in qe)void 0===qe[e]?delete r[e]:r[e]=qe[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Je.strings=t}return Je.strings},Le=(r,e)=>{for(var t=0;t<r.length;++t)m[e++]=r.charCodeAt(t);m[e]=0},Xe=(r,e)=>{var t=0;return Je().forEach((n,a)=>{var o=e+t;w[r+4*a>>2]=o,Le(n,o),t+=n.length+1}),0},Ke=(r,e)=>{var t=Je();w[r>>2]=t.length;var n=0;return t.forEach(r=>n+=r.length+1),w[e>>2]=n,0},Qe=r=>r%4==0&&(r%100!=0||r%400==0),Ze=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},rt=[31,29,31,30,31,30,31,31,30,31,30,31],et=[31,28,31,30,31,30,31,31,30,31,30,31],tt=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Qe(t.getFullYear()),a=t.getMonth(),o=(n?rt:et)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t};function nt(r,e,t){var n=ae(r)+1,a=new Array(n);return te(r,a,0,a.length),a}var at=(r,e)=>{m.set(r,e)},ot=(r,e,t,n)=>{var a=w[n+40>>2],o={tm_sec:g[n>>2],tm_min:g[n+4>>2],tm_hour:g[n+8>>2],tm_mday:g[n+12>>2],tm_mon:g[n+16>>2],tm_year:g[n+20>>2],tm_wday:g[n+24>>2],tm_yday:g[n+28>>2],tm_isdst:g[n+32>>2],tm_gmtoff:g[n+36>>2],tm_zone:a?ue(a):""},i=ue(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function v(r){var e=tt(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var y={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>v(r).toString().substring(2),"%G":v,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+Ze(Qe(r.tm_year+1900)?rt:et,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&Qe(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&Qe(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),y)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),y[s](o)));var p=nt(i=i.replace(/\0\0/g,"%"));return p.length>e?0:(at(p,r),p.length-1)},it=(r,e,t,n,a)=>ot(r,e,t,n);Z=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},lr(),er=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},br(),Hr=a.UnboundTypeError=Jr(Error,"UnboundTypeError");var ut,st={a:L,k:ur,z:sr,w:vr,t:yr,M:Cr,r:Er,j:Dr,v:Rr,e:Kr,m:Zr,f:re,L:ee,u:se,s:ye,l:pe,c:ge,x:we,F:be,J:Ae,g:Ce,y:Pe,p:Se,b:wr,n:Me,h:Re,q:je,K:ke,o:xe,d:He,i:Ie,E:Ve,G:Ue,A:Be,I:Ir,H:Ne,C:Xe,D:Ke,B:it},lt=q(),ct=r=>(ct=lt.P)(r),ft=a._malloc=r=>(ft=a._malloc=lt.R)(r),dt=a._free=r=>(dt=a._free=lt.S)(r),ht=r=>(ht=lt.T)(r);function mt(){function r(){ut||(ut=!0,a.calledRun=!0,A||(E(),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),S()))}M>0||(W(),M>0||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),r()},1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=lt.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=lt.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=lt.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=lt.X)(r,e,t,n,o,i,u,s,l,c),R=function r(){ut||mt(),ut||(R=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return mt(),o});export{e as default};
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.23";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.25";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
package/core/workers.d.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * > - [esriRequest.getHeader](https://developers.arcgis.com/javascript/latest/references/core/request/types/#GetHeader) is not supported.
23
23
  *
24
24
  * @since 4.2
25
- * @see [ES modules custom workers sample](https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-custom-workers)
25
+ * @see [ES modules custom workers sample](https://github.com/Esri/jsapi-resources/tree/main/templates/geometry-operator-worker)
26
26
  */
27
27
  import type Connection from "./workers/Connection.js";
28
28
  import type { AbortOptions } from "./promiseUtils.js";
@@ -4,11 +4,20 @@ import type { EsriPromiseMixin } from "../../core/Promise.js";
4
4
  import type { SharedTemplateType } from "./types.js";
5
5
 
6
6
  /**
7
- * Represents a shared editing template. This is a type of template accessed
8
- * through the `sharedTemplates` resource on the feature service, as opposed to
9
- * "traditional" feature templates, which are defined in a layer's metadata.
7
+ * Represents a shared editing template. This is a type of template accessed through the `sharedTemplates`
8
+ * [resource](https://developers.arcgis.com/rest/services-reference/enterprise/shared-templates/)
9
+ * on the feature service, as opposed to "traditional"
10
+ * [feature templates](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureTemplate/), which are defined in a layer's metadata.
11
+ *
12
+ * Before using a `SharedTemplate` as part of a feature creation workflow, it is typically necessary to load the template by calling its [load()](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplate/#load) method. Shared template definitions often contain references to other shared templates. Calling [load()](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplate/#load) fetches and loads these referenced templates.
13
+ *
14
+ * The `SharedTemplate` class represents the complete information about a shared template. This is the information obtained from the
15
+ * [`sharedTemplates/templates` endpoint](https://developers.arcgis.com/rest/services-reference/enterprise/fs-template/)
16
+ * of a feature service, which may constitute a large payload. By contrast, the [SharedTemplateMetadata](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplateMetadata/) class represents only the metadata about a shared template, which is a smaller payload obtained from the [`sharedTemplates/query`
17
+ * endpoint](https://developers.arcgis.com/rest/services-reference/enterprise/query-shared-templates/). Use the [SharedTemplateMetadata](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplateMetadata/) class when needing minimal information about many shared templates, (e.g. populating a gallery or picker interface). Use the `SharedTemplate` class when needing full information about a specific template, (e.g. when a particular template has been selected for use in a feature creation workflow).
10
18
  *
11
19
  * @since 4.32
20
+ * @see [SharedTemplateMetadata](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplateMetadata/)
12
21
  */
13
22
  export default abstract class SharedTemplate<T extends any = any> extends SharedTemplateSuperclass {
14
23
  /**
@@ -2,10 +2,19 @@ import type { JSONSupport } from "../../core/JSONSupport.js";
2
2
  import type { SharedTemplateType } from "./types.js";
3
3
 
4
4
  /**
5
- * Represents the info for a shared template, typically obtained from the
6
- * `sharedTemplates/query` endpoint of a feature service.
5
+ * The `SharedTemplateMetadata` class represents a minimal set of
6
+ * information about a shared template. This is the information from
7
+ * the the [`sharedTemplates/query` endpoint](https://developers.arcgis.com/rest/services-reference/enterprise/query-shared-templates/) of a feature service. By contrast, the [SharedTemplate](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplate/) class represents full information about a shared template, which is a larger payload obtained from the
8
+ * [`sharedTemplates/templates`
9
+ * endpoint](https://developers.arcgis.com/rest/services-reference/enterprise/fs-template/).
10
+ * Use the `SharedTemplateMetadata` class when you
11
+ * need only minimal information about many shared templates, such as when
12
+ * populating a gallery or picker interface. Use the [SharedTemplate](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplate/) class when
13
+ * you need full information about a specific template, such as when a
14
+ * particular template has been selected for use in a feature creation workflow.
7
15
  *
8
16
  * @since 4.32
17
+ * @see [SharedTemplate](https://developers.arcgis.com/javascript/latest/references/core/editing/sharedTemplates/SharedTemplate/)
9
18
  */
10
19
  export default abstract class SharedTemplateMetadata extends JSONSupport {
11
20
  /** The template ID of the shared template. */
package/interfaces.d.ts CHANGED
@@ -12225,17 +12225,13 @@ declare namespace __esri {
12225
12225
  export type GeoJSONLayerView = import("./views/layers/GeoJSONLayerView.js").default;
12226
12226
  export const GeoJSONLayerView: typeof import("./views/layers/GeoJSONLayerView.js").default;
12227
12227
 
12228
- /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12229
- export type GeoRSSLayerViewProperties = import("./views/layers/GeoRSSLayerView.js").GeoRSSLayerViewProperties;
12230
-
12231
12228
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12232
12229
  export type GeoRSSLayerView = import("./views/layers/GeoRSSLayerView.js").default;
12233
-
12234
- /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12235
- export type GraphicsLayerViewProperties = import("./views/layers/GraphicsLayerView.js").GraphicsLayerViewProperties;
12230
+ export const GeoRSSLayerView: typeof import("./views/layers/GeoRSSLayerView.js").default;
12236
12231
 
12237
12232
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12238
12233
  export type GraphicsLayerView = import("./views/layers/GraphicsLayerView.js").default;
12234
+ export const GraphicsLayerView: typeof import("./views/layers/GraphicsLayerView.js").default;
12239
12235
 
12240
12236
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12241
12237
  export type GroupLayerViewProperties<TLayerView extends import("./views/layers/LayerView.js").default = import("./views/layers/LayerView.js").default> = import("./views/layers/GroupLayerView.js").GroupLayerViewProperties<TLayerView>;
@@ -12258,11 +12254,9 @@ declare namespace __esri {
12258
12254
  export type ImageryTileLayerView = import("./views/layers/ImageryTileLayerView.js").default;
12259
12255
  export const ImageryTileLayerView: typeof import("./views/layers/ImageryTileLayerView.js").default;
12260
12256
 
12261
- /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12262
- export type KMLLayerViewProperties = import("./views/layers/KMLLayerView.js").KMLLayerViewProperties;
12263
-
12264
12257
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12265
12258
  export type KMLLayerView = import("./views/layers/KMLLayerView.js").default;
12259
+ export const KMLLayerView: typeof import("./views/layers/KMLLayerView.js").default;
12266
12260
 
12267
12261
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12268
12262
  export type KnowledgeGraphSublayerView = import("./views/layers/KnowledgeGraphSublayerView.js").default;
@@ -12334,11 +12328,9 @@ declare namespace __esri {
12334
12328
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12335
12329
  export type StreamLayerViewUpdateRateEventHandler = (event: StreamLayerViewUpdateRateEvent) => void;
12336
12330
 
12337
- /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12338
- export type VectorTileLayerViewProperties = import("./views/layers/VectorTileLayerView.js").VectorTileLayerViewProperties;
12339
-
12340
12331
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12341
12332
  export type VectorTileLayerView = import("./views/layers/VectorTileLayerView.js").default;
12333
+ export const VectorTileLayerView: typeof import("./views/layers/VectorTileLayerView.js").default;
12342
12334
 
12343
12335
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
12344
12336
  export type ViewshedLayerViewProperties = import("./views/layers/ViewshedLayerView.js").ViewshedLayerViewProperties;
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.1";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.1.0-next.23",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
2
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.1";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.1.0-next.25",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};