@arcgis/core 6.0.0-next.45 → 6.0.0-next.46

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.
package/arcgisGlobal.d.ts CHANGED
@@ -1142,6 +1142,7 @@ export interface ArcgisImportModules {
1142
1142
  "@arcgis/core/views/input/Input.js": typeof import("./views/input/Input.js").default;
1143
1143
  "@arcgis/core/views/input/gamepad/GamepadInputDevice.js": typeof import("./views/input/gamepad/GamepadInputDevice.js").default;
1144
1144
  "@arcgis/core/views/input/gamepad/GamepadSettings.js": typeof import("./views/input/gamepad/GamepadSettings.js").default;
1145
+ "@arcgis/core/views/interactive/GraphicManipulator.js": typeof import("./views/interactive/GraphicManipulator.js");
1145
1146
  "@arcgis/core/views/interactive/InteractiveToolBase.js": typeof import("./views/interactive/InteractiveToolBase.js");
1146
1147
  "@arcgis/core/views/interactive/Tooltip.js": typeof import("./views/interactive/Tooltip.js").default;
1147
1148
  "@arcgis/core/views/interactive/options/ElevationOptions.js": typeof import("./views/interactive/options/ElevationOptions.js");
@@ -1 +1 @@
1
- var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={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}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),a.assetsPath||(a.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.45/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>c});var n=r(92602),a=r(51447),o=r(44208),i=r(799);const s={info:0,warn:1,error:2,none:3};class c{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,c._loggers.set(this.module,this);let t=this.module.lastIndexOf("/");-1===t&&(t=this.module.lastIndexOf(".")),-1!==t&&(this._parent=c.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,(0,o.A)("enable-feature:logger-core-module-ids")&&(e=(0,a.u3)(e)),c._loggers.get(e)||new c({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){let n=function(...e){return(0,i.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=c._tickCounter)return;this._loggedMessages[e].set(n,c._tickCounter),c._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",l)}_matchLevel(e){let t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then(()=>{c._tickCounter++,c._tickCounterScheduled=!1}))}}function l(e,t,...r){console[e](`[${t}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return"esri"===e?"@arcgis/core":e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e.startsWith("esri/")?e.replace("esri/","@arcgis/core/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone",2)[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/",2)[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/",2)[1])||void 0),o.add("opr",parseFloat(t.split("OPR/",2)[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/",2)[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/",2)[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ",2)[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/",2)[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/",2)[1]||t.split("Minefield/",2)[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-snapping-density-sample-interval",10),o.add("featurelayer-snapping-density-max-vertices-per-feature",16),o.add("featurelayer-snapping-density-max-distance",8),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!0),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),o.add("enable-feature:gaussian-splat-prioritize-nearby-detail",!1),o.add("enable-feature:emissive-on-non-volumetric",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,Qd:()=>d,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>O,G4:()=>f,HA:()=>c,Lx:()=>y,Mq:()=>l,NK:()=>i,NO:()=>S,NY:()=>h,Ol:()=>v,Pl:()=>_,QP:()=>d,QZ:()=>g,Te:()=>s,YL:()=>k,hn:()=>x,jH:()=>u,nA:()=>w,qr:()=>p,sg:()=>P,u7:()=>b,z7:()=>A,zf:()=>m});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(f(e))throw i(t)}function c(e,t="Aborted"){if(e?.destroyed)throw i(t)}function l(e){return e instanceof AbortSignal?e:e?.signal??void 0}function f(e){let t=l(e);return null!=t&&t.aborted}function d(e){if(m(e))throw e}function u(e){if(!m(e))throw e}function b(e,t){let r=l(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",()=>t());t()}}function h(e,t){let r=l(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function p(e,t){return null==l(t)?e:new Promise((r,n)=>{let a=b(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function m(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function g(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function y(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await y(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function w(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function v(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function _(e,t=void 0,r){let n=new AbortController;return b(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);b(n,()=>{o&&(clearTimeout(o),a(i()))})})}function k(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return b(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function O(e){return e&&"function"==typeof e.then}function A(e){return O(e)?e:Promise.resolve(e)}function P(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=A(e(...l,n.signal));let a=r;_(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=A(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function x(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>S,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>x,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function S(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=S(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=x({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.href}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${x(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=x(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){if(!this._port)return;let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(3060),r.e(4563)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(7469)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(1722),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(893),r.e(9696),r.e(5359),r.e(8245),r.e(5005),r.e(5228),r.e(7304),r.e(7557),r.e(1969),r.e(9936),r.e(4485)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(893),r.e(9696),r.e(5359),r.e(8245),r.e(1869)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(7235)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(3093)]).then(()=>r(71246)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(3642)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(5359),r.e(8291)]).then(()=>r(21599)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(2122)]).then(()=>r(92122)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(1273)]).then(()=>r(95938)),LercWorker:()=>Promise.all([r.e(2741),r.e(9478)]).then(()=>r(59478)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(9616)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(3819),r.e(5005),r.e(7557),r.e(6798)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9284),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(7201)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(2774),r.e(6898)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(5359),r.e(5005),r.e(5228),r.e(7499),r.e(1969),r.e(929)]).then(()=>r(66409)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(5359),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>r.e(6602).then(()=>r(86602))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="6.0";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="6.0.0-next.45",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{7:"bb6573d794bbe670216a",31:"3463b52d633a9336af28",77:"ab60e8fbe0f92340616a",100:"0ac4a3029ba17a9e2492",146:"49c21c11621ff077e401",152:"4f8a915795f107b772c5",154:"f497968055af459c5da4",161:"2050c844b5a29b1df28a",167:"1c94d4d79952dc4067be",309:"422784ceae0d511868a0",349:"b18459c1bed75dbdec08",353:"751a21288cf161b94a54",369:"66539ab0d88b47326ce9",382:"926e0a3827eaf16ca8b4",390:"2ad69cc496235702bbf2",433:"5736feefa261589b6273",468:"4eab4e74c6a479c5f930",491:"06326c8cbe0d644eca16",506:"ac69c0fd5867b493f1d2",521:"8e7a3b1b088c160f4db7",563:"08fe248e412bb170210d",566:"7672c123cfb960f4ddad",569:"2b4dd42920d37b1ff0a9",599:"921917e53bac82693ec8",692:"2671035cc08027185737",700:"e2535c83b97725e89256",737:"d5916500514a41a4758f",756:"d8b9d14f8d3e82ad26dc",787:"2e9d2f0a4e3c84d2ac2e",788:"42eec0421e3663019549",812:"b2d922ecc2c4899dbee1",820:"35f8896b52adaf952657",837:"425347186c279bcc595c",858:"0da6abe3ceabfe78f7a0",892:"dfbe0efe453587ec5eb2",893:"a1602995ef96beb7df29",895:"369780276b2755361f7d",919:"fc9d66fe2cc9e2d31964",926:"ccb55245fe49d844ec50",929:"d26c9db8c0a772d0923c",944:"3537fe95b83a13b156cc",980:"8102f0bf5707c3be3310",1065:"d0172d31389dbfaaa848",1088:"35426786de409d42a87f",1132:"e7719bfbc5875a515a2b",1150:"21939ef53bc71b42370f",1204:"608be1172a908e92b9f1",1214:"89e9ebc8d5c1022cb265",1273:"69c338d1d359075371bc",1277:"fcb4707c2e95099b9f30",1285:"116293b1ee788a89ce1e",1327:"c75cc72a306a617d9cd8",1384:"77d80b6d65d761214a7c",1491:"06101f3da5e2fc708402",1504:"82160bd873cdb5a23557",1550:"914a0b5d9fef683cdf9c",1560:"4f4bc4f809b8936cd010",1577:"489b37c459e1af116aeb",1588:"02feb2550b6878e62e2d",1630:"e209cb1f3f14bf576ebe",1666:"d63e181f0e48bde73395",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"ef9740c4d1bd808af38a",1763:"17c6d66b47aa690df0d4",1773:"79483c05867ba1386f5a",1797:"d99d5aa04e2d74ef57a7",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1869:"0ae2933ab9b4a6ca56f2",1894:"12a08d0ad0f5fea32642",1904:"ab684cce869973ea71cf",1938:"46d0db736c6e7decbcf6",1948:"b3801d58c024224917df",1969:"6604272ef6fe85279032",2024:"ec88631b5033c19f569e",2122:"ccb0046b883286e65429",2158:"4ba856605f711b615e4c",2174:"271ae7deccb94112c2df",2186:"5be386b3af867b19ff39",2223:"e55934eb4a17a5b24c94",2257:"1e37337f47f45d6d8005",2258:"0523f893870a1546d7d9",2266:"892fd2c3533ce46a9258",2343:"8140ed6e44c3d8536d3e",2346:"590fe0f56bc4c33a50e7",2372:"9b048f80c2d28d527373",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"af3c6794334626b94f00",2486:"68b4ce0b2e754ac2e552",2491:"90a7cd7564f2a92199cc",2558:"2b06e8507d71c4d9b5b5",2733:"a95186214f1206efd8ed",2741:"3bb1e06861cd0563ed9f",2754:"5864bce1498a13ee5b7e",2769:"4521f72ab0ea872e5d7c",2772:"f7123ba1286f64e13e91",2774:"5e6d6676a5c47c0e132a",2802:"834bbda7719b04301f74",2889:"8cec3f48e995aab3d62e",2958:"de3f140058aa0b907b65",2980:"3fe04f13215474accb09",2990:"9c2436464b7dfd666678",2994:"7d866911d1171d25ca78",2997:"efcd38aad9aa667001b2",3030:"c67ce7896789ac7275b2",3060:"ddb4689624d091922471",3080:"5c2e79f2ca401741bf3e",3093:"15a18c803a3aafa9a65b",3103:"286e3e050b29e6158e6f",3116:"831d896587d10fb689dc",3193:"2a224bc845c9bf682c54",3242:"dca0e2505a6cbef6f7f5",3275:"04a1d08c3b5b1dc7628f",3276:"eb2652ec48faa78de3c5",3281:"72f716a841463e0ba23f",3283:"10ad7b35b6800d40444e",3299:"9bb90097368b200fa730",3309:"6cd17c3a254a0b5c2476",3318:"0bfc4e7640058811e10c",3359:"3fe4c89acd325d36618d",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3394:"377158a19c9d6ef11387",3424:"1ae0c9345626e70affd3",3456:"d9e75266ac28f934eb61",3518:"394b329e64d880cdb500",3543:"5788c5ab258b36c8a897",3561:"aa4f3751f0d830113bed",3642:"98e3f7ab4bfbabf0b952",3650:"fccfe3aa45a2fb286012",3654:"7b7208237123e948f170",3666:"6061232c96e11eb7b25d",3693:"76dc8e3264a456f33e61",3708:"c75cc72a306a617d9cd8",3755:"090a7d0b0128d20879be",3813:"dd7e4c94a88452425750",3819:"32ba94e59b411d3ff063",3902:"649e4ecb1d9e6da3fcd7",3910:"bc21241bc9acb83d1b1c",4038:"2bdd5f0e0364b9e5f52b",4061:"4f3e0d583cfa9d1d6727",4064:"434a7ef5b25d83593b50",4085:"21a4c3d8265aca775616",4123:"13b40a611224ff5f4697",4144:"365825c51fad1bb7f51f",4189:"d19ac8368bb769fa5fba",4314:"348f28d7ab46df878c6f",4485:"162de06e54c0f9cba012",4506:"69b73251257088ce7099",4548:"1f51567f47c2e2fc8a23",4563:"2c619c50cdcc37652c0b",4575:"50b8b1cce0a5f77c8372",4581:"18e7fa4d3e0b1a084cc6",4642:"77463141652bf1ca6fb2",4674:"561c48cb4d49b150765b",4682:"478a89317a12e9b4d146",4690:"711cfb84659cb4437679",4729:"df375d1b0dab5ecbd1be",4780:"1d9b0db37d5f3819ffca",4790:"f0b897319ca8578df63f",4791:"e2ebf0ea3af2e6907987",4834:"a8bedc53d4a316953108",4844:"075fe33152fd79fe6d72",4862:"d77888c84a8b49478807",4934:"dfc6b33f51dc81f3a7be",4935:"ae70972bf88d586fd453",4943:"02debe67e6fef9d88bdd",4945:"29a437a2b7b3a9b3e104",4988:"6268aadb24e0b7c8d207",5005:"1c61ced6079443fc0ce8",5077:"0284f608d25c654fcc11",5087:"89cc1a5539b82fb46216",5128:"d4028536542db8b623cc",5141:"7c75a8ee266c36baa902",5165:"0e57bac610d41c7c9ad4",5181:"0dc1ac5531f7c8854686",5223:"c9e7d4c277fbc82c4438",5227:"3a295fab549ae3caf9df",5228:"ead49b513e070951a964",5313:"db1f7b2562de495b3401",5356:"3a3b57abfb92494cac84",5359:"b6a82775b83d20599635",5360:"a02c3c23bd87e0470b8b",5367:"f7f73de8c63924e347ab",5404:"244ffdb91237d1cbade3",5443:"c752f1e732bb019f657d",5566:"f91e36a104e84d985517",5606:"0b480583373b69773333",5613:"27f0bbde1e9fa3f06d46",5740:"afc8a9847f31bb66b13b",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"32b9bedd4bb0504f0b1d",5856:"39c23a52d7c3e1ee121c",5879:"c063de8f57a393280c39",5902:"e4e2edfdc85dd14e66d4",5952:"82e238375582f90dc94c",5992:"d3cd09b2d78ce9f2ea42",6023:"47af220003adfca2167e",6026:"8cddfdbab3ad3809462f",6027:"e2576c37cf13dc421f69",6033:"72020d86e3fc7ecc139f",6051:"c85336a50a4994a2a7eb",6052:"11877d4dc97f756e4711",6070:"fa5d4b9a098441ebf505",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"72f4dad65e16a7d7c58f",6187:"01a24ae6e3d730e193e2",6247:"5b1cebae74c7214ccda9",6263:"be11cec9979ed5e9738e",6319:"7027a0e7bfabb3bb7fc2",6475:"ad787100602e18dde650",6491:"5744c7350e4e2eb73aa9",6553:"b6d71a4ab788a09714f3",6554:"035204000954973b0ebc",6556:"8f1dd383502432d8a039",6558:"6637fb99033bfa7646d4",6569:"00620a90b32352bcdc71",6602:"3cbb3c4e0e60a874ac6d",6650:"bdd76a0b6c14e7fb6984",6671:"348f1def9cd2ddf92e87",6684:"15f2b27b8edc0d53e399",6708:"ae29fec228e70a93ced1",6742:"1eaaa896eea3f2ffe6a6",6744:"5c9ab86bec07264dc9f2",6798:"5565b4e7c31d31a7e546",6810:"f4d714d0a1a513861704",6870:"b10850c48f4eee60b8a9",6874:"dbf37b1c4e0567d9fb32",6875:"b3c0c9c91bcdbbb8e719",6898:"d85d1064ba87ea1b1410",6930:"200da109115eab8b2480",6936:"4136c4de42b8818e2710",6956:"85cd525705eec6803dd3",7005:"7ddbde8fdd1cf3c53f50",7029:"aa8ab28e0c1ae3b55ac0",7085:"0979a48905742486f222",7201:"cf684026e7f1ab7df4f7",7217:"11e313dfca2579e68419",7235:"5c3aa8386705c5e40358",7269:"7eddde6c4249f46c67f3",7290:"7db9e615e60d824eac1b",7301:"67f54efc817b241f8746",7304:"99ffb839407cb3c26ad8",7366:"05225506fdba0c827407",7380:"99a72b65afdcd3ee091a",7420:"8766832c7253557da8fe",7444:"60137300db0e0c3caf13",7469:"835ccd95f2d312ecda5a",7499:"b6d365b9198b74b05338",7546:"17f99b130384c1ff2e01",7548:"f36376b126c80d0983fb",7552:"8a8c9a3969b7016c20d9",7557:"41d674e73b57c8abe838",7561:"2a8168e109caa87d596f",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7865:"503ee206e7de1f65e291",7883:"24bdeafbb16ae83bb8c3",7885:"27a5c6be4f847900d6ed",7915:"ddaa8f8098e4a663e4e5",7956:"eaa0e906b46ae4c84d72",7982:"15a7a3264915fc8d3188",7984:"8cc8d7ffe43f5947b04f",7992:"0864da8f8f147016cf1c",8018:"ac10c7d2c4829a150037",8020:"ae40eac1eadd1a537bf4",8040:"0ac38ca04285cd5ef1a0",8118:"cdf0c7706d3e1221f49b",8125:"ac69c0fd5867b493f1d2",8169:"4a8903fb1a5d30a68df9",8232:"f4e63c5f82b8c2bbfacb",8241:"df88bb9117967fe72eb4",8245:"4d818b231e6d1fa73cc5",8247:"af70a81620203c030f5b",8278:"230189a28552ab00546d",8291:"f3ca7fa35eb8d55f5907",8298:"7aa9b61ca9b66f30449f",8305:"fe0248af95d3f37e099e",8307:"ef8f9b61b829c3bdf999",8317:"9c3f56f22e9baa80a387",8331:"dcc782e4bf9e8a8202f9",8344:"b976122bcd4e2170afaf",8377:"92b03de8a7686b164f60",8477:"0da6abe3ceabfe78f7a0",8589:"077b755688346e0dc8d3",8595:"3f92afa58c895bf87e62",8613:"b3707d2cd2f4b2f70889",8628:"359ab29c4509dce0ffbd",8673:"c5bf19da62a3d31009fe",8679:"2e9a1673b1d51aa082b6",8692:"9b517c8d26a86dedb921",8714:"64382363d6dc04ff1eac",8740:"d31f6598b76380e8688a",8747:"b021fa4654ede1d04279",8798:"a553478664a688f32488",8801:"92809b209b68abcb97ee",8826:"158cbf4075d3eca83a6a",8846:"e0a37d3bcb9a944e53dd",8879:"8385bede56cc95d1a388",8885:"73ab4f0275a85b9671ec",8915:"f1e87e3ff65d8594e6b3",9013:"5b3db2c40feaefb7cbc0",9031:"30c5b584e8658b2b3607",9074:"d4fe26716c4eca13d493",9078:"c473c8b480de9802711b",9117:"9e7622379d777ea88018",9126:"40748b846cf6923478c9",9134:"5622f3faa59434772857",9159:"4d7063c4152953afb859",9177:"63d2645a744dce469bbb",9187:"dc9792b2aa55975b8a95",9192:"cc817c9d3f8e8f8c56e4",9235:"929ca32ddbb43328ef31",9239:"14ef986665b4a1f6ccdc",9279:"aaac620f93a20fbd3f08",9284:"23fff0505e02fd364909",9301:"9bf77f92760aacbd636f",9321:"4869e097261ded90b8bb",9358:"9fb4c10d5b3e32bc86e9",9407:"b25104337f2495a4296a",9447:"474015def9652ddf0640",9459:"b89b634e9d38b5a51d33",9478:"181d24ced5ef6b1f959b",9480:"3e67d50a2b2f8f837831",9512:"57e0bf4be8a166d5b1eb",9521:"2515ce2ef279cdd4d5fa",9567:"31ef7b7074b3e3829763",9588:"b4928831a2a13b2da745",9616:"5ba40e98e9300d1ebc85",9657:"8c1ae93dae934aedc6dc",9672:"d7270a2db6f3bfcf0565",9692:"e0650b1408197d3ac862",9695:"e5bdfef7c2cc5354be52",9696:"98957dba728c93506e50",9716:"d4eb24c82087a74ae670",9722:"62a0abcf45a2bd14ecbe",9800:"0c1d8e0c2eae21f97fc0",9820:"a8fbef765a6fb68e1115",9821:"e1f5da51115472347b55",9838:"792d2b62356a1d953c88",9855:"52a0aa2d19a495e48ab1",9894:"2c7f3fb74a076acf9b30",9917:"1ca9f823caff691e964d",9933:"13c64087be3b2985a21b",9936:"f1c2f7c7ce4bd4096eb0",9940:"4d62877f521cc9663535",9953:"776b64a1e1a57878c34c",9958:"6d863761f29f31a030eb"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
1
+ var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={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}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),a.assetsPath||(a.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.46/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>c});var n=r(92602),a=r(51447),o=r(44208),i=r(799);const s={info:0,warn:1,error:2,none:3};class c{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,c._loggers.set(this.module,this);let t=this.module.lastIndexOf("/");-1===t&&(t=this.module.lastIndexOf(".")),-1!==t&&(this._parent=c.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,(0,o.A)("enable-feature:logger-core-module-ids")&&(e=(0,a.u3)(e)),c._loggers.get(e)||new c({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){let n=function(...e){return(0,i.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=c._tickCounter)return;this._loggedMessages[e].set(n,c._tickCounter),c._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",l)}_matchLevel(e){let t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then(()=>{c._tickCounter++,c._tickCounterScheduled=!1}))}}function l(e,t,...r){console[e](`[${t}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return"esri"===e?"@arcgis/core":e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e.startsWith("esri/")?e.replace("esri/","@arcgis/core/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone",2)[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/",2)[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/",2)[1])||void 0),o.add("opr",parseFloat(t.split("OPR/",2)[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/",2)[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/",2)[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ",2)[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/",2)[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/",2)[1]||t.split("Minefield/",2)[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-snapping-density-sample-interval",10),o.add("featurelayer-snapping-density-max-vertices-per-feature",16),o.add("featurelayer-snapping-density-max-distance",8),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!0),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),o.add("enable-feature:gaussian-splat-prioritize-nearby-detail",!1),o.add("enable-feature:emissive-on-non-volumetric",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,Qd:()=>d,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>O,G4:()=>f,HA:()=>c,Lx:()=>y,Mq:()=>l,NK:()=>i,NO:()=>S,NY:()=>h,Ol:()=>v,Pl:()=>_,QP:()=>d,QZ:()=>g,Te:()=>s,YL:()=>k,hn:()=>x,jH:()=>u,nA:()=>w,qr:()=>p,sg:()=>P,u7:()=>b,z7:()=>A,zf:()=>m});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(f(e))throw i(t)}function c(e,t="Aborted"){if(e?.destroyed)throw i(t)}function l(e){return e instanceof AbortSignal?e:e?.signal??void 0}function f(e){let t=l(e);return null!=t&&t.aborted}function d(e){if(m(e))throw e}function u(e){if(!m(e))throw e}function b(e,t){let r=l(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",()=>t());t()}}function h(e,t){let r=l(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function p(e,t){return null==l(t)?e:new Promise((r,n)=>{let a=b(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function m(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function g(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function y(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await y(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function w(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function v(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function _(e,t=void 0,r){let n=new AbortController;return b(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);b(n,()=>{o&&(clearTimeout(o),a(i()))})})}function k(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return b(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function O(e){return e&&"function"==typeof e.then}function A(e){return O(e)?e:Promise.resolve(e)}function P(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=A(e(...l,n.signal));let a=r;_(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=A(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function x(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>S,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>x,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function S(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=S(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=x({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.href}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${x(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=x(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){if(!this._port)return;let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(3060),r.e(4563)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(7469)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(1722),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(893),r.e(9696),r.e(5359),r.e(8245),r.e(5005),r.e(5228),r.e(7304),r.e(7557),r.e(1969),r.e(9936),r.e(4485)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(893),r.e(9696),r.e(5359),r.e(8245),r.e(1869)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(7235)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(3093)]).then(()=>r(71246)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(3642)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(5359),r.e(8291)]).then(()=>r(21599)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(2122)]).then(()=>r(92122)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(1273)]).then(()=>r(95938)),LercWorker:()=>Promise.all([r.e(2741),r.e(9478)]).then(()=>r(59478)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(9616)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(3819),r.e(5005),r.e(7557),r.e(6798)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9284),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(7201)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(5359),r.e(8245),r.e(2774),r.e(6898)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(5359),r.e(5005),r.e(5228),r.e(7499),r.e(1969),r.e(929)]).then(()=>r(66409)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(5359),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>r.e(6602).then(()=>r(86602))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="6.0";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="6.0.0-next.46",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{7:"bb6573d794bbe670216a",31:"3463b52d633a9336af28",77:"ab60e8fbe0f92340616a",100:"0ac4a3029ba17a9e2492",146:"49c21c11621ff077e401",152:"4f8a915795f107b772c5",154:"f497968055af459c5da4",161:"2050c844b5a29b1df28a",167:"1c94d4d79952dc4067be",309:"422784ceae0d511868a0",349:"b18459c1bed75dbdec08",353:"751a21288cf161b94a54",369:"66539ab0d88b47326ce9",382:"926e0a3827eaf16ca8b4",390:"2ad69cc496235702bbf2",433:"5736feefa261589b6273",468:"4eab4e74c6a479c5f930",491:"06326c8cbe0d644eca16",506:"ac69c0fd5867b493f1d2",521:"8e7a3b1b088c160f4db7",563:"08fe248e412bb170210d",566:"7672c123cfb960f4ddad",569:"2b4dd42920d37b1ff0a9",599:"921917e53bac82693ec8",692:"2671035cc08027185737",700:"e2535c83b97725e89256",737:"d5916500514a41a4758f",756:"d8b9d14f8d3e82ad26dc",787:"2e9d2f0a4e3c84d2ac2e",788:"42eec0421e3663019549",812:"b2d922ecc2c4899dbee1",820:"35f8896b52adaf952657",837:"425347186c279bcc595c",858:"0da6abe3ceabfe78f7a0",892:"dfbe0efe453587ec5eb2",893:"a1602995ef96beb7df29",895:"369780276b2755361f7d",919:"fc9d66fe2cc9e2d31964",926:"ccb55245fe49d844ec50",929:"d26c9db8c0a772d0923c",944:"3537fe95b83a13b156cc",980:"8102f0bf5707c3be3310",1065:"d0172d31389dbfaaa848",1088:"35426786de409d42a87f",1132:"e7719bfbc5875a515a2b",1150:"21939ef53bc71b42370f",1204:"608be1172a908e92b9f1",1214:"89e9ebc8d5c1022cb265",1273:"69c338d1d359075371bc",1277:"fcb4707c2e95099b9f30",1285:"116293b1ee788a89ce1e",1327:"c75cc72a306a617d9cd8",1384:"77d80b6d65d761214a7c",1491:"06101f3da5e2fc708402",1504:"82160bd873cdb5a23557",1550:"914a0b5d9fef683cdf9c",1560:"4f4bc4f809b8936cd010",1577:"489b37c459e1af116aeb",1588:"02feb2550b6878e62e2d",1630:"e209cb1f3f14bf576ebe",1666:"d63e181f0e48bde73395",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"ef9740c4d1bd808af38a",1763:"17c6d66b47aa690df0d4",1773:"79483c05867ba1386f5a",1797:"d99d5aa04e2d74ef57a7",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1869:"0ae2933ab9b4a6ca56f2",1894:"12a08d0ad0f5fea32642",1904:"ab684cce869973ea71cf",1938:"46d0db736c6e7decbcf6",1948:"b3801d58c024224917df",1969:"6604272ef6fe85279032",2024:"ec88631b5033c19f569e",2122:"ccb0046b883286e65429",2158:"4ba856605f711b615e4c",2174:"271ae7deccb94112c2df",2186:"5be386b3af867b19ff39",2223:"e55934eb4a17a5b24c94",2257:"1e37337f47f45d6d8005",2258:"0523f893870a1546d7d9",2266:"892fd2c3533ce46a9258",2343:"8140ed6e44c3d8536d3e",2346:"590fe0f56bc4c33a50e7",2372:"9b048f80c2d28d527373",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"af3c6794334626b94f00",2486:"68b4ce0b2e754ac2e552",2491:"90a7cd7564f2a92199cc",2558:"2b06e8507d71c4d9b5b5",2733:"a95186214f1206efd8ed",2741:"3bb1e06861cd0563ed9f",2754:"5864bce1498a13ee5b7e",2769:"4521f72ab0ea872e5d7c",2772:"f7123ba1286f64e13e91",2774:"5e6d6676a5c47c0e132a",2802:"834bbda7719b04301f74",2889:"8cec3f48e995aab3d62e",2958:"de3f140058aa0b907b65",2980:"3fe04f13215474accb09",2990:"9c2436464b7dfd666678",2994:"7d866911d1171d25ca78",2997:"efcd38aad9aa667001b2",3030:"c67ce7896789ac7275b2",3060:"ddb4689624d091922471",3080:"5c2e79f2ca401741bf3e",3093:"15a18c803a3aafa9a65b",3103:"286e3e050b29e6158e6f",3116:"831d896587d10fb689dc",3193:"2a224bc845c9bf682c54",3242:"dca0e2505a6cbef6f7f5",3275:"04a1d08c3b5b1dc7628f",3276:"eb2652ec48faa78de3c5",3281:"72f716a841463e0ba23f",3283:"10ad7b35b6800d40444e",3299:"9bb90097368b200fa730",3309:"6cd17c3a254a0b5c2476",3318:"0bfc4e7640058811e10c",3359:"3fe4c89acd325d36618d",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3394:"377158a19c9d6ef11387",3424:"1ae0c9345626e70affd3",3456:"d9e75266ac28f934eb61",3518:"394b329e64d880cdb500",3543:"5788c5ab258b36c8a897",3561:"aa4f3751f0d830113bed",3642:"98e3f7ab4bfbabf0b952",3650:"fccfe3aa45a2fb286012",3654:"7b7208237123e948f170",3666:"6061232c96e11eb7b25d",3693:"76dc8e3264a456f33e61",3708:"c75cc72a306a617d9cd8",3755:"090a7d0b0128d20879be",3813:"dd7e4c94a88452425750",3819:"32ba94e59b411d3ff063",3902:"649e4ecb1d9e6da3fcd7",3910:"bc21241bc9acb83d1b1c",4038:"2bdd5f0e0364b9e5f52b",4061:"4f3e0d583cfa9d1d6727",4064:"434a7ef5b25d83593b50",4085:"21a4c3d8265aca775616",4123:"13b40a611224ff5f4697",4144:"365825c51fad1bb7f51f",4189:"d19ac8368bb769fa5fba",4314:"348f28d7ab46df878c6f",4485:"162de06e54c0f9cba012",4506:"69b73251257088ce7099",4548:"1f51567f47c2e2fc8a23",4563:"2c619c50cdcc37652c0b",4575:"50b8b1cce0a5f77c8372",4581:"18e7fa4d3e0b1a084cc6",4642:"77463141652bf1ca6fb2",4674:"561c48cb4d49b150765b",4682:"478a89317a12e9b4d146",4690:"711cfb84659cb4437679",4729:"df375d1b0dab5ecbd1be",4780:"1d9b0db37d5f3819ffca",4790:"f0b897319ca8578df63f",4791:"e2ebf0ea3af2e6907987",4834:"a8bedc53d4a316953108",4844:"075fe33152fd79fe6d72",4862:"d77888c84a8b49478807",4934:"dfc6b33f51dc81f3a7be",4935:"ae70972bf88d586fd453",4943:"02debe67e6fef9d88bdd",4945:"29a437a2b7b3a9b3e104",4988:"6268aadb24e0b7c8d207",5005:"1c61ced6079443fc0ce8",5077:"0284f608d25c654fcc11",5087:"89cc1a5539b82fb46216",5128:"d4028536542db8b623cc",5141:"7c75a8ee266c36baa902",5165:"0e57bac610d41c7c9ad4",5181:"0dc1ac5531f7c8854686",5223:"c9e7d4c277fbc82c4438",5227:"3a295fab549ae3caf9df",5228:"ead49b513e070951a964",5313:"db1f7b2562de495b3401",5356:"3a3b57abfb92494cac84",5359:"b6a82775b83d20599635",5360:"a02c3c23bd87e0470b8b",5367:"f7f73de8c63924e347ab",5404:"244ffdb91237d1cbade3",5443:"c752f1e732bb019f657d",5566:"f91e36a104e84d985517",5606:"0b480583373b69773333",5613:"27f0bbde1e9fa3f06d46",5740:"afc8a9847f31bb66b13b",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"32b9bedd4bb0504f0b1d",5856:"39c23a52d7c3e1ee121c",5879:"c063de8f57a393280c39",5902:"e4e2edfdc85dd14e66d4",5952:"82e238375582f90dc94c",5992:"d3cd09b2d78ce9f2ea42",6023:"47af220003adfca2167e",6026:"8cddfdbab3ad3809462f",6027:"e2576c37cf13dc421f69",6033:"72020d86e3fc7ecc139f",6051:"c85336a50a4994a2a7eb",6052:"11877d4dc97f756e4711",6070:"fa5d4b9a098441ebf505",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"72f4dad65e16a7d7c58f",6187:"01a24ae6e3d730e193e2",6247:"5b1cebae74c7214ccda9",6263:"be11cec9979ed5e9738e",6319:"7027a0e7bfabb3bb7fc2",6475:"ad787100602e18dde650",6491:"5744c7350e4e2eb73aa9",6553:"b6d71a4ab788a09714f3",6554:"035204000954973b0ebc",6556:"8f1dd383502432d8a039",6558:"6637fb99033bfa7646d4",6569:"00620a90b32352bcdc71",6602:"3cbb3c4e0e60a874ac6d",6650:"bdd76a0b6c14e7fb6984",6671:"348f1def9cd2ddf92e87",6684:"15f2b27b8edc0d53e399",6708:"ae29fec228e70a93ced1",6742:"1eaaa896eea3f2ffe6a6",6744:"5c9ab86bec07264dc9f2",6798:"5565b4e7c31d31a7e546",6810:"f4d714d0a1a513861704",6870:"b10850c48f4eee60b8a9",6874:"dbf37b1c4e0567d9fb32",6875:"b3c0c9c91bcdbbb8e719",6898:"d85d1064ba87ea1b1410",6930:"200da109115eab8b2480",6936:"4136c4de42b8818e2710",6956:"85cd525705eec6803dd3",7005:"7ddbde8fdd1cf3c53f50",7029:"aa8ab28e0c1ae3b55ac0",7085:"0979a48905742486f222",7201:"cf684026e7f1ab7df4f7",7217:"11e313dfca2579e68419",7235:"5c3aa8386705c5e40358",7269:"7eddde6c4249f46c67f3",7290:"7db9e615e60d824eac1b",7301:"67f54efc817b241f8746",7304:"99ffb839407cb3c26ad8",7366:"05225506fdba0c827407",7380:"99a72b65afdcd3ee091a",7420:"8766832c7253557da8fe",7444:"60137300db0e0c3caf13",7469:"835ccd95f2d312ecda5a",7499:"b6d365b9198b74b05338",7546:"17f99b130384c1ff2e01",7548:"f36376b126c80d0983fb",7552:"8a8c9a3969b7016c20d9",7557:"41d674e73b57c8abe838",7561:"2a8168e109caa87d596f",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7865:"503ee206e7de1f65e291",7883:"24bdeafbb16ae83bb8c3",7885:"27a5c6be4f847900d6ed",7915:"ddaa8f8098e4a663e4e5",7956:"eaa0e906b46ae4c84d72",7982:"15a7a3264915fc8d3188",7984:"8cc8d7ffe43f5947b04f",7992:"0864da8f8f147016cf1c",8018:"ac10c7d2c4829a150037",8020:"ae40eac1eadd1a537bf4",8040:"0ac38ca04285cd5ef1a0",8118:"cdf0c7706d3e1221f49b",8125:"ac69c0fd5867b493f1d2",8169:"4a8903fb1a5d30a68df9",8232:"f4e63c5f82b8c2bbfacb",8241:"df88bb9117967fe72eb4",8245:"4d818b231e6d1fa73cc5",8247:"af70a81620203c030f5b",8278:"230189a28552ab00546d",8291:"f3ca7fa35eb8d55f5907",8298:"7aa9b61ca9b66f30449f",8305:"fe0248af95d3f37e099e",8307:"ef8f9b61b829c3bdf999",8317:"9c3f56f22e9baa80a387",8331:"dcc782e4bf9e8a8202f9",8344:"b976122bcd4e2170afaf",8377:"92b03de8a7686b164f60",8477:"0da6abe3ceabfe78f7a0",8589:"077b755688346e0dc8d3",8595:"3f92afa58c895bf87e62",8613:"b3707d2cd2f4b2f70889",8628:"359ab29c4509dce0ffbd",8673:"c5bf19da62a3d31009fe",8679:"2e9a1673b1d51aa082b6",8692:"9b517c8d26a86dedb921",8714:"64382363d6dc04ff1eac",8740:"d31f6598b76380e8688a",8747:"b021fa4654ede1d04279",8798:"a553478664a688f32488",8801:"92809b209b68abcb97ee",8826:"158cbf4075d3eca83a6a",8846:"e0a37d3bcb9a944e53dd",8879:"8385bede56cc95d1a388",8885:"73ab4f0275a85b9671ec",8915:"f1e87e3ff65d8594e6b3",9013:"5b3db2c40feaefb7cbc0",9031:"30c5b584e8658b2b3607",9074:"d4fe26716c4eca13d493",9078:"c473c8b480de9802711b",9117:"9e7622379d777ea88018",9126:"40748b846cf6923478c9",9134:"5622f3faa59434772857",9159:"4d7063c4152953afb859",9177:"63d2645a744dce469bbb",9187:"dc9792b2aa55975b8a95",9192:"cc817c9d3f8e8f8c56e4",9235:"929ca32ddbb43328ef31",9239:"14ef986665b4a1f6ccdc",9279:"aaac620f93a20fbd3f08",9284:"23fff0505e02fd364909",9301:"9bf77f92760aacbd636f",9321:"4869e097261ded90b8bb",9358:"9fb4c10d5b3e32bc86e9",9407:"b25104337f2495a4296a",9447:"474015def9652ddf0640",9459:"b89b634e9d38b5a51d33",9478:"181d24ced5ef6b1f959b",9480:"3e67d50a2b2f8f837831",9512:"57e0bf4be8a166d5b1eb",9521:"2515ce2ef279cdd4d5fa",9567:"31ef7b7074b3e3829763",9588:"b4928831a2a13b2da745",9616:"5ba40e98e9300d1ebc85",9657:"8c1ae93dae934aedc6dc",9672:"d7270a2db6f3bfcf0565",9692:"e0650b1408197d3ac862",9695:"e5bdfef7c2cc5354be52",9696:"98957dba728c93506e50",9716:"d4eb24c82087a74ae670",9722:"62a0abcf45a2bd14ecbe",9800:"0c1d8e0c2eae21f97fc0",9820:"a8fbef765a6fb68e1115",9821:"e1f5da51115472347b55",9838:"792d2b62356a1d953c88",9855:"52a0aa2d19a495e48ab1",9894:"2c7f3fb74a076acf9b30",9917:"1ca9f823caff691e964d",9933:"13c64087be3b2985a21b",9936:"f1c2f7c7ce4bd4096eb0",9940:"4d62877f521cc9663535",9953:"776b64a1e1a57878c34c",9958:"6d863761f29f31a030eb"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={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}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),t.assetsPath||(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.45/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={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}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),t.assetsPath||(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.46/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`6.0`;let n=`6.0`;n=`6.0.0-next.45`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
2
+ import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`6.0`;let n=`6.0`;n=`6.0.0-next.46`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "6.0.0-next.45",
3
+ "version": "6.0.0-next.46",
4
4
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -20,7 +20,7 @@
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
22
  "@amcharts/amcharts5": "~5.23.0",
23
- "@arcgis/toolkit": "6.0.0-next.45",
23
+ "@arcgis/toolkit": "6.0.0-next.46",
24
24
  "@esri/arcgis-html-sanitizer": "~4.2.0",
25
25
  "@esri/calcite-components": "^5.2.1",
26
26
  "@vaadin/grid": "~25.3.7",
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../../Color.js";import n from"../../../../Graphic.js";import{destroyMaybe as r}from"../../../../core/maybe.js";import{watch as i}from"../../../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{project as s,initializeProjection as c}from"../../../../geometry/projectionUtils.js";import{isValid as l}from"../../../../geometry/support/spatialReferenceUtils.js";import u from"../../../../layers/GraphicsLayer.js";import d from"../../../../symbols/CIMSymbol.js";import{applyCIMSymbolColor as f}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as p}from"./manipulations/DragManipulation.js";import{InteractiveToolBase as m}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as h,mediaKeys as g}from"../../../interactive/keybindings.js";import{EditGeometryOperations as _}from"../../../interactive/editGeometry/EditGeometryOperations.js";const v=new t(`#009af2`);let y=class extends m{constructor(e){super(e),this._isOpacityToggled=!1,this._factor=1,this._initialControlPoints=null,this._graphicsLayer=new u({internal:!0,listMode:`hide`,visible:!1,effect:`drop-shadow(0px, 0px, 3px)`,title:`ControlPointsTransformationTool layer`}),this._undoStack=[],this._redoStack=[],this._sharedUndoStack=[],this._sharedRedoStack=[],this._highlightHandle=null,this.activeHandle=0,this.editSourcePoints=!1,this.type=`reshape`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._controlPointManipulations.forEach(e=>e.destroy()),this._controlPointEditGeometryOperations.forEach(e=>e.destroy()),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=r(this._graphicsLayer),this._georeference=null,this._controlPointGraphics=null,this._controlPointManipulations=null,this._graphicsLayer=null,this._controlPointEditGeometryOperations=null,this._undoStack=null,this._redoStack=null,this._initialControlPoints=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _hasValidSpatialReference(){return l(this.view.spatialReference)}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){let e=this._undoStack[this._undoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canUndo}canRedo(){let e=this._redoStack[this._redoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canRedo}undo(){if(this._undoStack.length>0){let e=this._undoStack.pop();this._controlPointEditGeometryOperations[e].undo(),this.updateGraphics(),this._redoStack.push(e)}}redo(){if(this._redoStack.length>0){let e=this._redoStack.pop();this._controlPointEditGeometryOperations[e].redo(),this.updateGraphics(),this._undoStack.push(e)}}refresh(){let{mediaElement:e}=this;if(e.georeference==null)return;let t=e.georeference;t.type===`control-points`&&t.coords!=null&&(this._georeference=t,this._georeference.controlPoints.forEach(({mapPoint:e},t)=>{let n=this._controlPointEditGeometryOperations[t],r=n.data.parts[0].vertices[0];n.setVertexPosition(r,n.data.coordinateHelper.pointToVector(e))}),this.updateGraphics())}reset(){this._georeference.controlPoints=this._initialControlPoints,this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){let e=this._georeference,t=e.controlPoints,n=t[0].mapPoint.spatialReference,r=this._hasValidSpatialReference;this._georeference.controlPoints=this._controlPointEditGeometryOperations.map((i,a)=>{let o=i.data.geometry;return this._controlPointGraphics[a].geometry=o,{mapPoint:s(o,n),sourcePoint:r&&!this.editSourcePoints?t[a].sourcePoint:e.toSource(o)}})}updateActiveHandle(e){if(this.activeHandle===e)return;let t=this._controlPointGraphics[this.activeHandle].symbol.clone();f(t,this.view.effectiveTheme.accentColor),this._controlPointGraphics[this.activeHandle].symbol=t;let n=this._controlPointGraphics[e].symbol.clone();f(n,v),this._controlPointGraphics[e].symbol=n,this.activeHandle=e,this.view.surface===document.activeElement&&this.highlightActiveHandle()}async highlightActiveHandle(){this.removeHighlightActiveHandle();let e=await this.view.whenLayerView(this._graphicsLayer);this._highlightHandle=e.highlight(this._controlPointGraphics[this.activeHandle])}removeHighlightActiveHandle(){this._highlightHandle&&this._highlightHandle.remove()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}async _initialize(){let{view:e,mediaElement:t}=this;if(t.georeference==null)return;let r=t.georeference;if(r.type!==`control-points`||r.coords==null)return;this._georeference=r,this._initialControlPoints=this._georeference.controlPoints,e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._controlPointEditGeometryOperations=this._georeference.controlPoints.map(({mapPoint:t})=>_.fromGeometry(s(t,e.spatialReference),2)),this._controlPointGraphics=this._controlPointEditGeometryOperations.map((e,t)=>new n({symbol:new d({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,colorLocked:!0,anchorPoint:{x:0,y:-15.75},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:9,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:84.3,ymax:84.3},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[83.2,32.5],[84.3,40.7],[83.8,48.9],[81.7,56.9],[78.1,64.3],[73,70.9],[66.9,76.4],[59.7,80.5],[51.9,83.2],[43.7,84.3],[35.4,83.8],[27.4,81.7],[20,78],[13.4,73],[7.9,66.8],[3.8,59.7],[1.1,51.9],[0,43.7],[.5,35.4],[2.6,27.4],[6.3,20],[11.3,13.4],[17.5,7.9],[24.7,3.8],[32.5,1.1],[39.8,.1],[47.1,.3],[54.3,1.8],[61.1,4.5],[67.4,8.4],[72.9,13.3],[77.4,19.1],[80.9,25.5],[83.2,32.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:[255,255,255,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[84.3,0],[84.3,84.3],[0,84.3],[0,0]]]}},rotation:0},{type:`CIMVectorMarker`,enable:!0,anchorPoint:{x:0,y:-11.25},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:22.5,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:197.7,ymax:294.7},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[98.9,0],[119.4,23.2],[139.4,49.3],[156.8,75.2],[171.2,100.8],[182.4,125.3],[190.6,148.8],[195.7,171.4],[197.7,192.9],[197.7,195.8],[197.7,200.3],[197.6,202.5],[197.5,204.8],[197.3,207.1],[197,209.4],[196.7,211.7],[196.4,214.1],[196,216.4],[195.5,218.7],[195,221.1],[194.4,223.4],[193.7,225.8],[193,228.1],[192.2,230.5],[191.4,232.8],[190.5,235.1],[189.5,237.5],[188.5,239.7],[187.4,242],[186.2,244.3],[185,246.5],[183.7,248.7],[182.4,250.9],[181,253.1],[179.5,255.2],[178,257.3],[176.4,259.4],[174.7,261.4],[173.1,263.3],[171.3,265.3],[169.5,267.2],[167.7,269],[165.8,270.8],[163.9,272.5],[161.9,274.2],[159.9,275.8],[157.8,277.4],[155.7,278.9],[153.6,280.4],[151.4,281.7],[149.2,283.1],[147,284.4],[144.8,285.6],[142.5,286.7],[140.3,287.8],[138,288.8],[135.7,289.8],[133.4,290.7],[131,291.5],[128.7,292.3],[126.4,293],[124,293.6],[121.7,294.2],[119.4,294.7],[117,295.2],[114.7,295.6],[112.4,296],[110.1,296.3],[107.8,296.5],[105.5,296.7],[103.3,296.8],[101.1,296.9],[98.8,296.9],[83.1,295.7],[67.8,292],[53.3,285.9],[39.9,277.5],[28.1,267.2],[18,255.1],[10,241.5],[4.2,226.9],[.9,211.5],[0,195.8],[.1,192.9],[2.1,171.4],[7.2,148.8],[15.4,125.3],[26.6,100.8],[41,75.2],[58.4,49.3],[78.4,23.2],[98.9,0]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t===this.activeHandle?v.toArray():this.view.effectiveTheme.accentColor.toArray()}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[197.7,0],[197.7,294.7],[0,294.7],[0,0]]]}},rotation:0}],haloSize:1,scaleX:1,angleAlignment:`Display`,angle:0}}}),geometry:e.data.geometry})),this._graphicsLayer.graphics.addMany([...this._controlPointGraphics]),this._controlPointManipulations=this._controlPointGraphics.map(t=>new p({tool:this,view:e,graphic:t})),this.addHandles([...this._controlPointManipulations.map((e,t)=>e.createDragPipeline(this._getInfo.bind(this,t),(e,n)=>{e.action===`start`&&(this._undoStack.push(t),this._redoStack=[],this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0),this.updateGraphics()})),i(()=>this.view.scale,()=>this.active?this.updateGraphics():null)]),this._controlPointManipulations.forEach((e,t)=>{e.forEachManipulator(e=>{this.addHandles([e.events.on([`click`,`grab-changed`],e=>this.updateActiveHandle(t))])})});let a=new h;a.add(g.toggleOpacity,()=>{e.activeTool===this&&(t.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),a.addToggle(g.factorModifier,t=>{e.activeTool===this&&(this._factor=t.type===`key-down`?10:1)}),a.add(g.moveUp,()=>{e.activeTool===this&&this._move(0,this._factor)}),a.add(g.moveDown,()=>{e.activeTool===this&&this._move(0,-this._factor)}),a.add(g.moveLeft,()=>{e.activeTool===this&&this._move(-this._factor,0)}),a.add(g.moveRight,()=>{e.activeTool===this&&this._move(this._factor,0)}),this.addHandles([a.register(e)])}async _loadProjectionEngine(){let e=this._georeference.controlPoints[0].mapPoint;return c(e.spatialReference,this.view.spatialReference)}_getInfo(e){return{editGeometryOperations:this._controlPointEditGeometryOperations[e],constraints:this._hasValidSpatialReference?null:{xmin:0,ymin:0,xmax:this._georeference.width,ymax:this._georeference.height}}}_move(e,t){let n=this._controlPointEditGeometryOperations[this.activeHandle].move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}};e([a()],y.prototype,`_hasValidSpatialReference`,null),e([a()],y.prototype,`activeHandle`,void 0),e([a()],y.prototype,`editSourcePoints`,void 0),e([a({constructOnly:!0,nonNullable:!0})],y.prototype,`mediaElement`,void 0),e([a({readOnly:!0})],y.prototype,`type`,void 0),e([a({constructOnly:!0})],y.prototype,`view`,void 0),y=e([o(`esri.views.2d.interactive.editingTools.ControlPointsTransformTool`)],y);export{y as ControlPointsTransformTool};
2
+ import{__decorate as e}from"tslib";import t from"../../../../Color.js";import n from"../../../../Graphic.js";import{destroyMaybe as r}from"../../../../core/maybe.js";import{watch as i}from"../../../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{project as s,initializeProjection as c}from"../../../../geometry/projectionUtils.js";import{isValid as l}from"../../../../geometry/support/spatialReferenceUtils.js";import u from"../../../../layers/GraphicsLayer.js";import d from"../../../../symbols/CIMSymbol.js";import{applyCIMSymbolColor as f}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as p}from"./manipulations/DragManipulation.js";import{InteractiveToolBase as m}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as h,mediaKeys as g}from"../../../interactive/keybindings.js";import{EditGeometryOperations as _}from"../../../interactive/editGeometry/EditGeometryOperations.js";const v=new t(`#009af2`);let y=class extends m{constructor(e){super(e),this._isOpacityToggled=!1,this._factor=1,this._initialControlPoints=null,this._graphicsLayer=new u({internal:!0,listMode:`hide`,visible:!1,effect:`drop-shadow(0px, 0px, 3px)`,title:`ControlPointsTransformationTool layer`}),this._undoStack=[],this._redoStack=[],this._sharedUndoStack=[],this._sharedRedoStack=[],this._highlightHandle=null,this.activeHandle=0,this.editSourcePoints=!1,this.type=`reshape`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._controlPointManipulations.forEach(e=>e.destroy()),this._controlPointEditGeometryOperations.forEach(e=>e.destroy()),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=r(this._graphicsLayer),this._georeference=null,this._controlPointGraphics=null,this._controlPointManipulations=null,this._graphicsLayer=null,this._controlPointEditGeometryOperations=null,this._undoStack=null,this._redoStack=null,this._initialControlPoints=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _hasValidSpatialReference(){return l(this.view.spatialReference)}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){let e=this._undoStack[this._undoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canUndo}canRedo(){let e=this._redoStack[this._redoStack.length-1];return e!=null&&this._controlPointEditGeometryOperations[e].canRedo}undo(){if(this._undoStack.length>0){let e=this._undoStack.pop();this._controlPointEditGeometryOperations[e].undo(),this.updateGraphics(),this._redoStack.push(e)}}redo(){if(this._redoStack.length>0){let e=this._redoStack.pop();this._controlPointEditGeometryOperations[e].redo(),this.updateGraphics(),this._undoStack.push(e)}}refresh(){let{mediaElement:e}=this;if(e.georeference==null)return;let t=e.georeference;t.type===`control-points`&&t.coords!=null&&(this._georeference=t,this._georeference.controlPoints.forEach(({mapPoint:e},t)=>{let n=this._controlPointEditGeometryOperations[t],r=n.data.parts[0].vertices[0];n.setVertexPosition(r,n.data.coordinateHelper.pointToVector(e)),this._controlPointGraphics[t].geometry=n.data.geometry}))}reset(){this._georeference.controlPoints=this._initialControlPoints,this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){let e=this._georeference,t=e.controlPoints,n=t[0].mapPoint.spatialReference,r=this._hasValidSpatialReference;this._georeference.controlPoints=this._controlPointEditGeometryOperations.map((i,a)=>{let o=i.data.geometry;return this._controlPointGraphics[a].geometry=o,{mapPoint:s(o,n),sourcePoint:r&&!this.editSourcePoints?t[a].sourcePoint:e.toSource(o)}})}updateActiveHandle(e){if(this.activeHandle===e)return;let t=this._controlPointGraphics[this.activeHandle].symbol.clone();f(t,this.view.effectiveTheme.accentColor),this._controlPointGraphics[this.activeHandle].symbol=t;let n=this._controlPointGraphics[e].symbol.clone();f(n,v),this._controlPointGraphics[e].symbol=n,this.activeHandle=e,this.view.surface===document.activeElement&&this.highlightActiveHandle()}async highlightActiveHandle(){this.removeHighlightActiveHandle();let e=await this.view.whenLayerView(this._graphicsLayer);this._highlightHandle=e.highlight(this._controlPointGraphics[this.activeHandle])}removeHighlightActiveHandle(){this._highlightHandle&&this._highlightHandle.remove()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}async _initialize(){let{view:e,mediaElement:t}=this;if(t.georeference==null)return;let r=t.georeference;if(r.type!==`control-points`||r.coords==null)return;this._georeference=r,this._initialControlPoints=this._georeference.controlPoints,e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._controlPointEditGeometryOperations=this._georeference.controlPoints.map(({mapPoint:t})=>_.fromGeometry(s(t,e.spatialReference),2)),this._controlPointGraphics=this._controlPointEditGeometryOperations.map((e,t)=>new n({symbol:new d({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,colorLocked:!0,anchorPoint:{x:0,y:-15.75},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:9,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:84.3,ymax:84.3},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[83.2,32.5],[84.3,40.7],[83.8,48.9],[81.7,56.9],[78.1,64.3],[73,70.9],[66.9,76.4],[59.7,80.5],[51.9,83.2],[43.7,84.3],[35.4,83.8],[27.4,81.7],[20,78],[13.4,73],[7.9,66.8],[3.8,59.7],[1.1,51.9],[0,43.7],[.5,35.4],[2.6,27.4],[6.3,20],[11.3,13.4],[17.5,7.9],[24.7,3.8],[32.5,1.1],[39.8,.1],[47.1,.3],[54.3,1.8],[61.1,4.5],[67.4,8.4],[72.9,13.3],[77.4,19.1],[80.9,25.5],[83.2,32.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:[255,255,255,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[84.3,0],[84.3,84.3],[0,84.3],[0,0]]]}},rotation:0},{type:`CIMVectorMarker`,enable:!0,anchorPoint:{x:0,y:-11.25},anchorPointUnits:`Absolute`,dominantSizeAxis3D:`Y`,size:22.5,billboardMode3D:`FaceNearPlane`,frame:{xmin:0,ymin:0,xmax:197.7,ymax:294.7},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[[[98.9,0],[119.4,23.2],[139.4,49.3],[156.8,75.2],[171.2,100.8],[182.4,125.3],[190.6,148.8],[195.7,171.4],[197.7,192.9],[197.7,195.8],[197.7,200.3],[197.6,202.5],[197.5,204.8],[197.3,207.1],[197,209.4],[196.7,211.7],[196.4,214.1],[196,216.4],[195.5,218.7],[195,221.1],[194.4,223.4],[193.7,225.8],[193,228.1],[192.2,230.5],[191.4,232.8],[190.5,235.1],[189.5,237.5],[188.5,239.7],[187.4,242],[186.2,244.3],[185,246.5],[183.7,248.7],[182.4,250.9],[181,253.1],[179.5,255.2],[178,257.3],[176.4,259.4],[174.7,261.4],[173.1,263.3],[171.3,265.3],[169.5,267.2],[167.7,269],[165.8,270.8],[163.9,272.5],[161.9,274.2],[159.9,275.8],[157.8,277.4],[155.7,278.9],[153.6,280.4],[151.4,281.7],[149.2,283.1],[147,284.4],[144.8,285.6],[142.5,286.7],[140.3,287.8],[138,288.8],[135.7,289.8],[133.4,290.7],[131,291.5],[128.7,292.3],[126.4,293],[124,293.6],[121.7,294.2],[119.4,294.7],[117,295.2],[114.7,295.6],[112.4,296],[110.1,296.3],[107.8,296.5],[105.5,296.7],[103.3,296.8],[101.1,296.9],[98.8,296.9],[83.1,295.7],[67.8,292],[53.3,285.9],[39.9,277.5],[28.1,267.2],[18,255.1],[10,241.5],[4.2,226.9],[.9,211.5],[0,195.8],[.1,192.9],[2.1,171.4],[7.2,148.8],[15.4,125.3],[26.6,100.8],[41,75.2],[58.4,49.3],[78.4,23.2],[98.9,0]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t===this.activeHandle?v.toArray():this.view.effectiveTheme.accentColor.toArray()}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:`CIMClippingPath`,clippingType:`Intersect`,path:{rings:[[[0,0],[197.7,0],[197.7,294.7],[0,294.7],[0,0]]]}},rotation:0}],haloSize:1,scaleX:1,angleAlignment:`Display`,angle:0}}}),geometry:e.data.geometry})),this._graphicsLayer.graphics.addMany([...this._controlPointGraphics]),this._controlPointManipulations=this._controlPointGraphics.map(t=>new p({tool:this,view:e,graphic:t})),this.addHandles([...this._controlPointManipulations.map((e,t)=>e.createDragPipeline(this._getInfo.bind(this,t),(e,n)=>{e.action===`start`&&(this._undoStack.push(t),this._redoStack=[],this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0),this.updateGraphics()})),i(()=>this.view.scale,()=>this.active?this.updateGraphics():null)]),this._controlPointManipulations.forEach((e,t)=>{e.forEachManipulator(e=>{this.addHandles([e.events.on([`click`,`grab-changed`],e=>this.updateActiveHandle(t))])})});let a=new h;a.add(g.toggleOpacity,()=>{e.activeTool===this&&(t.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),a.addToggle(g.factorModifier,t=>{e.activeTool===this&&(this._factor=t.type===`key-down`?10:1)}),a.add(g.moveUp,()=>{e.activeTool===this&&this._move(0,this._factor)}),a.add(g.moveDown,()=>{e.activeTool===this&&this._move(0,-this._factor)}),a.add(g.moveLeft,()=>{e.activeTool===this&&this._move(-this._factor,0)}),a.add(g.moveRight,()=>{e.activeTool===this&&this._move(this._factor,0)}),this.addHandles([a.register(e)])}async _loadProjectionEngine(){let e=this._georeference.controlPoints[0].mapPoint;return c(e.spatialReference,this.view.spatialReference)}_getInfo(e){return{editGeometryOperations:this._controlPointEditGeometryOperations[e],constraints:this._hasValidSpatialReference?null:{xmin:0,ymin:0,xmax:this._georeference.width,ymax:this._georeference.height}}}_move(e,t){let n=this._controlPointEditGeometryOperations[this.activeHandle].move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}};e([a()],y.prototype,`_hasValidSpatialReference`,null),e([a()],y.prototype,`activeHandle`,void 0),e([a()],y.prototype,`editSourcePoints`,void 0),e([a({constructOnly:!0,nonNullable:!0})],y.prototype,`mediaElement`,void 0),e([a({readOnly:!0})],y.prototype,`type`,void 0),e([a({constructOnly:!0})],y.prototype,`view`,void 0),y=e([o(`esri.views.2d.interactive.editingTools.ControlPointsTransformTool`)],y);export{y as ControlPointsTransformTool};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../../Graphic.js";import{getContrast as n}from"../../../../core/colorUtils.js";import{rad2deg as r}from"../../../../core/mathUtils.js";import{destroyMaybe as i}from"../../../../core/maybe.js";import{watch as a,initial as o,sync as s}from"../../../../core/reactiveUtils.js";import{px2pt as c}from"../../../../core/screenUtils.js";import{getMetersPerUnitForSR as l}from"../../../../core/units.js";import{property as u,subclass as d}from"../../../../core/accessorSupport/decorators.js";import{subtract as f,normalize as p}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as m,UNIT_X as h}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as g,length as _,add as v,normalize as y,lerp as b,subtract as x}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as S}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import C from"../../../../geometry/Point.js";import w from"../../../../geometry/Polygon.js";import T from"../../../../geometry/Polyline.js";import{project as E,initializeProjection as D}from"../../../../geometry/projectionUtils.js";import{create as O,copy as k}from"../../../../geometry/support/boundedPlane.js";import{equals as A}from"../../../../geometry/support/spatialReferenceUtils.js";import j from"../../../../layers/GraphicsLayer.js";import M from"../../../../symbols/CIMSymbol.js";import N from"../../../../symbols/SimpleFillSymbol.js";import P from"../../../../symbols/SimpleLineSymbol.js";import F from"../../../../symbols/SimpleMarkerSymbol.js";import{getCIMSymbolRotation as I,applyCIMSymbolRotation as L}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as R}from"./manipulations/DragManipulation.js";import{RotateManipulation as z}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as B}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as V,SnapRotation as H}from"./manipulations/utils.js";import{InteractiveToolBase as U}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as W,mediaKeys as G}from"../../../interactive/keybindings.js";import{EditGeometry as K}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as q}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as J}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as Y}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as X}from"../../../support/screenUtils.js";const Z=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]];let Q=class extends U{constructor(e){super(e),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._planeCache=O(),this._displayPlaneCache=O(),this._mainAxisCache=m(),this._rotationHandleCache=S(),this._cornerA=S(),this._cornerB=S(),this._cornerC=S(),this._cornerD=S(),this._avgAB=S(),this._avgBC=S(),this._avgCD=S(),this._avgDA=S(),this._preserveAspectRatio=new V,this._snapRotation=new H,this._graphicsLayer=new j({internal:!0,listMode:`hide`,visible:!1,title:`TransformTool layer`}),this._sharedUndoStack=[],this._sharedRedoStack=[],this._isOpacityToggled=!1,this._factor=1,this.preserveAspectRatio=null,this.snapRotation=null,this.type=`transform`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._dragManipulation.destroy(),this._rotateManipulation.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=i(this._graphicsLayer),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _backgroundGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new w({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _displayPlane(){let e=this._plane;if(!e)return null;let t=this._displayPlaneCache;k(e,t);let n=10*this.view.resolution;return g(t.basis1,t.basis1,1+n/_(t.basis1)),g(t.basis2,t.basis2,1+n/_(t.basis2)),t}get _plane(){let e=this._graphic.geometry;if(e==null)return null;let t=this._editGeometryOperations.data,n=t.parts[0].segments[0],r=f(this._mainAxisCache,n.leftVertex.pos,n.rightVertex.pos);p(r,r);let i=80*this.view.resolution,a=this.view.spatialReference;return A(a,e.spatialReference)&&(i*=l(a)/l(e.spatialReference)),J(r,t,i,this._planeCache)}get _rotateConnectorGeometry(){let e=this._displayPlane;if(!e)return null;let t=v(this._rotationHandleCache,e.origin,e.basis1),n=8*this.view.resolution/_(e.basis1);return new T({spatialReference:this.view.spatialReference,paths:[[[t[0],t[1]],[t[0]+e.basis1[0]*n,t[1]+e.basis1[1]*n]]]})}get _rotateGraphicGeometry(){let e=this._plane;if(!e)return null;let t=this._rotationHandleCache;return y(t,e.basis1),g(t,t,30*this.view.resolution),v(t,t,e.origin),v(t,t,e.basis1),new C({x:t[0],y:t[1],spatialReference:this.view.spatialReference})}get _scaleGraphicGeometries(){let e=this._displayPlane;if(!e)return[];let t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);let{_cornerA:n,_cornerB:r,_cornerC:i,_cornerD:a}=this,o=b(this._avgAB,n,r,.5),s=b(this._avgBC,r,i,.5),c=b(this._avgCD,i,a,.5),l=b(this._avgDA,a,n,.5);return[new C({x:n[0],y:n[1],spatialReference:t}),new C({x:r[0],y:r[1],spatialReference:t}),new C({x:i[0],y:i[1],spatialReference:t}),new C({x:a[0],y:a[1],spatialReference:t}),new C({x:o[0],y:o[1],spatialReference:t}),new C({x:s[0],y:s[1],spatialReference:t}),new C({x:c[0],y:c[1],spatialReference:t}),new C({x:l[0],y:l[1],spatialReference:t})]}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){let{view:e,target:t}=this,n=`georeference`in t?t.georeference.coords:t.geometry,r=this._editGeometryOperations,i=r.data.parts[0].vertices,a=K.fromGeometry(E(n,e.spatialReference),2).parts[0].vertices;i.forEach((e,t)=>{r.setVertexPosition(e,a[t].pos)}),this.updateGraphics()}reset(){let{target:e}=this;if(`georeference`in e){let t=e.georeference;t.type===`control-points`&&(t.controlPoints=this._initialControlPoints)}else e.geometry=this._initialGeometry;this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){let e=this._editGeometryOperations.data.geometry;if(`georeference`in this.target){let t=this.target.georeference;t.coords=e}this._graphic.geometry=e,this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateConnectorGraphic.geometry=this._rotateConnectorGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry,this._scaleGraphicGeometries.forEach((e,t)=>{this._scaleGraphics[t].geometry=e}),this._updateSymbolAngles()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}async _initialize(){let{view:e,target:r}=this;if(`georeference`in r){let e=r.georeference;this._graphic=new t({geometry:e.coords}),this._initialControlPoints=e.type===`control-points`?e.controlPoints:null}else this._graphic=r,this._initialGeometry=r.geometry;e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=q.fromGeometry(E(this._graphic.geometry,e.spatialReference),2),this._backgroundGraphic=new t({geometry:this._backgroundGraphicGeometry}),this._rotateConnectorGraphic=new t({geometry:this._rotateConnectorGeometry}),this._rotateGraphic=new t({geometry:this._rotateGraphicGeometry}),this._scaleGraphics=this._scaleGraphicGeometries.map(e=>new t({geometry:e})),this.addHandles(a(()=>e.effectiveTheme.accentColor,e=>{let t=new P({color:e,width:1});this._backgroundGraphic.symbol=new N({color:`transparent`,outline:{type:`simple-line`,color:e,width:2}}),this._rotateConnectorGraphic.symbol=t,this._rotateGraphic.symbol=$(e),this._scaleGraphics.forEach(r=>{r.symbol=new F({size:6,style:`square`,color:n(e),outline:t})}),this._updateSymbolAngles()},o)),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,this._rotateConnectorGraphic,this._rotateGraphic,...this._scaleGraphics]),this._dragManipulation=new R({tool:this,view:e,graphic:this._graphic}),this._rotateManipulation=new z({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation}),this._scaleManipulations=this._scaleGraphics.map((t,n)=>new B({tool:this,view:e,graphic:t,direction:Z[n],preserveAspectRatio:this._preserveAspectRatio})),this.addHandles([this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this))),a(()=>this.view.scale,()=>this.active?this.updateGraphics():null),a(()=>e.rotation,()=>this._updateSymbolAngles(),s),e.on(`click`,async t=>{if(e.activeTool!=null&&e.activeTool!==this)return;let n=X(t),i=[];e.map.allLayers.forEach(e=>{(e.type===`vector-tile`||e.type===`imagery`)&&i.push(e)});let a=await this.view.hitTest(n,{exclude:i}),o=a.results;if(o.length===0)e.activeTool=null;else{let t=Y(a.results),n=`georeference`in r,i=o.map(e=>e.type===`media`?e.element:null).filter(Boolean),s=new Set([...this._graphicsLayer.graphics,n?null:r].filter(Boolean));n&&i.includes(r)||t!=null&&s.has(t.graphic)?e.activeTool??=this:e.activeTool=null}})]);let i=e=>{this.addHandles(e.events.on(`grab-changed`,e=>{`georeference`in r&&(e.action===`start`?r.opacity*=.5:e.action===`end`&&(r.opacity*=2))}))};this._dragManipulation.forEachManipulator(i),this._rotateManipulation.forEachManipulator(i),this._scaleManipulations.forEach(e=>e.forEachManipulator(i));let c=new W;c.addToggle(G.preserveAspectRatio,()=>{this.preserveAspectRatio??(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),c.addToggle(G.rotateIncrements,()=>{this.snapRotation??(this._snapRotation.enabled=!this._snapRotation.enabled)}),c.add(G.toggleOpacity,()=>{`georeference`in r&&(r.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),c.addToggle(G.factorModifier,e=>this._factor=e.type===`key-down`?10:1),c.add(G.scaleUp,()=>this._scale(this._factor)),c.add(G.scaleDown,()=>this._scale(-this._factor)),c.add(G.moveUp,()=>this._move(0,this._factor)),c.add(G.moveDown,()=>this._move(0,-this._factor)),c.add(G.moveLeft,()=>this._move(-this._factor,0)),c.add(G.moveRight,()=>this._move(this._factor,0)),this.addHandles([e.on(`key-down`,t=>{e.activeTool===this&&c.dispatch(e.inputManager,t)}),e.on(`key-up`,t=>{e.activeTool===this&&c.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){let e=this._graphic.geometry;return D(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){let{basis1:t,basis2:n,origin:r}=e,i=this._cornerA;v(i,r,t),v(i,i,n);let a=this._cornerB;v(a,r,t),x(a,a,n);let o=this._cornerC;x(o,r,t),x(o,o,n);let s=this._cornerD;x(s,r,t),v(s,s,n)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane}}_updateGraphics(e,t){e.action===`start`&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){let t=this._editGeometryOperations,n=t.data.geometry.extent?.width,r=(n+e*this.view.resolution)/n,i=t.scale(this._plane.origin,h,r,r,0,1);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){let n=this._editGeometryOperations.move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}_updateSymbolAngles(){let e=this._plane;if(!e)return;let t=r(Math.atan2(e.basis1[1],e.basis1[0]))+90,n=this._rotateGraphic.symbol;if(n?.type===`cim`&&I(n)!==t){let e=n.clone();L(e,t),this._rotateGraphic.symbol=e}this._scaleGraphics.forEach(e=>{let n=e.symbol;n?.type===`simple-marker`&&(n.angle=this.view.rotation-t)})}};e([u()],Q.prototype,`_backgroundGraphicGeometry`,null),e([u()],Q.prototype,`_plane`,null),e([u()],Q.prototype,`_rotateConnectorGeometry`,null),e([u()],Q.prototype,`_rotateGraphicGeometry`,null),e([u()],Q.prototype,`_scaleGraphicGeometries`,null),e([u()],Q.prototype,`preserveAspectRatio`,void 0),e([u()],Q.prototype,`snapRotation`,void 0),e([u({constructOnly:!0,nonNullable:!0})],Q.prototype,`target`,void 0),e([u({readOnly:!0})],Q.prototype,`type`,void 0),e([u({constructOnly:!0})],Q.prototype,`view`,void 0),Q=e([d(`esri.views.2d.interactive.editingTools.TransformTool`)],Q);function $(e){let t=n(e).toArray(),r=Array.from({length:48},(e,t)=>{let n=-t*Math.PI/24;return[12*Math.cos(n),12*Math.sin(n)]});r.push(r[0]);let i=Array.from({length:25},(e,t)=>{let n=(t/24*1.5+.75)*Math.PI;return[6.5*Math.cos(n),6.5*Math.sin(n)]});return new M({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,angleAlignment:`Map`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:c(24),anchorPoint:{x:0,y:0},frame:{xmin:-12,ymin:-12,xmax:12,ymax:12},scaleSymbolsProportionally:!0,respectFrame:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[r]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:e.toArray()}]}},{type:`CIMMarkerGraphic`,geometry:{paths:[i]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:2,capStyle:`Round`,color:t}]}},{type:`CIMMarkerGraphic`,geometry:{rings:[[[1.5,7.5],[7.5,7.5],[1.5,1.5],[1.5,7.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t}]}}]}]}}})}export{Q as TransformTool};
2
+ import{__decorate as e}from"tslib";import t from"../../../../Graphic.js";import{getContrast as n}from"../../../../core/colorUtils.js";import{rad2deg as r}from"../../../../core/mathUtils.js";import{destroyMaybe as i}from"../../../../core/maybe.js";import{watch as a,initial as o,sync as s}from"../../../../core/reactiveUtils.js";import{px2pt as c}from"../../../../core/screenUtils.js";import{getMetersPerUnitForSR as l}from"../../../../core/units.js";import{property as u,subclass as d}from"../../../../core/accessorSupport/decorators.js";import{subtract as ee,normalize as f}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as p,fromValues as m,UNIT_X as h}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as g,length as _,dot as v,squaredLength as y,set as b,copy as x,normalize as te,lerp as S,add as C,subtract as w}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as T,fromValues as E}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import D from"../../../../geometry/Point.js";import O from"../../../../geometry/Polygon.js";import k from"../../../../geometry/Polyline.js";import{project as A,initializeProjection as j}from"../../../../geometry/projectionUtils.js";import{create as M,copy as N}from"../../../../geometry/support/boundedPlane.js";import{equals as P}from"../../../../geometry/support/spatialReferenceUtils.js";import F from"../../../../layers/GraphicsLayer.js";import I from"../../../../symbols/CIMSymbol.js";import L from"../../../../symbols/SimpleFillSymbol.js";import R from"../../../../symbols/SimpleLineSymbol.js";import z from"../../../../symbols/SimpleMarkerSymbol.js";import{getCIMSymbolRotation as B,applyCIMSymbolRotation as V}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as H}from"./manipulations/DragManipulation.js";import{RotateManipulation as U}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as W}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as G,SnapRotation as K,onGrabChangedHandle as q}from"./manipulations/utils.js";import{InteractiveToolBase as J}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as Y,mediaKeys as X}from"../../../interactive/keybindings.js";import{EditGeometry as Z}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as Q}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as ne}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as re}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as ie}from"../../../support/screenUtils.js";const ae=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]];let $=class extends J{constructor(e){super(e),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._planeCache=M(),this._displayPlaneCache=M(),this._mainAxisCache=p(),this._rotationHandleCache=T(),this._cornerA=T(),this._cornerB=T(),this._cornerC=T(),this._cornerD=T(),this._avgAB=T(),this._avgBC=T(),this._avgCD=T(),this._avgDA=T(),this._preserveAspectRatio=new G,this._snapRotation=new K,this._graphicsLayer=new F({internal:!0,listMode:`hide`,visible:!1,title:`TransformTool layer`}),this._targetGeometryChanged=!1,this._sharedUndoStack=[],this._sharedRedoStack=[],this._isOpacityToggled=!1,this._factor=1,this.preserveAspectRatio=null,this.scaleFromAnchor=!1,this.snapRotation=null,this.type=`transform`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._dragManipulation.destroy(),this._anchorManipulation.destroy(),this._rotateManipulation.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=i(this._graphicsLayer),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._anchorVertex=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _backgroundGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new O({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _displayPlane(){let e=this._plane;if(!e)return null;let t=this._displayPlaneCache;N(e,t);let n=10*this.view.resolution;return g(t.basis1,t.basis1,1+n/_(t.basis1)),g(t.basis2,t.basis2,1+n/_(t.basis2)),t}get _plane(){let e=this._graphic.geometry;if(e==null)return null;let t=this._editGeometryOperations.data,n=t.parts[0].segments[0],r=ee(this._mainAxisCache,n.leftVertex.pos,n.rightVertex.pos);f(r,r);let i=80*this.view.resolution,a=this.view.spatialReference;return P(a,e.spatialReference)&&(i*=l(a)/l(e.spatialReference)),ne(r,t,i,this._planeCache)}get _rotateConnectorGeometry(){let e=this._rotateGraphicGeometry;if(!e)return null;let t=this._rotationHandleDirection,n=20*this.view.resolution,r=12*this.view.resolution;return new k({spatialReference:this.view.spatialReference,paths:[[[e.x-t[0]*n,e.y-t[1]*n],[e.x-t[0]*r,e.y-t[1]*r]]]})}get _rotateGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this._rotationHandleDirection,n=1/Math.max(Math.abs(v(t,e.basis1))/y(e.basis1),Math.abs(v(t,e.basis2))/y(e.basis2))+20*this.view.resolution;return new D({x:e.origin[0]+t[0]*n,y:e.origin[1]+t[1]*n,spatialReference:this.view.spatialReference})}get _rotationHandleDirection(){let e=this._plane,t=this.anchor,n=b(this._rotationHandleCache,e.origin[0]-t.x,e.origin[1]-t.y,0);return _(n)<=this.view.resolution*1e-6&&x(n,e.basis1),te(n,n)}get _scaleGraphicGeometries(){let e=this._displayPlane;if(!e)return[];let t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);let{_cornerA:n,_cornerB:r,_cornerC:i,_cornerD:a}=this,o=S(this._avgAB,n,r,.5),s=S(this._avgBC,r,i,.5),c=S(this._avgCD,i,a,.5),l=S(this._avgDA,a,n,.5);return[new D({x:n[0],y:n[1],spatialReference:t}),new D({x:r[0],y:r[1],spatialReference:t}),new D({x:i[0],y:i[1],spatialReference:t}),new D({x:a[0],y:a[1],spatialReference:t}),new D({x:o[0],y:o[1],spatialReference:t}),new D({x:s[0],y:s[1],spatialReference:t}),new D({x:c[0],y:c[1],spatialReference:t}),new D({x:l[0],y:l[1],spatialReference:t})]}get anchor(){return this._anchorGraphic.geometry}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){let{view:e,target:t}=this,n=`georeference`in t?t.georeference.coords:t.geometry,r=this._editGeometryOperations,i=r.data.parts[0].vertices,a=Z.fromGeometry(A(n,e.spatialReference),2).parts[0].vertices;i.forEach((e,t)=>{r.setVertexPosition(e,a[t].pos)}),this._targetGeometryChanged=!1,`georeference`in t&&(this._graphic.geometry=r.data.geometry),this.updateGraphics()}reset(){let{target:e}=this;if(`georeference`in e){let t=e.georeference;t.type===`control-points`&&(t.controlPoints=this._initialControlPoints)}else e.geometry=this._initialGeometry;this.refresh(),this.resetAnchor(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}resetAnchor(){let e=this._plane.origin,t=this._anchorVertex.pos;if(e[0]===t[0]&&e[1]===t[1])return;let n=this._editGeometryOperations.moveVertices([this._anchorVertex],e[0]-t[0],e[1]-t[1],0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}updateGraphics(){if(this._targetGeometryChanged){let e=this._editGeometryOperations.data.geometry;if(`georeference`in this.target){let t=this.target.georeference;t.coords=e}this._graphic.geometry=e,this._targetGeometryChanged=!1}let e=this._anchorVertex.pos;this._anchorGraphic.geometry=new D({x:e[0],y:e[1],spatialReference:this.view.spatialReference}),this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateConnectorGraphic.geometry=this._rotateConnectorGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry,this._scaleGraphicGeometries.forEach((e,t)=>{this._scaleGraphics[t].geometry=e}),this._updateSymbolAngles()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}async _initialize(){let{view:e,target:r}=this;if(`georeference`in r){let e=r.georeference;this._graphic=new t({geometry:e.coords}),this._initialControlPoints=e.type===`control-points`?e.controlPoints:null}else this._graphic=r,this._initialGeometry=r.geometry;e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=Q.fromGeometry(A(this._graphic.geometry,e.spatialReference),2);let i=this._plane.origin,c=Z.fromGeometry(new D({x:i[0],y:i[1],z:0,spatialReference:e.spatialReference}),2);this._anchorVertex=c.parts[0].vertices[0],this.addHandles(this._editGeometryOperations.on(`vertex-update`,({vertices:e})=>{e.some(e=>e!==this._anchorVertex)&&(this._targetGeometryChanged=!0)})),this._backgroundGraphic=new t({geometry:this._backgroundGraphicGeometry}),this._anchorGraphic=new t({geometry:c.geometry}),this._rotateConnectorGraphic=new t({geometry:this._rotateConnectorGeometry}),this._rotateGraphic=new t({geometry:this._rotateGraphicGeometry}),this._scaleGraphics=this._scaleGraphicGeometries.map(e=>new t({geometry:e})),this.addHandles(a(()=>e.effectiveTheme.accentColor,e=>{let t=new R({color:e,width:1});this._backgroundGraphic.symbol=new L({color:`transparent`,outline:{type:`simple-line`,color:e,width:2}}),this._rotateConnectorGraphic.symbol=t,this._rotateGraphic.symbol=se(e),this._anchorGraphic.symbol=oe(e),this._scaleGraphics.forEach(r=>{r.symbol=new z({size:6,style:`square`,color:n(e),outline:t})}),this._updateSymbolAngles()},o)),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,this._rotateConnectorGraphic,this._rotateGraphic,...this._scaleGraphics,this._anchorGraphic]),this._anchorManipulation=new H({tool:this,view:e,graphic:this._anchorGraphic}),this._anchorManipulation.forEachManipulator(e=>{e.cursor=`grab`,this.addHandles([e.events.on(`grab-changed`,t=>q(t,e)),e.events.on(`immediate-double-click`,e=>{e.stopPropagation(),this.resetAnchor()})])}),this._dragManipulation=new H({tool:this,view:e,graphic:this._graphic}),this._rotateManipulation=new U({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation}),this._scaleManipulations=this._scaleGraphics.map((t,n)=>new W({tool:this,view:e,graphic:t,direction:ae[n],preserveAspectRatio:this._preserveAspectRatio})),this.addHandles([this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),this._anchorManipulation.createDragPipeline(()=>({editGeometryOperations:this._editGeometryOperations,vertices:[this._anchorVertex]}),this._updateGraphics.bind(this)),this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this))),a(()=>this.view.scale,()=>this.active?this.updateGraphics():null),a(()=>e.rotation,()=>this._updateSymbolAngles(),s),e.on(`click`,async t=>{if(e.activeTool!=null&&e.activeTool!==this)return;let n=ie(t),i=[];e.map.allLayers.forEach(e=>{(e.type===`vector-tile`||e.type===`imagery`)&&i.push(e)});let a=await this.view.hitTest(n,{exclude:i}),o=a.results;if(o.length===0)e.activeTool=null;else{let t=re(a.results),n=`georeference`in r,i=o.map(e=>e.type===`media`?e.element:null).filter(Boolean),s=new Set([...this._graphicsLayer.graphics,n?null:r].filter(Boolean));n&&i.includes(r)||t!=null&&s.has(t.graphic)?e.activeTool??=this:e.activeTool=null}})]);let l=e=>{this.addHandles(e.events.on(`grab-changed`,e=>{`georeference`in r&&(e.action===`start`?r.opacity*=.5:e.action===`end`&&(r.opacity*=2))}))};this._dragManipulation.forEachManipulator(l),this._rotateManipulation.forEachManipulator(l),this._scaleManipulations.forEach(e=>e.forEachManipulator(l));let u=new Y;u.addToggle(X.preserveAspectRatio,()=>{this.preserveAspectRatio??(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),u.addToggle(X.rotateIncrements,()=>{this.snapRotation??(this._snapRotation.enabled=!this._snapRotation.enabled)}),u.add(X.toggleOpacity,()=>{`georeference`in r&&(r.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),u.addToggle(X.factorModifier,e=>this._factor=e.type===`key-down`?10:1),u.add(X.scaleUp,()=>this._scale(this._factor)),u.add(X.scaleDown,()=>this._scale(-this._factor)),u.add(X.moveUp,()=>this._move(0,this._factor)),u.add(X.moveDown,()=>this._move(0,-this._factor)),u.add(X.moveLeft,()=>this._move(-this._factor,0)),u.add(X.moveRight,()=>this._move(this._factor,0)),this.addHandles([e.on(`key-down`,t=>{e.activeTool===this&&u.dispatch(e.inputManager,t)}),e.on(`key-up`,t=>{e.activeTool===this&&u.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){let e=this._graphic.geometry;return j(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){let{basis1:t,basis2:n,origin:r}=e,i=this._cornerA;C(i,r,t),C(i,i,n);let a=this._cornerB;C(a,r,t),w(a,a,n);let o=this._cornerC;w(o,r,t),w(o,o,n);let s=this._cornerD;w(s,r,t),C(s,s,n)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane,origin:E(this._anchorVertex.pos[0],this._anchorVertex.pos[1],0),vertices:[...this._editGeometryOperations.data.allVerticesUnordered,this._anchorVertex],scaleFromAnchor:this.scaleFromAnchor}}_updateGraphics(e,t){e.action===`start`&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){let t=this._editGeometryOperations,n=t.data.geometry.extent?.width,r=(n+e*this.view.resolution)/n,i=t.scaleVertices([...t.data.allVerticesUnordered,this._anchorVertex],m(this._anchorVertex.pos[0],this._anchorVertex.pos[1]),h,r,r,0,1);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){let n=this._editGeometryOperations,r=n.moveVertices([...n.data.allVerticesUnordered,this._anchorVertex],e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:r}),this._sharedRedoStack.length=0,this.updateGraphics()}_updateSymbolAngles(){let e=this._plane;if(!e)return;let t=this._rotationHandleDirection,n=r(Math.atan2(t[1],t[0]))+90,i=this._rotateGraphic.symbol;if(i?.type===`cim`&&B(i)!==n){let e=i.clone();V(e,n),this._rotateGraphic.symbol=e}let a=r(Math.atan2(e.basis1[1],e.basis1[0]))+90;this._scaleGraphics.forEach(e=>{let t=e.symbol;t?.type===`simple-marker`&&(t.angle=this.view.rotation-a)})}};e([u()],$.prototype,`_backgroundGraphicGeometry`,null),e([u()],$.prototype,`_plane`,null),e([u()],$.prototype,`_rotateConnectorGeometry`,null),e([u()],$.prototype,`_rotateGraphicGeometry`,null),e([u()],$.prototype,`_scaleGraphicGeometries`,null),e([u()],$.prototype,`anchor`,null),e([u()],$.prototype,`preserveAspectRatio`,void 0),e([u()],$.prototype,`scaleFromAnchor`,void 0),e([u()],$.prototype,`snapRotation`,void 0),e([u({constructOnly:!0,nonNullable:!0})],$.prototype,`target`,void 0),e([u({readOnly:!0})],$.prototype,`type`,void 0),e([u({constructOnly:!0})],$.prototype,`view`,void 0),$=e([d(`esri.views.2d.interactive.editingTools.TransformTool`)],$);function oe(e){let t=Array.from({length:33},(e,t)=>{let n=t*Math.PI/16;return[5*Math.cos(n),5*Math.sin(n)]});return new I({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:c(18),anchorPoint:{x:0,y:0},frame:{xmin:-9,ymin:-9,xmax:9,ymax:9},respectFrame:!0,scaleSymbolsProportionally:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{paths:[[[-8,0],[8,0]],[[0,-8],[0,8]],t]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:1.5,color:e.toArray()},{type:`CIMSolidStroke`,enable:!0,width:3,color:n(e).toArray()}]}}]}]}}})}function se(e){let t=n(e).toArray(),r=Array.from({length:48},(e,t)=>{let n=-t*Math.PI/24;return[12*Math.cos(n),12*Math.sin(n)]});r.push(r[0]);let i=Array.from({length:25},(e,t)=>{let n=(t/24*1.5+.75)*Math.PI;return[6.5*Math.cos(n),6.5*Math.sin(n)]});return new I({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,angleAlignment:`Map`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:c(24),anchorPoint:{x:0,y:0},frame:{xmin:-12,ymin:-12,xmax:12,ymax:12},scaleSymbolsProportionally:!0,respectFrame:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[r]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:e.toArray()}]}},{type:`CIMMarkerGraphic`,geometry:{paths:[i]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:2,capStyle:`Round`,color:t}]}},{type:`CIMMarkerGraphic`,geometry:{rings:[[[1.5,7.5],[7.5,7.5],[1.5,1.5],[1.5,7.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t}]}}]}]}}})}export{$ as TransformTool};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{Manipulation as e}from"./Manipulation.js";import{createManipulatorDragEventPipeline as t,screenToMap as n}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as r}from"../../../../interactive/GraphicManipulator.js";import{getSymbolInfo as i}from"../../../../interactive/support/utils.js";class a extends e{constructor(e){super(),this._view=e.view,this._tool=e.tool,this._graphic=e.graphic,this._manipulator=this._createManipulator(),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._manipulator=null,this._graphic=null}forEachManipulator(e){e(this._manipulator,0)}createDragPipeline(e,r){let a=null,o=null,s=0,c=0,l=0,{offsetX:u,offsetY:d,size:f}=i(this._graphic.symbol);return t(this._manipulator,(t,i)=>{i.next(t=>{if(t.action===`start`){let t=e();a=t.editGeometryOperations,o=t.constraints}return t}).next(n(this._view)).next(e=>{let{x:t,y:n,z:i}=e.mapEnd;if(o&&(t+u<o.xmin||n+d-f<o.ymin||t+u>o.xmax||n+d-f>o.ymax))return e;(e.action===`start`||s===0&&c===0&&l===0)&&(s=e.mapStart.x,c=e.mapStart.y,l=e.mapStart.z);let p=t-s,m=n-c,h=i-l;s=t,c=n,l=i;let g=e.action===`start`?0:1;return r(e,a.move(p,m,h,g)),e})})}_createManipulator(){let e=this._view,t=this._graphic;return new r({view:e,graphic:t,selectable:!0,cursor:`move`})}}export{a as DragManipulation};
2
+ import{Manipulation as e}from"./Manipulation.js";import{createManipulatorDragEventPipeline as t,screenToMap as n}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as r}from"../../../../interactive/GraphicManipulator.js";import{getSymbolInfo as i}from"../../../../interactive/support/utils.js";class a extends e{constructor(e){super(),this._view=e.view,this._tool=e.tool,this._graphic=e.graphic,this._manipulator=this._createManipulator(),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._manipulator=null,this._graphic=null}forEachManipulator(e){e(this._manipulator,0)}createDragPipeline(e,r){let a=null,o=null,s=null,c=0,l=0,u=0,{offsetX:d,offsetY:f,size:p}=i(this._graphic.symbol);return t(this._manipulator,(t,i)=>{i.next(t=>{if(t.action===`start`){let t=e();a=t.editGeometryOperations,o=t.vertices??a.data.allVerticesUnordered,s=t.constraints}return t}).next(n(this._view)).next(e=>{let{x:t,y:n,z:i}=e.mapEnd;if(s&&(t+d<s.xmin||n+f-p<s.ymin||t+d>s.xmax||n+f-p>s.ymax))return e;(e.action===`start`||c===0&&l===0&&u===0)&&(c=e.mapStart.x,l=e.mapStart.y,u=e.mapStart.z);let m=t-c,h=n-l,g=i-u;c=t,l=n,u=i;let _=e.action===`start`?0:1;return r(e,a.moveVertices(o,m,h,g,_)),e})})}_createManipulator(){let e=this._view,t=this._graphic;return new r({view:e,graphic:t,selectable:!0,cursor:`move`})}}export{a as DragManipulation};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import e from"../../../../../core/Handles.js";import{copy as t}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as n}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{Manipulation as r}from"./Manipulation.js";import{onGrabChangedHandle as i}from"./utils.js";import{getRotationAngle as a}from"../../../../draw/support/drawUtils.js";import{createManipulatorDragEventPipeline as o,screenToMap as s}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as c}from"../../../../interactive/GraphicManipulator.js";import{apply as l}from"../../../../interactive/editGeometry/support/editPlaneUtils.js";class u extends r{constructor(t){super(),this._handles=new e,this._originCache=n(),this._view=t.view,this._tool=t.tool,this._graphic=t.graphic,this._snapRotation=t.snapRotation,this._manipulator=this._createManipulator(),this._handles.add([this._manipulator.events.on(`grab-changed`,e=>i(e,this._manipulator))]),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._handles.destroy(),this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._manipulator=null,this._snapRotation=null,this._graphic=null,this._handles=null,this._originCache=null}forEachManipulator(e){e(this._manipulator,2)}createDragPipeline(e,n){let r=null,i=null;return o(this._manipulator,(o,c)=>{c.next(t=>{if(t.action===`start`){o.cursor=`grabbing`;let t=e();r=t.plane,i=t.editGeometryOperations}return t}).next(s(this._view)).next(e=>({...e,rotateAngle:a(e.mapStart,e.mapEnd,{x:r.origin[0],y:r.origin[1]},!0)})).next(this._snapRotation.createDragEventPipelineStep(),this._snapRotation.next).next(e=>{let a=t(this._originCache,r.origin),o=e.action===`start`?0:1,s=i.rotate(a,e.rotateAngle,o,1);return l(s,r),n(e,s),e}).next(e=>(e.action===`end`&&(o.cursor=`grab`),e))})}_createManipulator(){let e=this._view,t=this._graphic;return new c({view:e,graphic:t,selectable:!0,cursor:`grab`})}}export{u as RotateManipulation};
2
+ import e from"../../../../../core/Handles.js";import{copy as t,rotateZ as n}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as r,clone as i}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as a,copy as o}from"../../../../../geometry/support/boundedPlane.js";import{Manipulation as s}from"./Manipulation.js";import{onGrabChangedHandle as c}from"./utils.js";import{getRotationAngle as l}from"../../../../draw/support/drawUtils.js";import{createManipulatorDragEventPipeline as u,screenToMap as d}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as f}from"../../../../interactive/GraphicManipulator.js";import{apply as p}from"../../../../interactive/editGeometry/support/editPlaneUtils.js";class m extends s{constructor(t){super(),this._handles=new e,this._originCache=r(),this._planeStart=a(),this._view=t.view,this._tool=t.tool,this._graphic=t.graphic,this._snapRotation=t.snapRotation,this._manipulator=this._createManipulator(),this._handles.add([this._manipulator.events.on(`grab-changed`,e=>c(e,this._manipulator))]),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._handles.destroy(),this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._manipulator=null,this._snapRotation=null,this._graphic=null,this._handles=null,this._originCache=null,this._planeStart=null}forEachManipulator(e){e(this._manipulator,2)}createDragPipeline(e,r){let a=null,s=null,c=null,f=this._originCache,m=this._planeStart;return u(this._manipulator,(u,h)=>{h.next(n=>{if(n.action===`start`){u.cursor=`grabbing`;let n=e();a=n.plane,s=n.editGeometryOperations,c=n.vertices,t(f,n.origin),o(a,m)}return n}).next(d(this._view)).next(e=>({...e,rotateAngle:l(e.mapStart,e.mapEnd,{x:f[0],y:f[1]},!0)})).next(this._snapRotation.createDragEventPipelineStep(),this._snapRotation.next).next(e=>{let t=e.action===`start`?0:1,l=s.rotateVertices(c,i(f),e.rotateAngle,t,1);return o(m,a),n(a.origin,a.origin,f,e.rotateAngle),p(l,a),r(e,l),e}).next(e=>(e.action===`end`&&(u.cursor=`grab`),e))})}_createManipulator(){let e=this._view,t=this._graphic;return new f({view:e,graphic:t,selectable:!0,cursor:`grab`})}}export{m as RotateManipulation};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import e from"../../../../../core/Handles.js";import{set as t,normalize as n}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{copy as i,scaleAndAdd as a,subtract as o,length as s,dot as c}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as l}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as u,copy as d}from"../../../../../geometry/support/boundedPlane.js";import{getClosestDenormalizedXToReference as f}from"../../../../../geometry/support/normalizeUtils.js";import{getInfo as p}from"../../../../../geometry/support/spatialReferenceUtils.js";import{Manipulation as m}from"./Manipulation.js";import{onGrabChangedHandle as h}from"./utils.js";import{createManipulatorDragEventPipeline as g,screenToMap as _}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as v}from"../../../../interactive/GraphicManipulator.js";import{apply as y}from"../../../../interactive/editGeometry/support/editPlaneUtils.js";const b=1e-6;function x(e){let t=s(e.basis1),n=s(e.basis2);return .3*Math.min(t,n)}class S extends m{constructor(t){super(),this._handles=new e,this._planeStart=u(),this._displayPlaneStart=u(),this._originCache=l(),this._axisCache=r(),this._renderStartCache=l(),this._renderEndCache=l(),this._resizeOriginCache=l(),this._view=t.view,this._tool=t.tool,this._graphic=t.graphic,this._direction=t.direction,this._preserveAspectRatio=t.preserveAspectRatio,this._manipulator=this._createManipulator(),this._handles.add([this._manipulator.events.on(`grab-changed`,e=>h(e,this._manipulator))]),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._handles.destroy(),this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._graphic=null,this._manipulator=null,this._direction=null,this._handles=null,this._planeStart=null,this._displayPlaneStart=null,this._originCache=null,this._axisCache=null,this._renderStartCache=null,this._renderEndCache=null,this._resizeOriginCache=null,this._preserveAspectRatio=null}forEachManipulator(e){e(this._manipulator,1)}createDragPipeline(e,r){let l=null,u=null,m=null,h=0,v=null,S=null,C=0,w=this._planeStart,T=this._displayPlaneStart,E=this._direction;return g(this._manipulator,(g,D)=>{D.next(t=>{if(t.action===`start`){g.cursor=`grabbing`;let t=e();l=t.plane,u=t.displayPlane,m=t.editGeometryOperations,h=10*this._view.resolution,d(l,w),d(u,T);let n=p(m.data.spatialReference);v=n?n.valid[1]-n.valid[0]-30*this._view.resolution:null}return t}).next(_(this._view)).next(e=>{if(e.action===`start`){let t=T.origin[0]+E[0]*T.basis1[0]+E[1]*T.basis2[0],n=m.data.spatialReference;C=f(e.mapStart.x,t,n)-e.mapStart.x}let t=i(this._renderStartCache,[e.mapStart.x+C,e.mapStart.y,0]),n=i(this._renderEndCache,[e.mapEnd.x+C,e.mapEnd.y,0]),r=i(this._resizeOriginCache,T.origin);a(r,r,T.basis1,-E[0]),a(r,r,T.basis2,-E[1]),o(n,n,r),o(t,t,r);let l=E[0]!==0&&E[1]!==0,d=x(T),p=x(u)/d,g=(e,r)=>{if(e===0)return 1;let i=s(r),a=.5*e*c(r,n)/i,o=a<0?-1:1;if(l){let n=i-.5*e*c(r,t)/i;a+=n*o*p}let u=i<h*1.5?1:b;return i=Math.max(i-h,b),o>0&&(a-=10*this._view.resolution),o*Math.max(a/i*o,u)},_=g(E[0],T.basis1),v=g(E[1],T.basis2);return{...e,direction:E,factor1:_,factor2:v}}).next(this._preserveAspectRatio.createDragEventPipelineStep(),this._preserveAspectRatio.next).next(e=>{let o=i(this._originCache,w.origin);a(o,o,w.basis1,-E[0]),a(o,o,w.basis2,-E[1]);let s=t(this._axisCache,w.basis1[0],w.basis1[1]);n(s,s);let c=m.data.allVerticesUnordered,u=e.action===`start`?0:1,f=m.scaleVertices(c,o,s,e.factor1,e.factor2,u,1);return v&&v<m.data.geometry.extent.width&&S?m.updateVertices(c,S):(d(w,l),y(f,l),S=f.operation,r(e,f)),e}).next(e=>(e.action===`end`&&(g.cursor=`grab`),e))})}_createManipulator(){return new v({view:this._view,graphic:this._graphic,selectable:!0,cursor:`grab`})}}export{S as ScaleManipulation,x as calculateDiagonalResizeHandleScale};
2
+ import e from"../../../../../core/Handles.js";import{set as t,normalize as n}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r,clone as i}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{copy as a,scaleAndAdd as o,subtract as s,length as c,dot as l}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as u,clone as d}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as f,copy as p}from"../../../../../geometry/support/boundedPlane.js";import{getClosestDenormalizedXToReference as m}from"../../../../../geometry/support/normalizeUtils.js";import{getInfo as h}from"../../../../../geometry/support/spatialReferenceUtils.js";import{Manipulation as g}from"./Manipulation.js";import{onGrabChangedHandle as _}from"./utils.js";import{createManipulatorDragEventPipeline as v,screenToMap as y}from"../../../../interactive/dragEventPipeline.js";import{GraphicManipulator as b}from"../../../../interactive/GraphicManipulator.js";import{apply as x}from"../../../../interactive/editGeometry/support/editPlaneUtils.js";const S=1e-6;function C(e){let t=c(e.basis1),n=c(e.basis2);return .3*Math.min(t,n)}class w extends g{constructor(t){super(),this._handles=new e,this._planeStart=f(),this._displayPlaneStart=f(),this._originCache=u(),this._axisCache=r(),this._renderStartCache=u(),this._renderEndCache=u(),this._resizeOriginCache=u(),this._view=t.view,this._tool=t.tool,this._graphic=t.graphic,this._direction=t.direction,this._preserveAspectRatio=t.preserveAspectRatio,this._manipulator=this._createManipulator(),this._handles.add([this._manipulator.events.on(`grab-changed`,e=>_(e,this._manipulator))]),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._handles.destroy(),this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()}),this._tool=null,this._view=null,this._graphic=null,this._manipulator=null,this._direction=null,this._handles=null,this._planeStart=null,this._displayPlaneStart=null,this._originCache=null,this._axisCache=null,this._renderStartCache=null,this._renderEndCache=null,this._resizeOriginCache=null,this._preserveAspectRatio=null}forEachManipulator(e){e(this._manipulator,1)}createDragPipeline(e,r){let u=null,f=null,g=null,_=null,b=!1,w=0,T=null,E=null,D=0,O=this._planeStart,k=this._displayPlaneStart,A=this._direction;return v(this._manipulator,(v,j)=>{j.next(t=>{if(t.action===`start`){v.cursor=`grabbing`;let t=e();u=t.plane,f=t.displayPlane,g=t.editGeometryOperations,_=t.vertices,b=t.scaleFromAnchor,a(this._originCache,t.origin),w=10*this._view.resolution,p(u,O),p(f,k);let n=h(g.data.spatialReference);T=n?n.valid[1]-n.valid[0]-30*this._view.resolution:null}return t}).next(y(this._view)).next(e=>{if(e.action===`start`){let t=k.origin[0]+A[0]*k.basis1[0]+A[1]*k.basis2[0],n=g.data.spatialReference;D=m(e.mapStart.x,t,n)-e.mapStart.x}let t=a(this._renderStartCache,[e.mapStart.x+D,e.mapStart.y,0]),n=a(this._renderEndCache,[e.mapEnd.x+D,e.mapEnd.y,0]),r=a(this._resizeOriginCache,b?this._originCache:k.origin);b||(o(r,r,k.basis1,-A[0]),o(r,r,k.basis2,-A[1])),s(n,n,r),s(t,t,r);let i=A[0]!==0&&A[1]!==0,u=C(k),d=C(f)/u,p=[A[0],A[1]],h=(e,a)=>{let o=A[e];if(o===0)return 1;if(b){let i=c(a),s=((O.origin[0]-r[0])*a[0]+(O.origin[1]-r[1])*a[1])/i+o*Math.max(i-w,0);if(Math.abs(s)<S)return p[e]=0,1;let l=1+((n[0]-t[0])*a[0]+(n[1]-t[1])*a[1])/i/s,u=l<0?-1:1;u<0&&(l+=2*o*w/s);let d=i<w*1.5?1:S;return u*Math.max(u*l,d)}let s=c(a),u=.5*o*l(a,n)/s,f=u<0?-1:1;if(i){let e=s-.5*o*l(a,t)/s;u+=e*f*d}let m=s<w*1.5?1:S;return s=Math.max(s-w,S),f>0&&(u-=10*this._view.resolution),f*Math.max(u/s*f,m)},_=h(0,k.basis1),v=h(1,k.basis2);return{...e,direction:p,factor1:_,factor2:v}}).next(this._preserveAspectRatio.createDragEventPipelineStep(),this._preserveAspectRatio.next).next(e=>{let s=this._originCache;b||(a(s,O.origin),o(s,s,O.basis1,-A[0]),o(s,s,O.basis2,-A[1]));let c=t(this._axisCache,O.basis1[0],O.basis1[1]);n(c,c);let l=e.action===`start`?0:1,f=g.scaleVertices(_,d(s),i(c),e.factor1,e.factor2,l,1);return T&&T<g.data.geometry.extent.width&&E?g.updateVertices(_,E):(p(O,u),x(f,u),E=f.operation,r(e,f)),e}).next(e=>(e.action===`end`&&(v.cursor=`grab`),e))})}_createManipulator(){return new b({view:this._view,graphic:this._graphic,selectable:!0,cursor:`grab`})}}export{w as ScaleManipulation,C as calculateDiagonalResizeHandleScale};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{rad2deg as e,deg2rad as t}from"../../../../../core/mathUtils.js";import{EventPipeline as n}from"../../../../interactive/dragEventPipeline.js";function r(e,t){t.cursor=e.action===`start`?`grabbing`:`grab`}class i{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustScaleFactors(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustScaleFactors(e),e)}_adjustScaleFactors(e){let t=e.direction[0]!==0&&e.direction[1]!==0?Math.max(Math.abs(e.factor1),Math.abs(e.factor2)):e.direction[0]===0?Math.abs(e.factor2):Math.abs(e.factor1);e.factor1=e.factor1<0?-t:t,e.factor2=e.factor2<0?-t:t}}class a{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustRotateAngle(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustRotateAngle(e),e)}_adjustRotateAngle(n){let r=e(n.rotateAngle);n.rotateAngle=t(Math.round(r/5)*5)}}export{i as PreserveAspectRatio,a as SnapRotation,r as onGrabChangedHandle};
2
+ import{rad2deg as e,deg2rad as t}from"../../../../../core/mathUtils.js";import{EventPipeline as n}from"../../../../interactive/dragEventPipeline.js";function r(e,t){t.cursor=e.action===`start`?`grabbing`:`grab`}class i{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustScaleFactors(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,this.next=new n,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustScaleFactors(e),e)}_adjustScaleFactors(e){let t=e.direction[0]!==0&&e.direction[1]!==0?Math.max(Math.abs(e.factor1),Math.abs(e.factor2)):e.direction[0]===0?Math.abs(e.factor2):Math.abs(e.factor1);e.factor1=e.factor1<0?-t:t,e.factor2=e.factor2<0?-t:t}}class a{constructor(){this._lastDragEvent=null,this.next=new n,this._enabled=!1}get enabled(){return this._enabled}set enabled(e){if(this._enabled!==e&&this._lastDragEvent!=null){let t={...this._lastDragEvent,action:`update`};e&&this._adjustRotateAngle(t),this.next.execute(t)}this._enabled=e}createDragEventPipelineStep(){return this._lastDragEvent=null,this.next=new n,e=>(this._lastDragEvent=e.action===`end`?null:{...e},this._enabled&&this._adjustRotateAngle(e),e)}_adjustRotateAngle(n){let r=e(n.rotateAngle);n.rotateAngle=t(Math.round(r/5)*5)}}export{i as PreserveAspectRatio,a as SnapRotation,r as onGrabChangedHandle};
@@ -0,0 +1,4 @@
1
+ import type Accessor from "../../core/Accessor.js";
2
+
3
+ /** @internal */
4
+ export abstract class GraphicManipulator extends Accessor {}