????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/72-es5.js |
(function () { var absMids = { "esri/core/MapPool": "./node_modules/arcgis-js-api/core/MapPool.js", "esri/layers/support/labelFormatUtils": "./node_modules/arcgis-js-api/layers/support/labelFormatUtils.js", "esri/views/2d/layers/features/processors/SymbolProcessor": "./node_modules/arcgis-js-api/views/2d/layers/features/processors/SymbolProcessor.js" }; var globalObj = this || window; var jsonpArray = globalObj["webpackJsonp"] = globalObj["webpackJsonp"] || []; if (jsonpArray.registerAbsMids) { jsonpArray.registerAbsMids(absMids); } else { var absMidsWaiting = jsonpArray.absMidsWaiting = jsonpArray.absMidsWaiting || []; absMidsWaiting.push(absMids); } })(), (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[72], { /***/ "./node_modules/arcgis-js-api/core/MapPool.js": /*!****************************************************!*\ !*** ./node_modules/arcgis-js-api/core/MapPool.js ***! \****************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiCoreMapPoolJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ./ObjectPool */ "./node_modules/arcgis-js-api/core/ObjectPool.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, n) { var o = function () { function e(e, r) { void 0 === e && (e = 50), void 0 === r && (r = 50), this._pool = new n(Map, !1, function (e) { return e.clear(); }, r, e); } return e.prototype.acquire = function () { return this._pool.acquire(); }, e.prototype.release = function (e) { this._pool.release(e); }, e.acquire = function () { return t.acquire(); }, e.release = function (e) { return t.release(e); }, e; }(), t = new o(100); return o; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/layers/support/labelFormatUtils.js": /*!***********************************************************************!*\ !*** ./node_modules/arcgis-js-api/layers/support/labelFormatUtils.js ***! \***********************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiLayersSupportLabelFormatUtilsJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"), __webpack_require__( /*! ../../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"), __webpack_require__( /*! ../../core/tsSupport/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"), __webpack_require__( /*! ../../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"), __webpack_require__( /*! ../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__( /*! ../../core/Logger */ "./node_modules/arcgis-js-api/core/Logger.js"), __webpack_require__( /*! ../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ../../intl/date */ "./node_modules/arcgis-js-api/intl/date.js"), __webpack_require__( /*! ../../intl/number */ "./node_modules/arcgis-js-api/intl/number.js"), __webpack_require__( /*! ./FieldsIndex */ "./node_modules/arcgis-js-api/layers/support/FieldsIndex.js"), __webpack_require__( /*! ./fieldUtils */ "./node_modules/arcgis-js-api/layers/support/fieldUtils.js"), __webpack_require__( /*! ../../support/arcadeOnDemand */ "./node_modules/arcgis-js-api/support/arcadeOnDemand.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, t, n, a, u, i, l, o, s, c, p, d, f) { function v() { return u(this, void 0, void 0, function () { return a(this, function (r) { return [2, o.create(function (r) { __webpack_require__.e( /*! AMD require */ 3).then(function () { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__( /*! ../../core/sql/WhereClause */ "./node_modules/arcgis-js-api/core/sql/WhereClause.js")]; r.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__); }.bind(this))["catch"](__webpack_require__.oe); })]; }); }); } function m(e, r, t) { return u(this, void 0, void 0, function () { var n, u, l, o, s, c, d, m; return a(this, function (a) { switch (a.label) { case 0: return e && e.symbol ? (n = e.where, u = e.getLabelExpression(), n ? [4, v()] : [3, 2]) : [2, b]; case 1: return o = a.sent(), [3, 3]; case 2: o = null, a.label = 3; case 3: return l = o, "arcade" !== u.type ? [3, 5] : [4, f.createLabelExpression(u.expression, t, r)]; case 4: return c = a.sent(), s = { type: "arcade", evaluate: function evaluate(e) { try { var r = c.evaluate({ $feature: c.repurposeFeature(e) }); if (null != r) return r.toString(); } catch (r) { return y.error(new i("bad-arcade-expression", "Encountered an error when evaluating label expression for feature", { feature: e, expression: u })), null; } return null; } }, [3, 6]; case 5: s = { type: "simple", evaluate: function evaluate(e) { var t = e && e.attributes; return t ? u.expression.replace(/{[^}]*}/g, function (e) { return g(e.slice(1, -1), e, t, r); }) : null; } }, a.label = 6; case 6: if (n) { try { d = l.WhereClause.create(n, new p(r)); } catch (e) { return [2, b]; } m = s.evaluate, s.evaluate = function (e) { return d.testFeature(e) ? m(e) : null; }; } return [2, s]; } }); }); } function g(e, r, t, n) { var a = d.getField(n, e); if (!a) return r; if (null == t[a.name]) return ""; var u = a.domain; if (u) if ("codedValue" === u.type || "coded-value" === u.type) for (var i = t[a.name], l = 0, o = u.codedValues; l < o.length; l++) { var p = o[l]; if (p.code === i) return p.name; } else if ("range" === u.type) { var f = +t[a.name], v = "range" in u ? u.range[0] : u.minValue, m = "range" in u ? u.range[1] : u.maxValue; if (v <= f && f <= m) return u.name; } var g = t[a.name]; return "date" === a.type || "esriFieldTypeDate" === a.type ? g = s.formatDate(g, s.convertDateFormatToIntlOptions("short-date")) : d.isNumericField(a) && (g = c.formatNumber(+g)), g || ""; } Object.defineProperty(r, "__esModule", { value: !0 }); var y = l.getLogger("esri.layers.support.labelFormatUtils"), b = { type: "simple", evaluate: function evaluate() { return null; } }; r.createLabelFunction = m, r.formatField = g; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/2d/layers/features/processors/SymbolProcessor.js": /*!*******************************************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/2d/layers/features/processors/SymbolProcessor.js ***! \*******************************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews2dLayersFeaturesProcessorsSymbolProcessorJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../../../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"), __webpack_require__( /*! ../../../../../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"), __webpack_require__( /*! ../../../../../core/tsSupport/assignHelper */ "./node_modules/arcgis-js-api/core/tsSupport/assignHelper.js"), __webpack_require__( /*! ../../../../../core/tsSupport/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"), __webpack_require__( /*! ../../../../../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"), __webpack_require__( /*! ../../../../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__( /*! ../../../../../core/has */ "./node_modules/arcgis-js-api/core/has.js"), __webpack_require__( /*! ../../../../../core/Logger */ "./node_modules/arcgis-js-api/core/Logger.js"), __webpack_require__( /*! ../../../../../core/MapPool */ "./node_modules/arcgis-js-api/core/MapPool.js"), __webpack_require__( /*! ../../../../../core/maybe */ "./node_modules/arcgis-js-api/core/maybe.js"), __webpack_require__( /*! ../../../../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ../../../../../core/accessorSupport/decorators */ "./node_modules/arcgis-js-api/core/accessorSupport/decorators.js"), __webpack_require__( /*! ../../../../../geometry/SpatialReference */ "./node_modules/arcgis-js-api/geometry/SpatialReference.js"), __webpack_require__( /*! ../../../../../layers/support/LabelClass */ "./node_modules/arcgis-js-api/layers/support/LabelClass.js"), __webpack_require__( /*! ../../../../../layers/support/labelFormatUtils */ "./node_modules/arcgis-js-api/layers/support/labelFormatUtils.js"), __webpack_require__( /*! ../../../../../renderers/support/jsonUtils */ "./node_modules/arcgis-js-api/renderers/support/jsonUtils.js"), __webpack_require__( /*! ../../../engine */ "./node_modules/arcgis-js-api/views/2d/engine.js"), __webpack_require__( /*! ../../../arcade/utils */ "./node_modules/arcgis-js-api/views/2d/arcade/utils.js"), __webpack_require__( /*! ../../../engine/webgl/util/symbolUtils */ "./node_modules/arcgis-js-api/views/2d/engine/webgl/util/symbolUtils.js"), __webpack_require__( /*! ../../../engine/webgl/util/vvFlagUtils */ "./node_modules/arcgis-js-api/views/2d/engine/webgl/util/vvFlagUtils.js"), __webpack_require__( /*! ./BaseProcessor */ "./node_modules/arcgis-js-api/views/2d/layers/features/processors/BaseProcessor.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, t, r, n, i, o, s, a, l, c, u, p, f, h, d, y, g, m, v, b, _, S, I) { function M(e, t, r) { r.has(e) || r.set(e, new Set()); for (var n = r.get(e), i = t.length, o = 0; o < i; o++) { var s = t.charCodeAt(o); n.add(s); } } Object.defineProperty(t, "__esModule", { value: !0 }); var w = c.getLogger("esri.views.2d.layers.features.processors.SymbolProcessor"), O = function (e) { function t() { var t = null !== e && e.apply(this, arguments) || this; return t._symbolToMosaicItemMap = new Map(), t._visualSetPromises = new Map(), t.type = "symbol", t; } return r(t, e), t.prototype.initialize = function () { this._factory = this._createFactory(); }, t.prototype.destroy = function () { this._visualSetPromises.clear(), this._symbolToMosaicItemMap.clear(), this.notifyChange("updating"); }, Object.defineProperty(t.prototype, "supportsTileUpdates", { get: function get() { return !0; }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "labelingInfo", { get: function get() { return !this.config || p.isNone(this.config.labelingInfo) ? null : this.config.labelingInfo.map(function (e) { return y.fromJSON(e); }); }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "labelClassInfos", { get: function get() { var e = this; return this.labelingInfo ? f.all(this.labelingInfo.map(function (t, r) { return s(e, void 0, void 0, function () { var e; return o(this, function (n) { switch (n.label) { case 0: return e = { index: r, minScale: t.minScale, maxScale: t.maxScale }, [4, g.createLabelFunction(t, this.service.fields, this.spatialReference)]; case 1: return [2, (e.builder = n.sent(), e.symbol = t.symbol, e)]; } }); }); })) : f.resolve(); }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "hydrate", { get: function get() { return b.createHydrateFactory(this.service.geometryType); }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "renderer", { get: function get() { return this.config ? m.fromJSON(this.config.renderer) : (l("esri-2d-debug") && console.debug("Unable to create renderer for undefined configuration"), null); }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "updating", { get: function get() { return this._visualSetPromises.size > 0; }, enumerable: !0, configurable: !0 }), t.prototype.update = function (e) { return s(this, void 0, void 0, function () { var t; return o(this, function (r) { return t = this._getMeshHash(), this._set("config", e), t !== this._getMeshHash() ? this._factory = this._createFactory() : this._factory.update(this.labelingInfo, this.renderer, this.tileStore.tileScheme.tileInfo), [2]; }); }); }, t.prototype.onTileData = function (e, t, r) { var n, i = this, o = t.addOrUpdate, s = t.remove, a = t.clear; n = o && o.length ? this._processFeatures(e, o, t.transformParams) : f.resolve(); var l = r.signal, c = n.then(function (t) { var r = t && t.message || null, n = t && t.transferList || null; return i.remoteClient.invoke("tileRenderer.onTileData", { tileKey: e.id, data: { addOrUpdate: r, remove: s, clear: a } }, { transferList: n, signal: l }); })["catch"](function (t) { return i._handleError(e, t, r); }); return this._visualSetPromises.set(e, c), f.always(c, function () { return i._cleanPromise(e); }), this.notifyChange("updating"), c; }, t.prototype.onTileError = function (e, t, r) { var n = this, i = r.signal, o = this.remoteClient.invoke("tileRenderer.onTileError", { tileKey: e.id, error: t }, { signal: i }); return this._visualSetPromises.set(e, o), f.always(o, function () { return n._cleanPromise(e); }), this.notifyChange("updating"), o; }, t.prototype._getMeshHash = function () { var e = S.getVVFlags("visualVariables" in this.renderer && this.renderer.visualVariables || []); return this.renderer.getMeshHash() + "." + e; }, t.prototype._createFactory = function () { var e = this, t = this.service, r = t.geometryType, n = t.objectIdField, i = t.fields, o = function o(t, r) { return e.remoteClient.invoke("tileRenderer.getMaterialItems", t, r); }, s = d.fromJSON(this.spatialReference), a = { geometryType: r, fields: i, spatialReference: s }, l = new v.WGLTemplateStore(o, !1), c = this.tileStore.tileScheme.tileInfo; return this._matcher = v.createMatcher(this.renderer, l, a), new v.WGLMeshFactory(r, n, this.renderer, l, this.labelingInfo, c); }, t.prototype._cleanPromise = function (e) { this._visualSetPromises["delete"](e), this.notifyChange("updating"); }, t.prototype._processFeatures = function (e, t, r) { var n = this; if (!t || !t.length) return f.resolve(null); var i = this._factory, o = { viewingMode: "", scale: e.scale }; return this._matcher.then(function (e) { return i.analyze(t, !1, e, r, o); }).then(function (t) { return n._getLabelMosaicItems(e, t, r).then(function (o) { return n._writeFeatures(e, t, r, o, i); }); }); }, t.prototype._writeFeatures = function (e, t, r, n, i) { for (var o = i.createMeshData(t.length), s = { viewingMode: "", scale: e.scale }, c = this._symbolToMosaicItemMap, u = 0, p = t; u < p.length; u++) { var f = p[u]; try { i.write(o, f, r, s, e.level, n, c); } catch (e) { l("esri-2d-debug") && w.error(new a("mapview-mesh-factory", "Failed to write feature", { feature: f })); } } return this._encodeDisplayData(o); }, t.prototype._encodeDisplayData = function (e) { var t = {}, r = new Array(); return e.encode(t, r), { message: t, transferList: r }; }, t.prototype._handleError = function (e, t, r) { var n = r.signal; if (!f.isAbortError(t)) return this.remoteClient.invoke("tileRenderer.onTileError", { tileKey: e.id, error: t.message }, { signal: n }); }, t.prototype._getLabelMosaicItems = function (e, t, r) { return s(this, void 0, void 0, function () { var n, i, s, a, l, c; return o(this, function (o) { switch (o.label) { case 0: return n = u.acquire(), [4, this._createLabelFeatures(e.scale, t, n, r)]; case 1: return i = o.sent(), (s = this._symbolToMosaicItemMap, a = u.acquire(), l = [], c = 0, n.forEach(function (e, t) { if (s.has(t.id)) { var r = s.get(t.id), n = r.glyphMosaicItems, i = []; e.forEach(function (e) { (n && n.length < e || !n[e]) && (i[e] = e); }), i.length > 0 && (a.set(c, t), l.push({ symbol: t.toJSON(), id: c, glyphIds: i }), c++); } else { a.set(c, t); var o = []; e.forEach(function (e) { return o.push(e); }), l.push({ symbol: t.toJSON(), id: c, glyphIds: o }), c++; } }), l.length > 0) ? [2, this.remoteClient.invoke("tileRenderer.getMaterialItems", l).then(function (e) { for (var t = 0, r = e; t < r.length; t++) { var n = r[t], o = a.get(n.id); if (o) if (_.isTextSymbol(o)) { if (s.has(o.id)) { var l = s.get(o.id), c = l.glyphMosaicItems, p = n.mosaicItem.glyphMosaicItems; if (p) for (var f = 0; f < p.length; f++) null != p[f] && (c[f] = p[f]); } else s.set(o.id, n.mosaicItem); } else s.set(o.id, n.mosaicItem); } return u.release(a), i; })] : (u.release(n), [2, f.resolve(i)]); } }); }); }, t.prototype._getLabelClassInfosForScale = function (e) { return s(this, void 0, void 0, function () { var t; return o(this, function (r) { switch (r.label) { case 0: return [4, this.labelClassInfos]; case 1: return t = r.sent(), [2, t.filter(function (t) { var r = t.minScale, n = t.maxScale; return (!r || r >= e || 0 === r) && (!n || n <= e || 0 === n); })]; } }); }); }, t.prototype._createLabelFeatures = function (e, t, r, n) { return s(this, void 0, void 0, function () { var s, a, l, c, f, h, y, g, m, b, _, S, I, O, P, T, C, L, F, E, R, x, U, H, j, N, D, G, J; return o(this, function (o) { switch (o.label) { case 0: return this.labelingInfo && t && 0 !== t.length ? [4, this._getLabelClassInfosForScale(e)] : [2, null]; case 1: if (s = o.sent(), 0 === s.length) return [2, null]; for (a = u.acquire(), l = new v.CollisionGrid(v.definitions.COLLISION_EARLY_REJECT_BUCKET_SIZE), c = 0, f = t; c < f.length; c++) if (h = f[c], y = this.service.geometryType, g = 0, m = 0, "esriGeometryPoint" !== y && "esriGeometryPolygon" !== y || ("esriGeometryPoint" === y ? (b = h.geometry, g = b.x, m = b.y) : (g = h.centroid.x, m = h.centroid.y), !(_ = l.checkOverlap(g, m)))) { for (S = h.localId, I = new Array(), O = 0; O < s.length; O++) { if (P = s[O], T = P.index, C = P.builder, L = P.symbol, F = h, !n) return w.error("mapview-labeling", "Tried to evaluate geometry expression but no transformation found"), [2, void 0]; E = n.transform, R = n.hasZ, x = n.hasM, U = this.hydrate(h.geometry, E, R, x), H = i({}, h, { geometry: U }), U.spatialReference = d.fromJSON(this.spatialReference), F = H, j = C.evaluate(F), p.isNone(j) || "" === j || (v.definitions.DEBUG_LABELS && (N = "-" + S, j = j.substring(0, j.length - N.length) + N), D = v.bidiText(j), G = D[0], J = D[1], M(L, G, r), I.push({ text: G, rtl: J, id: T })); } a.set(S, I); } return [2, a]; } }); }); }, n([h.property({ readOnly: !0 })], t.prototype, "supportsTileUpdates", null), n([h.property()], t.prototype, "config", void 0), n([h.property({ dependsOn: ["config"] })], t.prototype, "labelingInfo", null), n([h.property({ dependsOn: ["labelingInfo", "service", "spatialReference"] })], t.prototype, "labelClassInfos", null), n([h.property({ dependsOn: ["service"] })], t.prototype, "hydrate", null), n([h.property({ dependsOn: ["config"], readOnly: !0 })], t.prototype, "renderer", null), n([h.property({ readOnly: !0 })], t.prototype, "updating", null), t = n([h.subclass("esri.views.2d.layers.features.processors.SymbolProcessor")], t); }(h.declared(I["default"])); t["default"] = O; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ } }]); //# sourceMappingURL=72-es5.js.map