// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"jimu/dijit/CoordinateControl":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang jimu/utils dojo/on dojo/has dojo/query dojo/dom-attr dojo/dom-class dojo/dom-style dojo/string dojo/topic dojo/keys dojo/Deferred dojo/Evented dojo/dom dojo/dom-construct dojo/aspect jimu/BaseWidget dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/registry dijit/Tooltip dijit/TooltipDialog dijit/popup dojo/text!./templates/CoordinateControl.html esri/geometry/webMercatorUtils esri/graphic esri/geometry/Point esri/request esri/SpatialReference esri/tasks/GeometryService esri/tasks/ProjectParameters esri/toolbars/draw jimu/dijit/Message ./_CoordinateControlFormatNotation ./_CoordinateControlConfirmNotation dojo/_base/sniff dijit/form/TextBox dijit/form/Textarea dijit/form/Select dijit/InlineEditBox".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c,p,a,r,w,k,d,e,n,q,m,x,y,E,I,J,O,Q,T,X,Y,W,U,ha,pa,ca){return L([e,n,q,r],{templateString:I,baseClass:"jimu-coordinate-control",parentWidget:null,input:!0,label:null,showCopyButton:!1,showFormatButton:!1,zoomScale:null,showDeleteButton:!0,showExpandButton:!0,showDrawPoint:!0,drawButtonLabel:null,drawToolTip:null,graphicsLayer:null,type:"DD",inputFromText:!0,addSign:!1,hasCustomLabel:!1,postMixInProperties:function(){this.nls=window.jimuNls.coordinateControl;this.isRenderIdForAttrs=
!0},constructor:function(h){L.safeMixin(this,h);this.uid=h.id||m.getUniqueId("cc");null===this.parentWidget&&console.error("No parentWidget parameter supplied: Parameter is mandatory");null===this.label&&console.info("No label parameter supplied (optional): Coordinate Control will have no label");null===this.zoomScale&&console.info("No zoomScale parameter supplied (optional): Coordinate Control will have no zoom button");null===this.drawButtonLabel&&console.info("No drawButtonLabel parameter supplied (optional): Coordinate Control will have no draw button");
null===this.graphicsLayer&&console.info("No graphicsLayer parameter supplied: Input graphics will not be shown on map")},postCreate:function(){this._frmtdlg=new y({id:this.uid+"_formatCoordinateTooltip",content:new pa({nls:this.nls,ct:this.type}),style:"width: 400px",onClose:t.hitch(this,this.popupDidClose)});d.after(this._frmtdlg,"onShow",t.hitch(this,function(){this._frmtdlg.content.frmtSelect.focus()}));d.after(this._frmtdlg,"onClose",t.hitch(this,function(){this.formatButton.focus()}));this.own(b(this._frmtdlg,
"keydown",t.hitch(this,function(h){h.keyCode===p.ESCAPE&&E.close(this._frmtdlg)})));"DartTheme"===this.parentWidget.appConfig.theme.name&&B.add(this._frmtdlg.domNode,"coordinateControlDialog");this.defaultFormat&&(this._frmtdlg.content.formats[this.type].defaultFormat=this.defaultFormat);this.geomsrvc=new Y(this.parentWidget.appConfig.geometryService);this.dt=new U(this.parentWidget.map);this.initUI();this.setUIListeners()},initUI:function(){null===this.label?this.setHidden(this.coordNameContainer,
!1):this.coordName.setValue(this.label);this.input?(this.zoomButton.parentNode.style.display="none",this.setHidden(this.expandButton,!0),this.setHidden(this.removeControlBtn,!0),this.coordName.set("disabled","disabled"),this.coordName.set("value",this.label+" ("+this._frmtdlg.content.ct+")"),this.showDrawPoint?(this.drawPointButton.title=this.drawButtonLabel,null===this.drawToolTip&&(this.drawToolTip=this.nls.tooltip)):this.setHidden(this.drawPointButton,!0)):(this.coordtext.disabled=!0,this.coordtext.placeholder=
"",this.setHidden(this.drawPointButton,!0),this.showExpandButton||(this.setHidden(this.expandButton,!0),B.remove(this.domNode,"coordinateContainer"),B.add(this.domNode,"outputCoordinateContainer"),B.add(this.cpbtn,"outputCopyBtn"),this.coordtext.readOnly=!0),this.showDeleteButton||this.setHidden(this.removeControlBtn,!0));this.showCopyButton||(this.setHidden(this.cpbtn,!0),B.add(this.cpbtn,"inputCopyBtn"),v.set(this.cpbtn,"title",this.nls.copyAll));this.showFormatButton||this.setHidden(this.formatButton,
!0);null===this.zoomScale&&this.setHidden(this.zoomButton,!0);this.formatButton.title=this.input?this.nls.formatInput:this.nls.formatOutput;v.set(this.formatButton,"aria-label",this.formatButton.title)},setUIListeners:function(){this.input||c.subscribe("INPUTPOINTDIDCHANGE",t.hitch(this,this.mapWasClicked));c.subscribe("INPUTERROR",t.hitch(this,this.inputError));c.subscribe("VALIDINPUT",t.hitch(this,function(h){this.toggleZoomButton(h)}));this.own(b(this.expandButton,"click",t.hitch(this,this.expandButtonWasClicked)));
this.own(b(this.expandButton,"keydown",t.hitch(this,function(h){if(h.keyCode===p.ENTER||h.keyCode===p.SPACE)this.expandButtonWasClicked(h),h.preventDefault()})));this.own(b(this.zoomButton,"click",t.hitch(this,this.zoomButtonWasClicked)));this.own(b(this.zoomButton,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.zoomButtonWasClicked(h)})));this.own(b(this.coordName,"change",t.hitch(this,this.coordNameDidChange)));this.cpbtn.addEventListener("click",t.hitch(this,this.cpBtnWasClicked));
this.own(b(this.cpbtn,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.cpBtnWasClicked(h)})));this.subVal1CpBtn.addEventListener("click",t.hitch(this,this.cpSubBtnWasClicked));this.own(b(this.subVal1CpBtn,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.cpSubBtnWasClicked(h)})));this.subVal2CpBtn.addEventListener("click",t.hitch(this,this.cpSubBtnWasClicked));this.own(b(this.subVal2CpBtn,"keydown",t.hitch(this,function(h){h.keyCode!==
p.ENTER&&h.keyCode!==p.SPACE||this.cpSubBtnWasClicked(h)})));this.subVal3CpBtn.addEventListener("click",t.hitch(this,this.cpSubBtnWasClicked));this.own(b(this.subVal3CpBtn,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.cpSubBtnWasClicked(h)})));this.subVal4CpBtn.addEventListener("click",t.hitch(this,this.cpSubBtnWasClicked));this.own(b(this.subVal4CpBtn,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.cpSubBtnWasClicked(h)})));this.own(b(this.formatButton,
"click",t.hitch(this,this.formatButtonWasClicked)));this.own(b(this.formatButton,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.formatButtonWasClicked(h)})));this.own(b(this.drawPointButton,"click",t.hitch(this,this.drawPointButtonWasClicked)));this.own(b(this.drawPointButton,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.drawPointButtonWasClicked(h)})));this.own(b(this.removeControlBtn,"keydown",t.hitch(this,function(h){h.keyCode!==
p.ENTER&&h.keyCode!==p.SPACE||this.remove()})));this.own(b(this._frmtdlg.content.applyButton,"click",t.hitch(this,this.formatDialogApplyButtonClicked)));this.own(b(this._frmtdlg.content.applyButton,"keydown",t.hitch(this,function(h){h.keyCode!==p.ENTER&&h.keyCode!==p.SPACE||this.formatDialogApplyButtonClicked()})));this.own(b(this._frmtdlg.content.cancelButton,"click",t.hitch(this,function(){E.close(this._frmtdlg)})));this.own(b(this._frmtdlg.content.cancelButton,"keydown",t.hitch(this,function(h){h.keyCode!==
p.ENTER&&h.keyCode!==p.SPACE||E.close(this._frmtdlg)})));this.own(b(this.coordtext,"keydown",t.hitch(this,this.coordTextInputKeyWasPressed)));this.own(b(this.coordtext,"input",t.hitch(this,function(){this.currentClickPointDD=null;this.zoomButton.parentNode&&(this.zoomButton.parentNode.style.display="none");this.emit("coordinates-deleted",{})})));this.own(this.geomsrvc.on("error",t.hitch(this,this.geomSrvcDidFail)));this.own(b(this.dt,"draw-complete",t.hitch(this,this.drawComplete)));this.own(d.after(this.parentWidget,
"onClose",t.hitch(this,function(){this.input&&B.contains(this.drawPointButton,"drawPointBtn-active")&&this.deactivateDrawTool();this._frmtdlg&&this._frmtdlg.domNode.offsetParent&&"closed"===this.parentWidget.state&&E.close(this._frmtdlg)})));this.own(d.after(this.parentWidget,"onOpen",t.hitch(this,function(){var h=this.parentWidget.getParent().getParent().domNode;this.own(b(h,"click",t.hitch(this,function(F){"settingBtn"!==F.target.className&&this._frmtdlg&&this._frmtdlg.domNode.offsetParent&&"active"===
this.parentWidget.state&&E.close(this._frmtdlg)})))})))},formatDialogApplyButtonClicked:function(){this.type=this._frmtdlg.content.ct;this.updateDisplay();this.input?this.coordName.set("value",this.label+" ("+this._frmtdlg.content.ct+")"):this.hasCustomLabel&&this.coordName.set("value",this.label);E.close(this._frmtdlg)},popupDidClose:function(){if(this._frmtdlg.content.isCanceled)this.addSign!==this._frmtdlg.content.addSignChkBox.checked&&this._frmtdlg.content.addSignChkBox.setValue(this.addSign);
else{this.addSign=this._frmtdlg.content.addSignChkBox.checked;var h=this._frmtdlg.content.ct;this.type!==h&&(this.type=h,this.updateDisplay())}},coordNameDidChange:function(){this.hasCustomLabel=!0},cpSubBtnWasClicked:function(h){this[h.currentTarget.id.split("~")[0]].select();try{var F=document.execCommand("copy")}catch(G){F=!1}this.showToolTip(h.currentTarget.id,F?this.nls.copySuccessful:this.nls.copyFailed)},cpBtnWasClicked:function(h){h.preventDefault();if(this.input){h=m.toArray().filter(function(D){return"jimu-coordinate-control"===
D.baseClass&&!D.input});var F=h.map(function(D){if(D.coordtext)return D.coordtext.value}).join("\r\n");h=this.coordtext.value;this.coordtext.value=h+"\r\n"+F;this.selectText(this.coordtext);try{var G=document.execCommand("copy")}catch(D){G=!1}this.coordtext.value=h}else{this.selectText(this.coordtext);try{G=document.execCommand("copy")}catch(D){G=!1}}this.showToolTip(this.cpbtn.id,G?this.nls.copySuccessful:this.nls.copyFailed)},selectText:function(h){var F=document.getSelection();F.removeAllRanges();
h.focus();var G=/Edge/.test(navigator.userAgent),D=!!window.MSInputMethodContext&&!!document.documentMode;if(g("ff")||g("chrome")||g("safari"))!this.input&&this.coordtext.disabled?(this.coordtext.disabled=!1,h.select(),this.coordtext.disabled=!0):h.select();G&&h.select();D&&(G=document.createRange(),G.selectNode(h),F.addRange(G))},showToolTip:function(h,F){var G=w.byId(h);x.show(F,G);setTimeout(function(){x.hide(G)},1E3)},geomSrvcDidComplete:function(h){0>=h[0].length?(new ha({message:this.nls.parseCoordinatesError}),
c.publish("INPUTERROR")):(this.currentClickPointDD=this.currentClickPoint=new Q(h[0][0],h[0][1],new X({wkid:4326})),this.input&&(this.currentClickPoint.spatialReference.equals(this.parentWidget.map.spatialReference)?this.parentWidget.map.centerAt(this.currentClickPoint):this.getProjectedPoint(this.currentClickPoint).then(t.hitch(this,function(F){this.currentClickPoint=F;this.parentWidget.map.centerAt(this.currentClickPoint)}),t.hitch(this,function(F){console.error(F);c.publish("INPUTERROR")})),this.updateDisplay(),
c.publish("INPUTPOINTDIDCHANGE",{mapPoint:this.currentClickPointDD,inputFromText:!0}),c.publish("VALIDINPUT",{show:!0})))},geomSrvcDidFail:function(){new ha({message:this.nls.parseCoordinatesError});c.publish("INPUTERROR")},coordTextInputKeyWasPressed:function(h){if(h.keyCode===p.ENTER){h.preventDefault();var F=this.getCleanInput(h.currentTarget.value);this.inputFromText=!1;this.getCoordinateType(F).then(t.hitch(this,function(G){if(G)if(1===G.length){var D=this.processCoordTextInput(F,G[0],!1);this.getXYNotation(D,
G[0].conversionType).then(t.hitch(this,function(V){0<V[0].length?this.geomSrvcDidComplete(V):this.geomSrvcDidFail()}))}else this.confirmNotationDialog||(this.confirmNotationDialog=new ca({title:this.nls.comfirmInputNotation,nls:this.nls,options:G,style:"width: 400px",hasSkipCheckBox:!1,theme:this.parentWidget.appConfig.theme.name})),this.confirmNotationDialog.show().then(t.hitch(this,function(){var V=f.filter(G,function(da){return da.name===this.confirmNotationDialog.comboOptions.get("value")},this),
Z=this.processCoordTextInput(F,V[0],!1);this.getXYNotation(Z,V[0].conversionType).then(t.hitch(this,function(da){0<da[0].length?this.geomSrvcDidComplete(da):this.geomSrvcDidFail()}))},function(){}));else new ha({message:this.nls.parseCoordinatesError}),c.publish("INPUTERROR")}));v.set(this.coordtext,"value",F);this.emit("get-coordinate-complete",F);this.currentClickPoint=null}if(h.keyCode===p.BACKSPACE||h.keyCode===p.DELETE)this.currentClickPointDD=null,this.zoomButton&&this.zoomButton.parentNode&&
(this.zoomButton.parentNode.style.display="none"),this.emit("coordinates-deleted",{})},getFormattedCoordinateText:function(){return this.coordtext.value},getCurrentMapCoordinate:function(){return this.currentClickPoint},getMapCoordinateDD:function(){return this.currentClickPointDD},deactivateDrawTool:function(){this.dt.deactivate();B.remove(this.drawPointButton,"drawPointBtn-active")},processCoordTextInput:function(h,F,G){var D=F.pattern.exec(h),V=!1,Z=F.name;switch(F.name){case "DD":var da=D[2];
var aa=D[7];var ba=D[10];var ja=D[16];var la=D[3].replace(/[,:]/,".");var ia=D[11].replace(/[,:]/,".");Z="DD";break;case "DDrev":da=D[11];aa=D[16];ba=D[2];ja=D[8];la=D[12].replace(/[,:]/,".");ia=D[3].replace(/[,:]/,".");Z="DD";break;case "DDM":da=D[2];aa=D[7];ba=D[10];ja=D[15];la=D[3];var sa=D[4].replace(/[,:]/,".");ia=D[11];var fa=D[12].replace(/[,:]/,".");Z="DDM";break;case "DDMrev":da=D[10];aa=D[15];ba=D[2];ja=D[7];la=D[11];sa=D[12].replace(/[,:]/,".");ia=D[3];fa=D[4].replace(/[,:]/,".");Z="DDM";
break;case "DMS":da=D[2];aa=D[8];ba=D[11];ja=D[17];la=D[3];sa=D[4];var P=D[5].replace(/[,:]/,".");ia=D[12];fa=D[13];var ma=D[14].replace(/[,:]/,".");Z="DMS";break;case "DMSrev":da=D[11],aa=D[17],ba=D[2],ja=D[8],la=D[12],sa=D[13],P=D[14].replace(/[,:]/,"."),ia=D[3],fa=D[4],ma=D[5].replace(/[,:]/,"."),Z="DMS"}da&&aa?(V=!0,da=(new RegExp(/[Ss-]/)).test(da)?"-":"+"):da=da&&(new RegExp(/[Ss-]/)).test(da)?"-":aa&&(new RegExp(/[Ss-]/)).test(aa)?"-":"+";ba&&ja?(V=!0,ba=(new RegExp(/[Ww-]/)).test(ba)?"-":
"+"):ba=ba&&(new RegExp(/[Ww-]/)).test(ba)?"-":ja&&(new RegExp(/[Ww-]/)).test(ja)?"-":"+";V&&(G||new ha({message:this.nls.latLongWarningMessage}));switch(Z){case "DD":h=da+la+","+ba+ia;break;case "DDM":h=da+la+" "+sa+","+ba+ia+" "+fa;break;case "DMS":h=da+la+" "+sa+" "+P+","+ba+ia+" "+fa+" "+ma}return h},zoomButtonWasClicked:function(){this.currentClickPoint&&(this.parentWidget.map.getZoom()<this.zoomScale?this.parentWidget.map.centerAt(this.currentClickPoint).then(t.hitch(this,function(){this.parentWidget.map.setScale(this.zoomScale)})):
this.parentWidget.map.centerAt(this.currentClickPoint))},setHidden:function(h,F){A.set(h,"display","none");F&&k.destroy(h.parentNode)},setVisible:function(h){A.set(h,"display","inline-flex")},remove:function(){this._frmtdlg&&this._frmtdlg.domNode.offsetParent&&E.close(this._frmtdlg);this.destroyRecursive();this.emit("removeCoordsControl")},mapWasClicked:function(h){this.currentClickPoint=h.mapPoint;this.getDDPoint(h.mapPoint).then(t.hitch(this,function(F){this.currentClickPointDDDD=this.currentClickPointDD=
F;this.inputFromText=h.inputFromText?!0:!1;this.updateDisplay()}),t.hitch(this,function(F){console.error(F)}))},getDDPoint:function(h){var F=new a,G=new X(3857);J.canProject(h,G)?F.resolve(J.webMercatorToGeographic(J.project(h,G))):(G={url:this.geomsrvc.url+"/findTransformations",content:{f:"json",inSR:JSON.stringify(h.spatialReference.toJson()),outSR:4326,extentOfInterest:JSON.stringify(this.parentWidget.map.extent)},handleAs:"json",callbackParamName:"callback"},(new T(G,{usePost:!1})).then(t.hitch(this,
function(D){D=(D=D&&D.transformations?D.transformations:void 0)&&0<D.length?D[0].wkid:void 0;var V=new W;V.outSR=new X(4326);V.geometries=[h];V.transformForward=!0;V.transformation=D;this.geomsrvc.project(V,t.hitch(this,function(Z){F.resolve(Z[0])}),function(Z){F.reject(Z)})}),t.hitch(this,function(D){F.reject(D)})));return F},getProjectedPoint:function(h){var F=new a;if(J.canProject(h,this.parentWidget.map))F.resolve(J.geographicToWebMercator(h));else{var G={url:this.geomsrvc.url+"/findTransformations",
content:{f:"json",inSR:4326,outSR:JSON.stringify(this.parentWidget.map.spatialReference.toJson()),extentOfInterest:JSON.stringify(this.parentWidget.map.extent)},handleAs:"json",callbackParamName:"callback"};(new T(G,{usePost:!1})).then(t.hitch(this,function(D){D=(D=D&&D.transformations?D.transformations:void 0)&&0<D.length?D[0].geoTransforms[0].wkid:void 0;var V=new W;V.outSR=new X(this.parentWidget.map.spatialReference);V.geometries=[h];V.transformForward=!0;V.transformation=D;this.geomsrvc.project(V,
t.hitch(this,function(Z){F.resolve(Z[0])}),function(Z){F.reject(Z)})}),t.hitch(this,function(D){F.reject(D)}))}return F},expandButtonWasClicked:function(){B.toggle(this.coordcontrols,"expanded");B.contains(this.coordcontrols,"expanded")?(B.remove(this.expandButton,"expandBtn"),B.add(this.expandButton,"collapseBtn"),v.set(this.expandButton,"aria-expanded","true")):(B.remove(this.expandButton,"collapseBtn"),B.add(this.expandButton,"expandBtn"),v.set(this.expandButton,"aria-expanded","false"));this.setSubCoordUI(B.contains(this.coordcontrols,
"expanded"));this._setCoordControlsTabindex(B.contains(this.coordcontrols,"expanded"));this.emit("expandButtonClicked",B.contains(this.coordcontrols,"expanded"))},_setCoordControlsTabindex:function(h){var F=[];if(h){var G=0;h=-1}else G=-1,h=0;F=l("input[tabindex\x3d'"+h+"']",this.coordcontrols);F=F.concat(l("span[tabindex\x3d'"+h+"']",this.coordcontrols));f.forEach(F,t.hitch(this,function(D){v.set(D,"tabindex",G)}))},formatButtonWasClicked:function(){this._frmtdlg.content.setCt(this.type);E.open({popup:this._frmtdlg,
around:this.formatButton})},drawPointButtonWasClicked:function(){if(B.contains(this.drawPointButton,"drawPointBtn-active"))this.dt.deactivate(),this.parentWidget.map.enableMapNavigation();else{this.parentWidget.map.disableMapNavigation();this.dt.activate(U.POINT);var h=this.dt._tooltip;h&&(h.innerHTML=this.drawToolTip)}B.toggle(this.drawPointButton,"drawPointBtn-active")},drawComplete:function(h){var F={};F.mapPoint=h.geometry;this.parentWidget.map.enableMapNavigation();this.mapWasClicked(F)},setSubCoordUI:function(h){if(h){h=
"165px";switch(this.type){case "DD":case "DMS":case "DDM":this.sub1label.innerHTML="Lat";this.sub2label.innerHTML="Lon";this.setHidden(this.sub3,!1);this.setHidden(this.sub4,!1);h="90px";break;case "GARS":this.sub1label.innerHTML="Lon";this.sub2label.innerHTML="Lat";this.sub3label.innerHTML="Quadrant";this.sub4label.innerHTML="Key";this.setVisible(this.sub3);this.setVisible(this.sub4);break;case "GEOREF":this.sub1label.innerHTML="15\u00b0 Quad";this.sub2label.innerHTML="1\u00b0 Quad";this.sub3label.innerHTML=
"Easting";this.setVisible(this.sub3);this.sub4label.innerHTML="Northing";this.setVisible(this.sub4);break;case "USNG":case "MGRS":this.sub1label.innerHTML="GZD";this.sub2label.innerHTML="Grid Sq";this.sub3label.innerHTML="Easting";this.sub4label.innerHTML="Northing";this.setVisible(this.sub3);this.setVisible(this.sub4);break;case "UTM":this.sub1label.innerHTML="Zone";this.sub2label.innerHTML="Band";this.sub3label.innerHTML="Easting";this.sub4label.innerHTML="Northing";this.setVisible(this.sub3);this.setVisible(this.sub4);
break;case "UTM_H":this.sub1label.innerHTML="Zone",this.sub2label.innerHTML="Hemisphere",this.sub3label.innerHTML="Easting",this.sub4label.innerHTML="Northing",this.setVisible(this.sub3),this.setVisible(this.sub4)}A.set(this.coordcontrols,"display","block");A.set(this.coordcontrols,"height",h);A.set(this.coordcontrols,"width","300px")}else A.set(this.coordcontrols,"display","none"),A.set(this.coordcontrols,"height","0px");h=this.uid.split("_")[1];v.set(this["cc_"+h+"sub1val"],"aria-label",this.sub1label.innerHTML);
v.set(this["cc_"+h+"sub2val"],"aria-label",this.sub2label.innerHTML);v.set(this["cc_"+h+"sub3val"],"aria-label",this.sub3label.innerHTML);v.set(this["cc_"+h+"sub4val"],"aria-label",this.sub4label.innerHTML)},setCoordUI:function(h){if(h){var F=this.uid.split("_")[1];if(!this["cc_"+F+"sub1val"]||this.input&&this.inputFromText)return;var G=this._frmtdlg.content.formats[this.type];G=G.useCustom?G.customFormat:G.defaultFormat;switch(this.type){case "DD":h=this.getFormattedDDStr(h,G,this.addSign);this["cc_"+
F+"sub1val"].value=z.substitute("${xcrd}",{xcrd:h.latdeg});this["cc_"+F+"sub2val"].value=z.substitute("${ycrd}",{ycrd:h.londeg});var D=h.formatResult;break;case "DDM":h=this.getFormattedDDMStr(h,G,this.addSign);this["cc_"+F+"sub1val"].value=z.substitute("${latd} ${latm}",{latd:h.latdeg,latm:h.latmin});this["cc_"+F+"sub2val"].value=z.substitute("${lond} ${lonm}",{lond:h.londeg,lonm:h.lonmin});D=h.formatResult;break;case "DMS":h=this.getFormattedDMSStr(h,G,this.addSign);this["cc_"+F+"sub1val"].value=
z.substitute("${latd} ${latm} ${lats}",{latd:h.latdeg,latm:h.latmin,lats:h.latsec});this["cc_"+F+"sub2val"].value=z.substitute("${lond} ${lonm} ${lons}",{lond:h.londeg,lonm:h.lonmin,lons:h.lonsec});D=h.formatResult;break;case "USNG":h=this.getFormattedUSNGStr(h,G,!1);this["cc_"+F+"sub1val"].value=h.gzd;this["cc_"+F+"sub2val"].value=h.grdsq;this["cc_"+F+"sub3val"].value=h.easting;this["cc_"+F+"sub4val"].value=h.northing;D=h.formatResult;break;case "MGRS":h=this.getFormattedMGRSStr(h,G,!1);this["cc_"+
F+"sub1val"].value=h.gzd;this["cc_"+F+"sub2val"].value=h.grdsq;this["cc_"+F+"sub3val"].value=h.easting;this["cc_"+F+"sub4val"].value=h.northing;D=h.formatResult;break;case "GARS":h=this.getFormattedGARSStr(h,G,!1);this["cc_"+F+"sub1val"].value=h.lon;this["cc_"+F+"sub2val"].value=h.lat;this["cc_"+F+"sub3val"].value=h.quadrant;this["cc_"+F+"sub4val"].value=h.key;D=h.formatResult;break;case "GEOREF":h=this.getFormattedGEOREFStr(h,G,!1);this["cc_"+F+"sub1val"].value=h.lon+h.lat;this["cc_"+F+"sub2val"].value=
h.quadrant15lon+h.quadrant15lat;this["cc_"+F+"sub3val"].value=h.quadrant1lon;this["cc_"+F+"sub4val"].value=h.quadrant1lat;D=h.formatResult;break;case "UTM":h=this.getFormattedUTMStr(h,G,!1);h.bandLetter.match(/^[AaBbYyZz]/)?(this["cc_"+F+"sub1val"].value="",this["cc_"+F+"sub2val"].value="",this["cc_"+F+"sub3val"].value="",this["cc_"+F+"sub4val"].value="",h.formatResult=""):(this["cc_"+F+"sub1val"].value=h.zone,this["cc_"+F+"sub2val"].value=h.bandLetter,this["cc_"+F+"sub3val"].value=h.easting,this["cc_"+
F+"sub4val"].value=h.westing);D=h.formatResult;break;case "UTM_H":h=this.getFormattedUTMHStr(h,G,!1),h.hemisphere.match(/^[AaBbYyZz]/)?(this["cc_"+F+"sub1val"].value="",this["cc_"+F+"sub2val"].value="",this["cc_"+F+"sub3val"].value="",this["cc_"+F+"sub4val"].value="",h.formatResult=""):(this["cc_"+F+"sub1val"].value=h.zone,this["cc_"+F+"sub2val"].value=h.hemisphere,this["cc_"+F+"sub3val"].value=h.easting,this["cc_"+F+"sub4val"].value=h.westing),D=h.formatResult}}else D="";this.coordcontrols&&this.setSubCoordUI(B.contains(this.coordcontrols,
"expanded"));this.coordtext&&(v.set(this.coordtext,"value",D),this.emit("get-coordinate-complete",D))},getFormattedCoordinates:function(){this.getCoordValues(this.currentClickPointDD,this.type,4).then(t.hitch(this,function(h){this.setCoordUI(h)}),t.hitch(this,function(h){console.log(h)}))},updateDisplay:function(){this.currentClickPoint&&(this.currentClickPointDD||(this.currentClickPointDD=this.currentClickPoint),this.getFormattedCoordinates(this.currentClickPointDD),this.input&&(null!==this.graphicsLayer&&
(this.graphicsLayer.clear(),this.currentClickPoint.spatialReference.equals(this.parentWidget.map.spatialReference)?this.graphicsLayer.add(new O(this.currentClickPoint)):this.getProjectedPoint(this.currentClickPointDD).then(t.hitch(this,function(h){this.graphicsLayer.add(new O(h))}),t.hitch(this,function(h){console.error(h)}))),c.publish("INPUTPOINTDIDCHANGE",{mapPoint:this.currentClickPointDD,inputFromText:!0}),c.publish("VALIDINPUT",{show:!0})))},clear:function(){this.coordtext.value="";this.currentClickPointDDDD=
this.currentClickPointDD=this.currentClickPoint=null;this.graphicsLayer.clear()},inputError:function(){this.setCoordUI();this.toggleZoomButton(!1)},toggleZoomButton:function(h){this.zoomButton.parentNode&&(this.zoomButton.parentNode.style.display=h?"inline-block":"none")},getCleanInput:function(h){h=h.replace(/\n/g,"");h=h.replace(/\s+/g," ").trim();return h.toUpperCase()},getCoordValues:function(h,F,G){var D=new a;h={sr:4326,coordinates:[[h.x,h.y]],conversionType:F.name?F.name:F,numOfDigits:G||6,
rounding:!0,addSpaces:!1};switch(F){case "DD":h.numOfDigits=6;break;case "USNG":h.numOfDigits=5;break;case "MGRS":h.conversionMode="mgrsDefault";h.numOfDigits=5;break;case "UTM_H":h.conversionType="utm";h.conversionMode="utmNorthSouth";h.addSpaces=!0;break;case "UTM":h.conversionType="utm";h.conversionMode="utmDefault";h.addSpaces=!0;break;case "GARS":h.conversionMode="garsDefault"}this.geomsrvc.toGeoCoordinateString(h).then(function(V){D.resolve(V)},function(){D.resolve(null)});return D.promise},
getXYNotation:function(h,F){var G=new a;var D=F.name?F.name:F;F={sr:4326,conversionType:D,strings:[]};switch(D){case "DD":case "DDM":case "DMS":F.numOfDigits=2;h=h.replace(/[\u00b0\u02da\u00ba^~*"'\u2032\u00a8\u02dd]/g,"");F.strings.push(h);break;case "DDrev":F.conversionType="DD";F.numOfDigits=2;h=h.replace(/[\u00b0\u02da\u00ba^~*"'\u2032\u00a8\u02dd]/g,"");F.strings.push(h);break;case "DDMrev":F.conversionType="DDM";F.numOfDigits=2;h=h.replace(/[\u00b0\u02da\u00ba^~*"'\u2032\u00a8\u02dd]/g,"");
F.strings.push(h);break;case "DMSrev":F.conversionType="DMS";F.numOfDigits=2;h=h.replace(/[\u00b0\u02da\u00ba^~*"'\u2032\u00a8\u02dd]/g,"");F.strings.push(h);break;case "USNG":F.strings.push(h);F.addSpaces="false";break;case "MGRS":F.conversionMode="mgrsNewStyle";F.strings.push(h);F.addSpaces="false";break;case "UTM_H":F.conversionType="utm";F.conversionMode="utmNorthSouth";F.strings.push(h);break;case "UTM":F.conversionType="utm";F.conversionMode="utmDefault";F.strings.push(h);break;case "GARS":F.conversionMode=
"garsCenter";F.strings.push(h);break;case "GEOREF":F.strings.push(h)}this.geomsrvc.fromGeoCoordinateString(F).then(function(V){G.resolve(V)},function(){G.resolve(null)});return G.promise},getNotations:function(){return[{name:"DD",pattern:new RegExp([/^(([NS\+\-\s])*([0-8]?\d([,.]\d*)?|90([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([NS\+\-\s])*)([,:;\s|\/\\]+)/,/(([EW\+\-\s])*([0]?\d?\d([,.]\d*)?|1[0-7]\d([,.]\d*)?|180([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([EW\+\-\s])*)$/].map(function(h){return h.source}).join("")),
notationType:this.nls.DDLatLongNotation,conversionType:"DD"},{name:"DDrev",pattern:new RegExp([/^(([EW\+\-\s])*([0]?\d?\d([,.]\d*)?|1[0-7]\d([,.]\d*)?|180([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([EW\+\-\s])*)/,/([,:;\s|\/\\]+)(([NS\+\-\s])*([0-8]?\d([,.]\d*)?|90([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([NS\+\-\s])*)$/].map(function(h){return h.source}).join("")),notationType:this.nls.DDLongLatNotation,conversionType:"DD"},{name:"DDM",pattern:new RegExp([/^(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)['\u2032\s_]*([NS\+\-\s])*)/,
/([,:;\s|\/\\]+)/,/(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]\d|\d)([,.]\d*)?)['\u2032\s_]*([EW\+\-\s])*)/,/[\s]*$/].map(function(h){return h.source}).join("")),notationType:this.nls.DDMLatLongNotation,conversionType:"DDM"},{name:"DDMrev",pattern:new RegExp([/^(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]\d|\d)([,.]\d*)?)['\u2032\s_]*([EW\+\-\s])*)/,/([,:;\s|\/\\]+)/,/(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)['\u2032\s_]*([NS\+\-\s])*)[\s]*$/].map(function(h){return h.source}).join("")),
notationType:this.nls.DDMLongLatNotation,conversionType:"DDM"},{name:"DMS",pattern:new RegExp([/^(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]?\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([NS\+\-\s])*)/,/([,:;\s|\/\\]+)/,/(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([EW\+\-\s])*)[\s]*$/].map(function(h){return h.source}).join("")),notationType:this.nls.DMSLatLongNotation,
conversionType:"DMS"},{name:"DMSrev",pattern:new RegExp([/^(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([EW\+\-\s])*)/,/([,:;\s|\/\\]+)/,/(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]?\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([NS\+\-\s])*)[\s]*$/].map(function(h){return h.source}).join("")),notationType:this.nls.DMSLongLatNotation,conversionType:"DMS"},{name:"GARS",
pattern:/^\d{3}[a-zA-Z]{2}[1-4]?[1-9]?$/,notationType:this.nls.GARSNotation,conversionType:"GARS"},{name:"GEOREF",pattern:/^[a-zA-Z]{4}\d{1,8}$/,notationType:this.nls.GEOREFNotation,conversionType:"GEOREF"},{name:"MGRS",pattern:new RegExp([/^\d{1,2}[-,;:\s]*[C-HJ-NP-X][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*/,/(\d[-,;:\s]+\d|\d{2}[-,;:\s]+\d{2}|\d{3}[-,;:\s]+\d{3}|\d{4}[-,;:\s]+\d{4}|\d{5}[-,;:\s]+\d{5})/,/$|^(\d{1,2}[-,;:\s]*[C-HJ-NP-X][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*)/,/(\d{2}|\d{4}|\d{6}|\d{8}|\d{10})?$|^[ABYZ][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*/,
/(\d[-,;:\s]+\d|\d{2}[-,;:\s]+\d{2}|\d{3}[-,;:\s]+\d{3}|\d{4}[-,;:\s]+\d{4}|\d{5}[-,;:\s]+\d{5})/,/$|^[ABYZ][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*(\d{2}|\d{4}|\d{6}|\d{8}|\d{10})?$/].map(function(h){return h.source}).join("")),notationType:this.nls.MGRSNotation,conversionType:"MGRS"},{name:"UTM",pattern:new RegExp([/^\d{1,2}[-,;:\s]*[c-hj-np-xC-HJ-NP-X][-,;:\s]*\d{1,6}\.?\d*[mM]?[-,;:\s]?\d{1,7}\.?\d*[mM]?$/].map(function(h){return h.source}).join("")),notationType:this.nls.UTMBandNotation,conversionType:"UTM"},
{name:"UTM (H)",pattern:new RegExp([/^\d{1,2}[-,;:\s]*[NnSs][-,;:\s]*\d{1,6}\.?\d*[mM]?[-,;:\s]+\d{1,7}\.?\d*[mM]?$/].map(function(h){return h.source}).join("")),notationType:this.nls.UTMHemNotation,conversionType:"UTM_H"}]},getCoordinateType:function(h){var F=this.getCleanInput(h);h=new a;var G=this.getNotations();F=f.filter(G,function(D){return D.pattern.test(this.v)},{v:F});0<F.length?h.resolve(F):h.resolve(null);return h.promise},getFormattedDDStr:function(h,F,G){var D={};D.sourceValue=h;D.sourceFormatString=
F;h=h[0].split(/[ ,]+/);D.latdeg=h[0].replace(/[nNsS]/,"");D.londeg=h[1].replace(/[eEwW]/,"");D.latdeg=H.localizeNumber(parseFloat(D.latdeg));D.londeg=H.localizeNumber(parseFloat(D.londeg));G&&("N"===h[0].slice(-1)?D.latdeg="+"+D.latdeg:D.latdeg="-"+D.latdeg,"W"===h[1].slice(-1)?D.londeg="-"+D.londeg:D.londeg="+"+D.londeg);F=F.replace(/X/,D.londeg);F=F.replace(/[eEwW]/,h[1].slice(-1));F=F.replace(/[nNsS]/,h[0].slice(-1));F=F.replace(/Y/,D.latdeg);D.formatResult=F;return D},getFormattedDDMStr:function(h,
F,G){var D={};D.sourceValue=h;D.sourceFormatString=F;D.parts=h[0].split(/[ ,]+/);D.latdeg=D.parts[0];D.latmin=D.parts[1].replace(/[nNsS]/,"");D.londeg=D.parts[2];D.lonmin=D.parts[3].replace(/[eEwW]/,"");D.latmin=H.localizeNumber(parseFloat(D.latmin));D.lonmin=H.localizeNumber(parseFloat(D.lonmin));G&&("N"===D.parts[1].slice(-1)?D.latdeg="+"+D.latdeg:D.latdeg="-"+D.latdeg,"W"===D.parts[3].slice(-1)?D.londeg="-"+D.londeg:D.londeg="+"+D.londeg);h=F.replace(/[EeWw]/,D.parts[3].slice(-1));h=h.replace(/Y/,
D.lonmin);h=h.replace(/X/,D.londeg);h=h.replace(/[NnSs]/,D.parts[1].slice(-1));h=h.replace(/B/,D.latmin);h=h.replace(/A/,D.latdeg);D.formatResult=h;return D},getFormattedDMSStr:function(h,F,G){var D={};D.sourceValue=h;D.sourceFormatString=F;D.parts=h[0].split(/[ ,]+/);D.latdeg=D.parts[0];D.latmin=D.parts[1];D.latsec=D.parts[2].replace(/[NnSs]/,"");D.londeg=D.parts[3];D.lonmin=D.parts[4];D.latsec=H.localizeNumber(parseFloat(D.latsec));D.parts[5]&&(D.lonsec=D.parts[5].replace(/[EWew]/,""),D.lonsec=
H.localizeNumber(parseFloat(D.lonsec)));G&&("N"===D.parts[2].slice(-1)?D.latdeg="+"+D.latdeg:D.latdeg="-"+D.latdeg,"W"===D.parts[5].slice(-1)?D.londeg="-"+D.londeg:D.londeg="+"+D.londeg);h=F.replace(/A/,D.latdeg);h=h.replace(/B/,D.latmin);h=h.replace(/C/,D.latsec);h=h.replace(/X/,D.londeg);h=h.replace(/Y/,D.lonmin);h=h.replace(/Z/,D.lonsec);h=h.replace(/[NnSs]/,D.parts[2].slice(-1));D.parts[5]&&(h=h.replace(/[EeWw]/,D.parts[5].slice(-1)));D.formatResult=h;return D},getFormattedUSNGStr:function(h,
F){var G={};G.sourceValue=h;G.sourceFormatString=F;h[0].match(/^[ABYZ]/)?G.gzd=h[0].match(/[ABYZ]/)[0].trim():G.gzd=h[0].match(/\d{1,2}[C-HJ-NP-X]/)[0].trim();h[0].replace(G.gzd,"").match(/[a-hJ-zA-HJ-Z]{2}/)&&(G.grdsq=h[0].replace(G.gzd,"").match(/[a-hJ-zA-HJ-Z]{2}/)[0].trim());h[0].replace(G.gzd+G.grdsq,"").match(/^\d{1,5}/)&&(G.easting=h[0].replace(G.gzd+G.grdsq,"").match(/^\d{1,5}/)[0].trim());h[0].replace(G.gzd+G.grdsq,"").match(/\d{1,5}$/)&&(G.northing=h[0].replace(G.gzd+G.grdsq,"").match(/\d{1,5}$/)[0].trim());
h=F.replace(/Y/,G.northing);h=h.replace(/X/,G.easting);h=h.replace(/S/,G.grdsq);h=h.replace(/Z/,G.gzd);G.formatResult=h;return G},getFormattedMGRSStr:function(h,F){var G={};G.sourceValue=h;G.sourceFormatString=F;h[0].match(/^[ABYZ]/)?G.gzd=h[0].match(/[ABYZ]/)[0].trim():G.gzd=h[0].match(/\d{1,2}[C-HJ-NP-X]/)[0].trim();G.grdsq=h[0].replace(G.gzd,"").match(/[a-hJ-zA-HJ-Z]{2}/)[0].trim();G.easting=h[0].replace(G.gzd+G.grdsq,"").match(/^\d{1,5}/)[0].trim();G.northing=h[0].replace(G.gzd+G.grdsq,"").match(/\d{1,5}$/)[0].trim();
h=F.replace(/Y/,G.northing);h=h.replace(/X/,G.easting);h=h.replace(/S/,G.grdsq);h=h.replace(/Z/,G.gzd);G.formatResult=h;return G},getFormattedGARSStr:function(h,F){var G={};G.sourceValue=h;G.sourceFormatString=F;G.lon=h[0].match(/\d{3}/);G.lat=h[0].match(/[a-zA-Z]{2}/);h=h[0].match(/\d*$/);G.quadrant=h[0][0];G.key=h[0][1];F=F.replace(/K/,G.key);F=F.replace(/Q/,G.quadrant);F=F.replace(/Y/,G.lat);F=F.replace(/X/,G.lon);G.formatResult=F;return G},getFormattedGEOREFStr:function(h,F){var G={};G.sourceValue=
h;G.sourceFormatString=F;G.lon=h[0].match(/[a-zA-Z]{1}/)[0].trim();G.lat=h[0].replace(G.lon,"").match(/[a-zA-Z]{1}/)[0].trim();G.quadrant15lon=h[0].replace(G.lon+G.lat,"").match(/[a-zA-Z]{1}/)[0].trim();G.quadrant15lat=h[0].replace(G.lon+G.lat+G.quadrant15lon,"").match(/[a-zA-Z]{1}/)[0].trim();h=h[0].replace(G.lon+G.lat+G.quadrant15lon+G.quadrant15lat,"");G.quadrant1lon=h.substr(0,h.length/2);G.quadrant1lat=h.substr(h.length/2,h.length);F=F.replace(/Y/,G.quadrant1lat);F=F.replace(/X/,G.quadrant1lon);
F=F.replace(/D/,G.quadrant15lat);F=F.replace(/C/,G.quadrant15lon);F=F.replace(/B/,G.lat);F=F.replace(/A/,G.lon);G.formatResult=F;return G},getFormattedUTMStr:function(h,F){var G={};G.sourceValue=h;G.sourceFormatString=F;G.parts=h[0].split(/[ ,]+/);G.zone=G.parts[0].replace(/[A-Z]/,"");G.bandLetter=G.parts[0].slice(-1);G.easting=G.parts[1];G.westing=G.parts[2];h=F.replace(/Y/,G.westing);h=h.replace(/X/,G.easting);h=h.replace(/B/,G.bandLetter);h=h.replace(/Z/,G.zone);G.formatResult=h;return G},getFormattedUTMHStr:function(h,
F){var G={};G.sourceValue=h;G.sourceFormatString=F;G.parts=h[0].split(/[ ,]+/);G.zone=G.parts[0].replace(/[A-Z]/,"");G.hemisphere=G.parts[0].slice(-1);G.easting=G.parts[1];G.westing=G.parts[2];h=F.replace(/Y/,G.westing);h=h.replace(/X/,G.easting);h=h.replace(/H/,G.hemisphere);h=h.replace(/Z/,G.zone);G.formatResult=h;return G}})})},"jimu/dijit/_CoordinateControlFormatNotation":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/on dojo/dom-attr dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin jimu/dijit/formSelect jimu/dijit/CheckBox".split(" "),
function(L,f,t,H,b,g,l,v){return L([g,l,v],{baseClass:"jimu-coordinate-control",templateString:'\x3cdiv\x3e\x3cspan class\x3d"formatText"\x3e${nls.editCoordinateDialogTitle}\x3c/span\x3e\x3cdiv class\x3d"controlContainer"\x3e\x3cselect tabindex\x3d"0" class\x3d"selectFormat" data-dojo-attach-point\x3d"frmtSelect" aria-label\x3d"${nls.editCoordinateDialogTitle}" data-dojo-type\x3d"jimu/dijit/formSelect"\x3e\x3c/select\x3e\x3cinput tabindex\x3d"0" type\x3d"text" data-dojo-attach-point\x3d"frmtVal" class\x3d"formatInput"\x3e\x3c/input\x3e\x3cdiv class\x3d"settingsContainer" data-dojo-attach-point\x3d"prefixContainer"\x3e\x3cdiv class\x3d"formatText" data-dojo-attach-point\x3d"addSignChkBox" label\x3d"${nls.posNegPrefixLabel}" data-dojo-type\x3d"jimu/dijit/CheckBox"/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"btnContainer"\x3e\x3cdiv tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.applyButtonLabel}" data-dojo-attach-point\x3d"applyButton" class\x3d"jimu-btn"\x3e${nls.applyButtonLabel}\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"cancelButton" tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.cancelButtonLabel}" class\x3d"jimu-btn formatCoordCancelButton"\x3e${nls.cancelButtonLabel}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
isCanceled:!1,formats:{},setCt:function(B){this.ct=B;this.frmtSelect.set("value",this.ct)},postCreate:function(){this.formats={DD:{defaultFormat:"YN XE",customFormat:null,useCustom:!1},DDM:{defaultFormat:"A\u00b0 B'N X\u00b0 Y'E",customFormat:null,useCustom:!1},DMS:{defaultFormat:"A\u00b0 B' C\"N X\u00b0 Y' Z\"E",customFormat:null,useCustom:!1},GARS:{defaultFormat:"XYQK",customFormat:null,useCustom:!1},GEOREF:{defaultFormat:"ABCDXY",customFormat:null,useCustom:!1},MGRS:{defaultFormat:"ZSXY",customFormat:null,
useCustom:!1},USNG:{defaultFormat:"ZSXY",customFormat:null,useCustom:!1},UTM:{defaultFormat:"ZB X Y",customFormat:null,useCustom:!1},UTM_H:{defaultFormat:"ZH X Y",customFormat:null,useCustom:!1}};var B=[],A;for(A in this.formats){var z={value:A,label:this.nls.notations[A]};B.push(z)}this.frmtSelect.addOption(B);b.set(this.frmtVal,"value",this.formats[this.ct].defaultFormat);this.own(H(this.frmtSelect,"change",f.hitch(this,this.frmtSelectValueDidChange)));this.own(H(this.frmtVal,"change",f.hitch(this,
this.formatValDidChange)));this.own(H(this.cancelButton,"click",f.hitch(this,function(){this.isCanceled=!0})));this.own(H(this.applyButton,"click",f.hitch(this,function(){this.isCanceled=!1})));this.displayPrefixContainer()},formatValDidChange:function(){var B=b.get(this.frmtVal,"value"),A=this.frmtSelect.get("value");this.formats[A].customFormat=B;this.formats[A].useCustom=!0},frmtSelectValueDidChange:function(B){var A=this.formats[B].useCustom?this.formats[B].customFormat:this.formats[B].defaultFormat;
this.ct=B;b.set(this.frmtVal,"value",A);this.displayPrefixContainer()},displayPrefixContainer:function(){switch(this.ct){case "DD":case "DDM":case "DMS":t.set(this.prefixContainer,{display:""});break;default:t.set(this.prefixContainer,{display:"none"})}}})})},"jimu/dijit/_CoordinateControlConfirmNotation":function(){define("dojo/_base/declare dojo/_base/Deferred dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/aspect dojo/keys dojo/query dijit/Dialog dijit/form/Select dojo/_base/lang".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z){return L([B],{baseClass:"jimu-coordinate-control",numberOfInputs:0,selectOptions:{},comboOptions:{},dfd:null,constructor:function(c){z.mixin(this,c);this.numberOfInputs=c.options.length;this.selectOptions=c.options},postCreate:function(){this.inherited("postCreate",arguments);this.closable=!1;this.closeButtonNode.style.display="none";"DartTheme"===this.theme&&b.add(this.containerNode,"coordinateControlDialog");this.message=H.create("div",{style:"margin-bottom: 5px"},
this.containerNode,"first");this.message.innerHTML=this.numberOfInputs+" "+this.nls.multipleNotationLabel;this.comboOptions=new A({style:{width:"99%"},"aria-label":this.numberOfInputs+" "+this.nls.multipleNotationLabel},H.create("div",{},this.containerNode,"last"));this.own(g.after(this.comboOptions,"onChange",t.hitch(this,this._onComboOptionsChanged)));for(var c=0;c<this.selectOptions.length;c++)this.comboOptions.addOption({value:this.selectOptions[c].name,label:this.selectOptions[c].notationType});
this.buttonDiv=H.create("div",{"class":"buttonContainer",style:"margin-top:10px;"+(window.isRTL?"text-align:left":"text-align:right")},this.containerNode,"last");this.okButton=H.create("div",{innerHTML:this.nls.applyButtonLabel,"class":"jimu-btn",role:"button",tabindex:"0","aria-label":this.nls.applyButtonLabel,onclick:z.hitch(this,function(){this.hide();this.dfd.resolve()}),onkeypress:z.hitch(this,function(p){if(p.keyCode===l.ENTER||p.keyCode===l.SPACE)this.hide(),this.dfd.resolve()})},this.buttonDiv,
"first");this.cancelButton=H.create("div",{innerHTML:this.nls.cancelButtonLabel,"class":"jimu-btn",style:"margin: 0 5px 0 5px",role:"button",tabindex:"0","aria-label":this.nls.cancelButtonLabel,onclick:z.hitch(this,function(){this.hide();this.dfd.cancel()}),onkeypress:z.hitch(this,function(p){if(p.keyCode===l.ENTER||p.keyCode===l.SPACE)this.hide(),this.dfd.cancel()})},this.buttonDiv,"last")},show:function(){this.inherited("show",arguments);this.dfd=new f;var c=this._getDOMElement(".dijitSelectLabel",
this.comboOptions.domNode);c&&b.add(c,"dijitSelectLabelConfirmNotation");return this.dfd},_onComboOptionsChanged:function(){var c=this._getDOMElement(".dijitSelectLabel",this.comboOptions.domNode);c&&b.add(c,"dijitSelectLabelConfirmNotation")},_getDOMElement:function(c,p){return(c=v(c,p))&&1===c.length?c[0]:null}})})},"dijit/form/Textarea":function(){define(["dojo/_base/declare","dojo/dom-style","./_ExpandingTextAreaMixin","./SimpleTextarea"],function(L,f,t,H){return L("dijit.form.Textarea",[H,t],
{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);f.set(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"})}})})},"dijit/form/_ExpandingTextAreaMixin":function(){define("dojo/_base/declare dojo/dom-construct dojo/has dojo/_base/lang dojo/on dojo/_base/window ../Viewport".split(" "),function(L,f,t,H,b,g,l){t.add("textarea-needs-help-shrinking",
function(){var v=g.body(),B=f.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},v,"last"),A=B.scrollHeight>=B.clientHeight;v.removeChild(B);return A});return L("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){this.inherited(arguments);
this.resize()},postCreate:function(){this.inherited(arguments);var v=this.textbox;v.style.overflowY="hidden";this.own(b(v,"focus, resize",H.hitch(this,"_resizeLater")))},startup:function(){this.inherited(arguments);this.own(l.on("resize",H.hitch(this,"_resizeLater")));this._resizeLater()},_onInput:function(v){this.inherited(arguments);this.resize()},_estimateHeight:function(){var v=this.textbox;v.rows=(v.value.match(/\n/g)||[]).length+1},_resizeLater:function(){this.defer("resize")},resize:function(){function v(){var w=
!1;""===B.value&&(B.value=" ",w=!0);var k=B.scrollHeight;w&&(B.value="");return k}var B=this.textbox;"hidden"==B.style.overflowY&&(B.scrollTop=0);if(!this.busyResizing){this.busyResizing=!0;if(v()||B.offsetHeight){var A=v()+Math.max(B.offsetHeight-B.clientHeight,0),z=A+"px";z!=B.style.height&&(B.style.height=z,B.rows=1);if(t("textarea-needs-help-shrinking")){var c=v(),p=B.style.minHeight,a=4,r=B.scrollTop;B.style.minHeight=z;for(B.style.height="auto";0<A;){B.style.minHeight=Math.max(A-a,4)+"px";z=
v();c-=z;A-=c;if(c<a)break;c=z;a<<=1}B.style.height=A+"px";B.style.minHeight=p;B.scrollTop=r}B.style.overflowY=v()>B.clientHeight?"auto":"hidden";"hidden"==B.style.overflowY&&(B.scrollTop=0)}else this._estimateHeight();this.busyResizing=!1}}})})},"dijit/InlineEditBox":function(){define("require dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-style dojo/i18n dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/when ./a11yclick ./focus ./_Widget ./_TemplatedMixin ./_WidgetsInTemplateMixin ./_Container ./form/Button ./form/_TextBoxMixin ./form/TextBox dojo/text!./templates/InlineEditBox.html dojo/i18n!./nls/common".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c,p,a,r,w,k,d,e,n,q,m,x,y,E){e=H("dijit._InlineEditor",[d,e,n],{templateString:E,contextRequire:L,postMixInProperties:function(){this.inherited(arguments);this.messages=B.getLocalization("dijit","common",this.lang);f.forEach(["buttonSave","buttonCancel"],function(I){this[I]||(this[I]=this.messages[I])},this)},buildRendering:function(){this.inherited(arguments);var I="string"==typeof this.editor?c.getObject(this.editor)||L(this.editor):this.editor,J=this.sourceStyle,
O="line-height:"+J.lineHeight+";",Q=v.getComputedStyle(this.domNode);f.forEach(["Weight","Family","Size","Style"],function(X){Q["font"+X]!=J["font"+X]&&(O+="font-"+X+":"+J["font"+X]+";")},this);f.forEach("marginTop marginBottom marginLeft marginRight position left top right bottom float clear display".split(" "),function(X){this.domNode.style[X]=J[X]},this);var T=this.inlineEditBox.width;"100%"==T?(O+="width:100%;",this.domNode.style.display="block"):O+="width:"+(T+(Number(T)==T?"px":""))+";";T=c.delegate(this.inlineEditBox.editorParams,
{style:O,dir:this.dir,lang:this.lang,textDir:this.textDir});this.editWidget=new I(T,this.editorPlaceholder);this.inlineEditBox.autoSave&&(this.saveButton.destroy(),this.cancelButton.destroy(),this.saveButton=this.cancelButton=null,l.destroy(this.buttonContainer))},postCreate:function(){this.inherited(arguments);var I=this.editWidget;this.inlineEditBox.autoSave?this.own(t.after(I,"onChange",c.hitch(this,"_onChange"),!0),p(I,"keydown",c.hitch(this,"_onKeyDown"))):"intermediateChanges"in I&&(I.set("intermediateChanges",
!0),this.own(t.after(I,"onChange",c.hitch(this,"_onIntermediateChange"),!0)),this.saveButton.set("disabled",!0))},startup:function(){this.editWidget.startup();this.inherited(arguments)},_onIntermediateChange:function(){this.saveButton.set("disabled",this.getValue()==this._resetValue||!this.enableSave())},destroy:function(){this.editWidget.destroy(!0);this.inherited(arguments)},getValue:function(){var I=this.editWidget;return String(I.get("displayedValue"in I||"_getDisplayedValueAttr"in I?"displayedValue":
"value"))},_onKeyDown:function(I){this.inlineEditBox.autoSave&&this.inlineEditBox.editing&&!I.altKey&&!I.ctrlKey&&(I.keyCode==z.ESCAPE?(I.stopPropagation(),I.preventDefault(),this.cancel(!0)):I.keyCode==z.ENTER&&"INPUT"==I.target.tagName&&(I.stopPropagation(),I.preventDefault(),this._onChange()))},_onBlur:function(){this.inherited(arguments);this.inlineEditBox.autoSave&&this.inlineEditBox.editing&&(this.getValue()==this._resetValue?this.cancel(!1):this.enableSave()&&this.save(!1))},_onChange:function(){this.inlineEditBox.autoSave&&
this.inlineEditBox.editing&&this.enableSave()&&k.focus(this.inlineEditBox.displayNode)},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():!0},focus:function(){this.editWidget.focus();this.editWidget.focusNode&&(k._onFocusNode(this.editWidget.focusNode),"INPUT"==this.editWidget.focusNode.tagName&&this.defer(function(){x.selectInputText(this.editWidget.focusNode)}))}});d=H("dijit.InlineEditBox"+(a("dojo-bidi")?"_NoBidi":""),d,{editing:!1,autoSave:!0,buttonSave:"",buttonCancel:"",
renderAsHtml:!1,editor:y,editorWrapper:e,editorParams:{},disabled:!1,onChange:function(){},onCancel:function(){},width:"100%",value:"",noValueIndicator:6>=a("ie")?"\x3cspan style\x3d'font-family: wingdings; text-decoration: underline;'\x3e\x26#160;\x26#160;\x26#160;\x26#160;\x26#x270d;\x26#160;\x26#160;\x26#160;\x26#160;\x3c/span\x3e":"\x3cspan style\x3d'text-decoration: underline;'\x3e\x26#160;\x26#160;\x26#160;\x26#160;\x26#x270d;\x26#160;\x26#160;\x26#160;\x26#160;\x3c/span\x3e",constructor:function(){this.editorParams=
{}},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;this.own(p(this.displayNode,w,c.hitch(this,"_onClick")),p(this.displayNode,"mouseover, focus",c.hitch(this,"_onMouseOver")),p(this.displayNode,"mouseout, blur",c.hitch(this,"_onMouseOut")));this.displayNode.setAttribute("role","button");this.displayNode.getAttribute("tabIndex")||this.displayNode.setAttribute("tabIndex",0);this.value||"value"in this.params||(this.value=c.trim(this.renderAsHtml?this.displayNode.innerHTML:
this.displayNode.innerText||this.displayNode.textContent||""));this.value||(this.displayNode.innerHTML=this.noValueIndicator);g.add(this.displayNode,"dijitInlineEditBoxDisplayMode")},setDisabled:function(I){A.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",I)},_setDisabledAttr:function(I){this.domNode.setAttribute("aria-disabled",I?"true":"false");I?this.displayNode.removeAttribute("tabIndex"):this.displayNode.setAttribute("tabIndex",
0);g.toggle(this.displayNode,"dijitInlineEditBoxDisplayModeDisabled",I);this._set("disabled",I)},_onMouseOver:function(){this.disabled||g.add(this.displayNode,"dijitInlineEditBoxDisplayModeHover")},_onMouseOut:function(){g.remove(this.displayNode,"dijitInlineEditBoxDisplayModeHover")},_onClick:function(I){this.disabled||(I&&(I.stopPropagation(),I.preventDefault()),this._onMouseOut(),this.defer("edit"))},edit:function(){if(!this.disabled&&!this.editing){this._set("editing",!0);this._savedTabIndex=
b.get(this.displayNode,"tabIndex")||"0";if(!this.wrapperWidget){var I=l.create("span",null,this.domNode,"before");this.wrapperWidget=new ("string"==typeof this.editorWrapper?c.getObject(this.editorWrapper):this.editorWrapper)({value:this.value,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,dir:this.dir,lang:this.lang,tabIndex:this._savedTabIndex,editor:this.editor,inlineEditBox:this,sourceStyle:v.getComputedStyle(this.displayNode),save:c.hitch(this,"save"),cancel:c.hitch(this,"cancel"),
textDir:this.textDir},I);this.wrapperWidget._started||this.wrapperWidget.startup();this._started||this.startup()}var J=this.wrapperWidget;g.add(this.displayNode,"dijitOffScreen");g.remove(J.domNode,"dijitOffScreen");v.set(J.domNode,{visibility:"visible"});b.set(this.displayNode,"tabIndex","-1");var O=J.editWidget,Q=this;r(O.onLoadDeferred,c.hitch(J,function(){O.set("displayedValue"in O||"_setDisplayedValueAttr"in O?"displayedValue":"value",Q.value);this.defer(function(){J.saveButton&&J.saveButton.set("disabled",
"intermediateChanges"in O);this.focus();this._resetValue=this.getValue()})}))}},_onBlur:function(){this.inherited(arguments)},destroy:function(){this.wrapperWidget&&!this.wrapperWidget._destroyed&&(this.wrapperWidget.destroy(),delete this.wrapperWidget);this.inherited(arguments)},_showText:function(I){var J=this.wrapperWidget;v.set(J.domNode,{visibility:"hidden"});g.add(J.domNode,"dijitOffScreen");g.remove(this.displayNode,"dijitOffScreen");b.set(this.displayNode,"tabIndex",this._savedTabIndex);I&&
k.focus(this.displayNode)},save:function(I){if(!this.disabled&&this.editing){this._set("editing",!1);var J=this.wrapperWidget.getValue();this.set("value",J);this._showText(I)}},setValue:function(I){A.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use set('value', ...) instead.","","2.0");return this.set("value",I)},_setValueAttr:function(I){I=c.trim(I);var J=this.renderAsHtml?I:I.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;").replace(/\n/g,
"\x3cbr\x3e");this.displayNode.innerHTML=this.editorParams&&"password"===this.editorParams.type?"********":J||this.noValueIndicator;this._set("value",I);this._started&&this.defer(function(){this.onChange(I)})},getValue:function(){A.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use get('value') instead.","","2.0");return this.get("value")},cancel:function(I){!this.disabled&&this.editing&&(this._set("editing",!1),this.defer("onCancel"),this._showText(I))}});a("dojo-bidi")&&(d=H("dijit.InlineEditBox",
d,{_setValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.displayNode)}}));d._InlineEditor=e;return d})},"esri/dijit/util/busyIndicator":function(){define("dijit/registry dojo/_base/lang dojo/_base/window dojo/dom dojo/dom-construct dojox/widget/Standby require".split(" "),function(L,f,t,H,b,g,l){var v={_defaultStandbyParams:{image:l.toUrl("../images/loading-throb.gif"),color:"#fff",opacity:.75,duration:200},create:function(B){if(B=this._normalizeParams(B))return B=new g(v._toStandbyParams(B)),
b.place(B.domNode,t.doc.body),v._createHandle(B)},_normalizeParams:function(B){if(B){if(B.target)return B;if("string"===typeof B){var A=L.byId(B);B=A?A.domNode:H.byId(B)}else B=B.domNode?B.domNode:H.byId(B);if(B)return{target:B}}},_toStandbyParams:function(B){B.imageUrl&&(B.image=B.imageUrl);B.backgroundColor&&(B.color=B.backgroundColor);B.backgroundOpacity&&(B.opacity=B.backgroundOpacity);B.fadeDuration&&(B.duration=B.fadeDuration);return f.mixin({},v._defaultStandbyParams,B)},_createHandle:function(B){return{show:function(){B&&
B.show()},hide:function(){B&&B.hide()},destroy:function(){B&&(B.destroy(),B=null)}}}};return v})},"dojox/widget/Standby":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/array dojo/_base/event dojo/_base/sniff dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/window dojo/_base/window dojo/_base/fx dojo/fx dijit/_Widget dijit/_TemplatedMixin dijit/registry".split(" "),function(L,f,t,H,b,g,l,v,B,A,z,c,p,a,r,w,k){L.experimental("dojox.widget.Standby");
return f("dojox.widget.Standby",[r,w],{image:require.toUrl("dojox/widget/Standby/images/loading.gif").toString(),imageText:"Please Wait...",text:"Please wait...",centerIndicator:"image",target:"",color:"#C0C0C0",duration:500,zIndex:"auto",opacity:.75,templateString:'\x3cdiv\x3e\x3cdiv style\x3d"display: none; opacity: 0; z-index: 9999; position: absolute; cursor:wait;" dojoAttachPoint\x3d"_underlayNode"\x3e\x3c/div\x3e\x3cimg src\x3d"${image}" style\x3d"opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px; left: 0px; cursor:wait;" dojoAttachPoint\x3d"_imageNode"\x3e\x3cdiv style\x3d"opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px;" dojoAttachPoint\x3d"_textNode"\x3e\x3c/div\x3e\x3c/div\x3e',
_underlayNode:null,_imageNode:null,_textNode:null,_centerNode:null,_displayed:!1,_resizeCheck:null,_started:!1,_parent:null,startup:function(d){if(!this._started){if("string"===typeof this.target){var e=k.byId(this.target);this.target=e?e.domNode:g.byId(this.target)}this.text&&(this._textNode.innerHTML=this.text);"image"===this.centerIndicator?(this._centerNode=this._imageNode,l.set(this._imageNode,"src",this.image),l.set(this._imageNode,"alt",this.imageText)):this._centerNode=this._textNode;A.set(this._underlayNode,
{display:"none",backgroundColor:this.color});A.set(this._centerNode,"display","none");this.connect(this._underlayNode,"onclick","_ignore");this.domNode.parentNode&&this.domNode.parentNode!=c.body()&&c.body().appendChild(this.domNode);7==b("ie")&&(this._ieFixNode=v.create("div"),A.set(this._ieFixNode,{opacity:"0",zIndex:"-1000",position:"absolute",top:"-1000px"}),c.body().appendChild(this._ieFixNode));this.inherited(arguments)}},show:function(){this._displayed||(this._anim&&(this._anim.stop(),delete this._anim),
this._displayed=!0,this._size(),this._disableOverflow(),this._fadeIn())},hide:function(){if(this._displayed)try{this._anim&&(this._anim.stop(),delete this._anim),this._size()}catch(d){console.error(d)}finally{this._fadeOut(),this._displayed=!1,null!==this._resizeCheck&&(clearInterval(this._resizeCheck),this._resizeCheck=null)}},isVisible:function(){return this._displayed},onShow:function(){},onHide:function(){},uninitialize:function(){this._displayed=!1;this._resizeCheck&&clearInterval(this._resizeCheck);
A.set(this._centerNode,"display","none");A.set(this._underlayNode,"display","none");7==b("ie")&&this._ieFixNode&&(c.body().removeChild(this._ieFixNode),delete this._ieFixNode);this._anim&&(this._anim.stop(),delete this._anim);this._centerNode=this._textNode=this._imageNode=this.target=null;this.inherited(arguments)},_size:function(){if(this._displayed){var d=l.get(c.body(),"dir");d&&(d=d.toLowerCase());var e=this._scrollerWidths(),n=this.target,q=A.get(this._centerNode,"display");A.set(this._centerNode,
"display","block");var m=B.position(n,!0);if(n===c.body()||n===c.doc)m=z.getBox(),m.x=m.l,m.y=m.t;var x=B.getMarginBox(this._centerNode);A.set(this._centerNode,"display",q);if(this._ieFixNode){var y=-this._ieFixNode.offsetTop/1E3;m.x=Math.floor((m.x+.9)/y);m.y=Math.floor((m.y+.9)/y);m.w=Math.floor((m.w+.9)/y);m.h=Math.floor((m.h+.9)/y)}var E=A.get(n,"zIndex"),I=q=E;if("auto"===this.zIndex)if("auto"!=E)q=parseInt(q,10),I=parseInt(I,10);else{var J=n;if(J&&J!==c.body()&&J!==c.doc)for(J=n.parentNode,
y=-1E5;J&&J!==c.body();)(E=A.get(J,"zIndex"))&&"auto"!==E&&(E=parseInt(E,10),y<E&&(y=E,q=E+1,I=E+1)),J=J.parentNode}else q=parseInt(this.zIndex,10),I=parseInt(this.zIndex,10);A.set(this._centerNode,"zIndex",I);A.set(this._underlayNode,"zIndex",q);if((q=n.parentNode)&&q!==c.body()&&n!==c.body()&&n!==c.doc){J=m.h;I=m.w;n=B.position(q,!0);this._ieFixNode&&(y=-this._ieFixNode.offsetTop/1E3,n.x=Math.floor((n.x+.9)/y),n.y=Math.floor((n.y+.9)/y),n.w=Math.floor((n.w+.9)/y),n.h=Math.floor((n.h+.9)/y));n.w-=
q.scrollHeight>q.clientHeight&&0<q.clientHeight?e.v:0;n.h-=q.scrollWidth>q.clientWidth&&0<q.clientWidth?e.h:0;"rtl"===d&&(b("opera")?(m.x+=q.scrollHeight>q.clientHeight&&0<q.clientHeight?e.v:0,n.x+=q.scrollHeight>q.clientHeight&&0<q.clientHeight?e.v:0):b("ie")?n.x+=q.scrollHeight>q.clientHeight&&0<q.clientHeight?e.v:0:b("webkit"));n.w<m.w&&(m.w-=n.w);n.h<m.h&&(m.h-=n.h);var O=n.y,Q=n.y+n.h,T=m.y,X=m.y+J;d=n.x;y=n.x+n.w;E=m.x;var Y=m.x+I;if(X>O&&T<O)m.y=n.y,J-=O-T,m.h=J<n.h?J:m.h-2*(q.scrollWidth>
q.clientWidth&&0<q.clientWidth?e.h:0);else if(T<Q&&X>Q)m.h=Q-T;else if(X<=O||T>=Q)m.h=0;if(Y>d&&E<d)m.x=n.x,I-=d-E,m.w=I<n.w?I:m.w-2*(q.scrollHeight>q.clientHeight&&0<q.clientHeight?e.w:0);else if(E<y&&Y>y)m.w=y-E;else if(Y<=d||E>=y)m.w=0}0<m.h&&0<m.w?(A.set(this._underlayNode,{display:"block",width:m.w+"px",height:m.h+"px",top:m.y+"px",left:m.x+"px"}),e=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],this._cloneStyles(e),b("ie")||(e=
"MozBorderRadius MozBorderRadiusTopleft MozBorderRadiusTopright MozBorderRadiusBottomleft MozBorderRadiusBottomright WebkitBorderRadius WebkitBorderTopLeftRadius WebkitBorderTopRightRadius WebkitBorderBottomLeftRadius WebkitBorderBottomRightRadius".split(" "),this._cloneStyles(e,this)),e=m.h/2-x.h/2,q=m.w/2-x.w/2,m.h>=x.h&&m.w>=x.w?A.set(this._centerNode,{top:e+m.y+"px",left:q+m.x+"px",display:"block"}):A.set(this._centerNode,"display","none")):(A.set(this._underlayNode,"display","none"),A.set(this._centerNode,
"display","none"));if(null===this._resizeCheck){var W=this;this._resizeCheck=setInterval(function(){W._size()},100)}}},_cloneStyles:function(d){t.forEach(d,function(e){A.set(this._underlayNode,e,A.get(this.target,e))},this)},_fadeIn:function(){var d=this,e=p.animateProperty({duration:d.duration,node:d._underlayNode,properties:{opacity:{start:0,end:d.opacity}}}),n=p.animateProperty({duration:d.duration,node:d._centerNode,properties:{opacity:{start:0,end:1}},onEnd:function(){d.onShow();delete d._anim}});
this._anim=a.combine([e,n]);this._anim.play()},_fadeOut:function(){var d=this,e=p.animateProperty({duration:d.duration,node:d._underlayNode,properties:{opacity:{start:d.opacity,end:0}},onEnd:function(){A.set(this.node,{display:"none",zIndex:"-1000"})}}),n=p.animateProperty({duration:d.duration,node:d._centerNode,properties:{opacity:{start:1,end:0}},onEnd:function(){A.set(this.node,{display:"none",zIndex:"-1000"});d.onHide();d._enableOverflow();delete d._anim}});this._anim=a.combine([e,n]);this._anim.play()},
_ignore:function(d){d&&H.stop(d)},_scrollerWidths:function(){var d=v.create("div");A.set(d,{position:"absolute",opacity:0,overflow:"hidden",width:"50px",height:"50px",zIndex:"-100",top:"-200px",padding:"0px",margin:"0px"});var e=v.create("div");A.set(e,{width:"200px",height:"10px"});d.appendChild(e);c.body().appendChild(d);e=B.getContentBox(d);A.set(d,"overflow","scroll");var n=B.getContentBox(d);c.body().removeChild(d);return{v:e.w-n.w,h:e.h-n.h}},_setTextAttr:function(d){this.text=this._textNode.innerHTML=
d},_setColorAttr:function(d){A.set(this._underlayNode,"backgroundColor",d);this.color=d},_setImageTextAttr:function(d){l.set(this._imageNode,"alt",d);this.imageText=d},_setImageAttr:function(d){l.set(this._imageNode,"src",d);this.image=d},_setCenterIndicatorAttr:function(d){this.centerIndicator=d;"image"===d?(this._centerNode=this._imageNode,A.set(this._textNode,"display","none")):(this._centerNode=this._textNode,A.set(this._imageNode,"display","none"))},_setTargetAttr:function(d){if("string"===typeof d){var e=
k.byId(d);this._set("target",e?e.domNode:g.byId(d))}else this._set("target",d)},_disableOverflow:function(){if(this.target===c.body()||this.target===c.doc){this._overflowDisabled=!0;var d=c.body();this._oldOverflow=d.style&&d.style.overflow?A.get(d,"overflow"):"";if(b("ie")&&!b("quirks")){if(d.parentNode&&d.parentNode.style&&d.parentNode.style.overflow)this._oldBodyParentOverflow=d.parentNode.style.overflow;else try{this._oldBodyParentOverflow=A.get(d.parentNode,"overflow")}catch(e){this._oldBodyParentOverflow=
"scroll"}A.set(d.parentNode,"overflow","hidden")}A.set(d,"overflow","hidden")}},_enableOverflow:function(){if(this._overflowDisabled){delete this._overflowDisabled;var d=c.body();b("ie")&&!b("quirks")&&(d.parentNode.style.overflow=this._oldBodyParentOverflow,delete this._oldBodyParentOverflow);A.set(d,"overflow",this._oldOverflow);if(b("webkit")){var e=v.create("div",{style:{height:"2px"}});d.appendChild(e);setTimeout(function(){d.removeChild(e)},0)}delete this._oldOverflow}}})})},"esri/toolbars/edit":function(){define("require dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/_base/Color dojo/has dojo/dom-construct dojo/dom-style ../kernel ../lang ../sniff ./_toolbar ./_Box ./_GraphicMover ./_VertexEditor ./TextEditor ../symbols/SimpleMarkerSymbol ../symbols/SimpleLineSymbol ../symbols/TextSymbol ../graphic".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c,p,a,r,w,k,d,e,n,q){var m=f(p,{declaredClass:"esri.toolbars.Edit",constructor:function(x,y){this._map=x;this._tool=0;if(this._map.loaded)this._scratchGL=x.graphics;else var E=H.connect(this._map,"onLoad",this,function(){H.disconnect(E);E=null;this._scratchGL=this._map.graphics});x=l("esri-mobile");this._defaultOptions=t.mixin({vertexSymbol:new d(d.STYLE_CIRCLE,x?20:12,new e(e.STYLE_SOLID,new g([0,0,0,.5]),1),new g([128,128,128])),ghostVertexSymbol:new d(d.STYLE_CIRCLE,
x?18:10,new e(e.STYLE_SOLID,new g([0,0,0,.5]),1),new g([255,255,255,.75])),ghostLineSymbol:new e(e.STYLE_DOT,new g([128,128,128]),2),allowDeleteVertices:!0,allowAddVertices:!0,rotateHandleOffset:x?24:16,boxLineSymbol:new e(e.STYLE_DASH,new g([64,64,64]),1),boxHandleSymbol:new d(d.STYLE_SQUARE,x?16:9,new e(e.STYLE_SOLID,new g([0,0,0,.5]),1),new g([255,255,255,.75])),textAnchorSymbol:new d(d.STYLE_CIRCLE,10,null,new g([255,0,0]))},y||{})},activate:function(x,y,E){this.deactivate();this._graphic=y;this._options=
t.mixin(t.mixin({},this._defaultOptions),E||{});var I=m.MOVE;E=m.EDIT_VERTICES;var J=m.SCALE,O=m.ROTATE,Q=m.EDIT_TEXT,T=!1,X=!1,Y=!1,W=this._map,U=W.spatialReference,ha=y.geometry.spatialReference;this._geo=!(!U||!ha||U.equals(ha)||!U.isWebMercator()||4326!==ha.wkid);this._isTextPoint=this._prepareTextSymbolEditing(y,x);(x&I)===I&&(T=this._enableMove(y));I=(x&J)===J;O=(x&O)===O;if(I||O)Y=this._enableBoxEditing(y,I,O);(x&E)===E&&(X=this._enableVertexEditing(y));(x&Q)===Q&&this._enableTextEditing(y);
if(!(T||X||Y))throw Error("[esri.toolbars.Edit::activate] Unable to activate the tool. Check if the tool is valid for the given geometry type.");if(this._tool=x)this._mapPanEndHandle=H.connect(W,"onPanEnd",this,this._mapPanEndHandler),this._mapExtChgHandle=H.connect(W,"onExtentChange",this,this._mapExtentChangeHandler),this.onActivate(this._tool,y);W.snappingManager&&(T||X)&&W.snappingManager._startSelectionLayerQuery()},deactivate:function(){this._isTextPoint=null;var x=this._tool,y=this._graphic;
if(x){var E=!!this._modified;this._clear();H.disconnect(this._mapPanEndHandle);H.disconnect(this._mapExtChgHandle);this._graphic=this._geo=this._mapPanEndHandle=this._mapExtChgHandle=null;this.onDeactivate(x,y,{isModified:E});this._map.snappingManager&&this._map.snappingManager._stopSelectionLayerQuery()}},refresh:function(){this._refreshMoveables(!0)},getCurrentState:function(){return{tool:this._tool,graphic:this._graphic,isModified:!!this._modified}},onActivate:function(x,y){},onDeactivate:function(x,
y,E){},onGraphicMoveStart:function(x){},onGraphicFirstMove:function(x){this._modified=!0},onGraphicMove:function(x,y){},onGraphicMoveStop:function(x,y){},onGraphicClick:function(x,y){},onVertexMoveStart:function(x,y){},onVertexFirstMove:function(x,y){this._modified=!0},onVertexMove:function(x,y,E){},onVertexMoveStop:function(x,y,E){},onVertexAdd:function(x,y){this._modified=!0},onVertexClick:function(x,y){},onVertexMouseOver:function(x,y){},onVertexMouseOut:function(x,y){},onVertexDelete:function(x,
y){this._modified=!0},onTextEditStart:function(x,y){},onTextEditEnd:function(x){},onScaleStart:function(x){},onScaleFirstMove:function(x){this._modified=!0},onScale:function(x,y){},onScaleStop:function(x,y){},onRotateStart:function(x){},onRotateFirstMove:function(x){this._modified=!0},onRotate:function(x,y){},onRotateStop:function(x,y){},_eventMap:{activate:["tool","graphic"],deactivate:["tool","graphic","info"],"graphic-move-start":["graphic"],"graphic-first-move":["graphic"],"graphic-move":["graphic",
"transform"],"graphic-move-stop":["graphic","transform"],"graphic-click":["graphic","info"],"vertex-move-start":["graphic","vertexinfo"],"vertex-first-move":["graphic","vertexinfo"],"vertex-move":["graphic","vertexinfo","transform"],"vertex-move-stop":["graphic","vertexinfo","transform"],"vertex-add":["graphic","vertexinfo"],"vertex-click":["graphic","vertexinfo"],"vertex-mouse-over":["graphic","vertexinfo"],"vertex-mouse-out":["graphic","vertexinfo"],"vertex-delete":["graphic","vertexinfo"],"scale-start":["graphic"],
"scale-first-move":["graphic"],scale:["graphic","info"],"scale-stop":["graphic","info"],"rotate-start":["graphic"],"rotate-first-move":["graphic"],rotate:["graphic","info"],"rotate-stop":["graphic","info"]},_prepareTextSymbolEditing:function(x,y){if("point"===x.geometry.type||"multipoint"===x.geometry.type){var E=x.getLayer(),I=E.renderer;E=x.symbol||E._getSymbol(x);!E&&(I.hasVisualVariables("sizeInfo",!1)||I.hasVisualVariables("colorInfo",!1)||I.hasVisualVariables("opacityInfo",!1))&&I.addBreak&&
I.infos&&1===I.infos.length&&(E=I.infos[0].symbol||I.defaultSymbol);if(E&&"textsymbol"===E.type){if((y&m.SCALE)===m.SCALE||(y&m.ROTATE)===m.ROTATE||(y&m.EDIT_TEXT)===m.EDIT_TEXT){x.setSymbol(new n(E.toJson()));var J=this;this._textSymbolEditor?(this._textSymbolEditor.createForm(x),this._textSymbolEditor.show()):this._options&&this._options.textSymbolEditor?(this._textSymbolEditor=this._options.textSymbolEditor,this._textSymbolEditor.on("symbol-change",function(){J._boxEditor&&J._boxEditor.refresh()})):
L(["../dijit/SymbolEditor"],function(O){if(!J._textSymbolEditor){var Q=J._options.textSymbolEditorHolder?v.create("div",null,J._options.textSymbolEditorHolder):v.create("div",null,J._map.root);J._textSymbolEditor=new O({graphic:x},Q);O=J._textSymbolEditor.domNode.parentNode.id;B.set(J._textSymbolEditor.domNode,{position:"map_root"===O?"absolute":"relative",left:"map_root"===O?J._map.width/2-100+"px":"5px",top:"20px","z-index":50});J._textSymbolEditor.startup();J._textSymbolEditor.createForm(x);J._textSymbolEditor.show();
J._textSymbolEditor.on("symbol-change",function(){J._boxEditor&&J._boxEditor.refresh()})}})}if((y&m.MOVE)===m.MOVE||(y&m.ROTATE)===m.ROTATE||(y&m.SCALE)===m.SCALE)this._textAnchor=new q(x.geometry,this._options.textAnchorSymbol),this._scratchGL.add(this._textAnchor);return!0}}return!1},_enableMove:function(x){var y=this._map;switch(x.geometry.type){case "point":case "polyline":case "polygon":return this._graphicMover=new r(x,y,this,this._textAnchor),!0}return!1},_enableVertexEditing:function(x){var y=
this._map;switch(x.geometry.type){case "multipoint":case "polyline":case "polygon":return this._vertexEditor=w.create(x,y,this),!0}return!1},_enableBoxEditing:function(x,y,E){var I=this._map,J=x.geometry.type;return"polyline"===J||"polygon"===J||this._isTextPoint?(this._boxEditor=new a(x,I,this,y,E,this._options.uniformScaling,this._isTextPoint),!0):!1},_enableTextEditing:function(x){return this._isTextPoint?(this._textEditor=new k(x,this._map,this),H.connect(this._textEditor,"onEditStart",t.hitch(this,
function(){this._textAnchor&&(this._textAnchor.getLayer().remove(this._textAnchor),this._textAnchor=null);this._map.disableKeyboardNavigation();this._disableMove();this._disableBoxEditing()})),!0):!1},_disableMove:function(){var x=this._graphicMover;x&&(x.destroy(),this._graphicMover=null)},_disableVertexEditing:function(){var x=this._vertexEditor;x&&(x.destroy(),this._vertexEditor=null)},_disableBoxEditing:function(){var x=this._boxEditor;x&&(x.destroy(),this._boxEditor=null)},_disableTextEditing:function(){this._textEditor&&
(this._textEditor.destroy(),this._textEditor=null);this._map.enableKeyboardNavigation()},_disableSymbolEditing:function(){this._textSymbolEditor&&this._textSymbolEditor.hide()},_clear:function(){this._disableMove();this._disableVertexEditing();this._disableBoxEditing();this._disableTextEditing();this._disableSymbolEditing();this._textAnchor&&(this._textAnchor.getLayer().remove(this._textAnchor),this._textAnchor=null);this._tool=0;this._modified=!1},_mapPanEndHandler:function(){this._refreshMoveables()},
_mapExtentChangeHandler:function(x,y,E){E&&this._refreshMoveables()},_refreshMoveables:function(x){var y=b.filter([this._graphicMover,this._vertexEditor,this._boxEditor],z.isDefined);b.forEach(y,function(E){E.refresh(x)})},_beginOperation:function(x){b.forEach(this._getAffectedTools(x),function(y){y.suspend()})},_endOperation:function(x){b.forEach(this._getAffectedTools(x),function(y){y.resume()})},_getAffectedTools:function(x){var y=[];switch(x){case "MOVE":y=[this._vertexEditor,this._boxEditor];
break;case "VERTICES":y=[this._boxEditor];break;case "BOX":y=[this._vertexEditor]}return y=b.filter(y,z.isDefined)}});t.mixin(m,{MOVE:1,EDIT_VERTICES:2,SCALE:4,ROTATE:8,EDIT_TEXT:16});l("extend-esri")&&t.setObject("toolbars.Edit",m,A);return m})},"esri/toolbars/_Box":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/Color dojo/has dojo/dom-style dojox/gfx/Moveable dojox/gfx/matrix ../kernel ../lang ../geometry/Point ../geometry/Polyline ../symbols/SimpleMarkerSymbol ../geometry/webMercatorUtils ../geometry/jsonUtils ../graphic".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c,p,a,r,w,k){L=L(null,{declaredClass:"esri.toolbars._Box",constructor:function(d,e,n,q,m,x,y){this._graphic=d;this._map=e;this._toolbar=n;this._scale=q;this._rotate=m;this._defaultEventArgs={};this._scaleEvent="Scale";this._rotateEvent="Rotate";this._uniformScaling=x;d=n._options;this._markerSymbol=d.boxHandleSymbol;this._lineSymbol=d.boxLineSymbol;this._moveStartHandler=f.hitch(this,this._moveStartHandler);this._firstMoveHandler=f.hitch(this,this._firstMoveHandler);
this._moveStopHandler=f.hitch(this,this._moveStopHandler);this._moveHandler=f.hitch(this,this._moveHandler);this._isTextPoint=y;this._init()},destroy:function(){this._cleanUp();this._graphic=this._map=this._toolbar=this._markerSymbol=this._lineSymbol=null},refresh:function(){this._draw()},suspend:function(){t.forEach(this._getAllGraphics(),function(d){d.hide()})},resume:function(){t.forEach(this._getAllGraphics(),function(d){d.show()});this._draw()},_init:function(){this._draw()},_cleanUp:function(){this._connects&&
t.forEach(this._connects,H.disconnect);var d=this._toolbar._scratchGL;this._anchors&&t.forEach(this._anchors,function(e){d.remove(e.graphic);(e=e.moveable)&&e.destroy()});this._box&&d.remove(this._box);this._box=this._anchors=this._connects=null},_draw:function(){if(this._graphic.getDojoShape()){var d=this._map,e=this._toolbar._scratchGL,n=this._getBoxCoords(),q=new p(d.spatialReference),m=f.clone(t.filter(n,function(x,y){return 8!==y&&0===y%2}));m[0]&&m.push([m[0][0],m[0][1]]);q.addPath(m);this._rotate&&
q.addPath([n[1],n[8]]);this._box?this._box.setGeometry(q):(this._box=new k(q,this._lineSymbol),e.add(this._box));this._anchors?t.forEach(this._anchors,function(x,y){this._scale||(y=8);var E=new c(n[y],d.spatialReference);x.graphic.setGeometry(E);E=x.moveable;var I=x.graphic.getDojoShape();I&&(E?I!==E.shape&&(E.destroy(),x.moveable=this._getMoveable(x.graphic,y)):x.moveable=this._getMoveable(x.graphic,y))},this):(this._anchors=[],this._connects=[],t.forEach(n,function(x,y){!this._scale&&8>y||(x=new c(x,
d.spatialReference),x=new k(x,this._markerSymbol),this._isTextPoint&&1===y%2&&x.hide(),e.add(x),this._anchors.push({graphic:x,moveable:this._getMoveable(x,y)}))},this))}else this._cleanUp()},_getBoxCoords:function(d){var e=this._map,n=[],q,m,x;if(this._isTextPoint){var y=this._graphic.getNode().getBoundingClientRect();var E=e.__container.getBoundingClientRect();y=[{x:y.left-E.left,y:y.top-E.top},{x:y.right-E.left,y:y.top-E.top},{x:y.right-E.left,y:y.bottom-E.top},{x:y.left-E.left,y:y.bottom-E.top}]}else y=
this._getTransformedBoundingBox(this._graphic);t.forEach(y,function(I,J,O){q=I;(m=O[J+1])||(m=O[0]);x={x:(q.x+m.x)/2,y:(q.y+m.y)/2};d||(q=e.toMap(q),x=e.toMap(x));n.push([q.x,q.y]);n.push([x.x,x.y])});this._rotate&&(y=f.clone(n[1]),y=d?{x:y[0],y:y[1]}:e.toScreen({x:y[0],y:y[1],spatialReference:e.spatialReference}),y.y-=this._toolbar._options.rotateHandleOffset,d||(y=e.toMap(y)),n.push([y.x,y.y]));return n},_getTransformedBoundingBox:function(d){var e=this._map,n=d.geometry.getExtent(),q=d.geometry.spatialReference;
d=new c(n.xmin,n.ymax,q);n=new c(n.xmax,n.ymin,q);d=e.toScreen(d);n=e.toScreen(n);return[{x:d.x,y:d.y},{x:n.x,y:d.y},{x:n.x,y:n.y},{x:d.x,y:n.y}]},_getAllGraphics:function(){var d=[this._box];this._anchors&&t.forEach(this._anchors,function(e){d.push(e.graphic)});return d=t.filter(d,z.isDefined)},_getMoveable:function(d,e){var n=d.getDojoShape();if(n)return d=new v(n),d._index=e,this._connects.push(H.connect(d,"onMoveStart",this._moveStartHandler)),this._connects.push(H.connect(d,"onFirstMove",this._firstMoveHandler)),
this._connects.push(H.connect(d,"onMoveStop",this._moveStopHandler)),d.onMove=this._moveHandler,(n=n.getEventSource())&&l.set(n,"cursor",this._toolbar._cursors["box"+e]),d},_moveStartHandler:function(d){this._toolbar["on"+(8===d.host._index?this._rotateEvent:this._scaleEvent)+"Start"](this._graphic)},_firstMoveHandler:function(d){this._toolbar._deactivateScrollWheel();var e=d.host._index,n=this._wrapOffset=d.host.shape._wrapOffsets[0]||0,q=this._graphic.getLayer().getNavigationTransform();d=t.map(this._getBoxCoords(!0),
function(x){return{x:x[0]+n,y:x[1]}});var m=this._isTextPoint?this._map.toScreen(this._graphic.geometry):{x:d[1].x,y:d[3].y};this._centerCoord=B.multiplyPoint(B.invert(q),m);if(8===e)m=B.multiplyPoint(B.invert(q),d[1]),this._isTextPoint&&(this._centerCoord=this._deNormalizePoint(this._centerCoord,m)),this._startLine=[this._centerCoord,m],this._moveLine=f.clone(this._startLine);else if(m=B.multiplyPoint(B.invert(q),d[e]),q=B.multiplyPoint(B.invert(q),d[(e+4)%8]),this._isTextPoint&&(this._centerCoord=
this._deNormalizePoint(this._centerCoord,m)),this._firstMoverToAnchor=Math.sqrt((m.x-this._centerCoord.x)*(m.x-this._centerCoord.x)+(m.y-this._centerCoord.y)*(m.y-this._centerCoord.y)),this._startBox=q,this._startBox.width=d[4].x-d[0].x,this._startBox.height=d[4].y-d[0].y,this._moveBox=f.clone(this._startBox),this._xfactor=m.x>q.x?1:-1,this._yfactor=m.y>q.y?1:-1,1===e||5===e)this._xfactor=0;else if(3===e||7===e)this._yfactor=0;this._toolbar._beginOperation("BOX");this._toolbar["on"+(8===e?this._rotateEvent:
this._scaleEvent)+"FirstMove"](this._graphic)},_moveHandler:function(d,e){d=d.host._index;var n=this._defaultEventArgs;n.angle=0;n.scaleX=1;n.scaleY=1;if(8===d){var q=this._startLine;var m=this._moveLine;var x=m[1];x.x+=e.dx;x.y+=e.dy;e=this._getAngle(q,m);this._isTextPoint&&(e+=this._graphic.symbol.angle);m=B.rotategAt(e,q[0]);this._graphic.getDojoShape().setTransform(m);n.transform=m;n.angle=e;n.around=q[0]}else{q=this._startBox;m=this._moveBox;m.width+=e.dx*this._xfactor;m.height+=e.dy*this._yfactor;
this._uniformScaling||this._isTextPoint?(q=m.x+this._xfactor*m.width,m=m.y+this._yfactor*m.height,q=Math.sqrt((q-this._centerCoord.x)*(q-this._centerCoord.x)+(m-this._centerCoord.y)*(m-this._centerCoord.y)),this._scaleRatio=e=x=q/this._firstMoverToAnchor,q=this._centerCoord):(e=m.width/q.width,x=m.height/q.height,q={x:q.x,y:q.y});if(isNaN(e)||Infinity===e||-Infinity===e)e=1;if(isNaN(x)||Infinity===x||-Infinity===x)x=1;m=B.scaleAt(e,x,q);if(this._isTextPoint){var y=B.rotategAt(this._graphic.symbol.angle,
q);this._graphic.getDojoShape().setTransform([y,m])}else this._graphic.getDojoShape().setTransform(m);n.transform=m;n.scaleX=e;n.scaleY=x;n.around=q}this._toolbar["on"+(8===d?this._rotateEvent:this._scaleEvent)](this._graphic,n)},_moveStopHandler:function(d){this._toolbar._activateScrollWheel();var e=this._graphic,n=this._toolbar,q=n._geo?r.geographicToWebMercator(e.geometry):e.geometry,m=q.spatialReference,x=e.getDojoShape(),y=x.getTransform(),E=e.getLayer().getNavigationTransform();this._isTextPoint?
(e=this._graphic.symbol,8===d.host._index?e.angle+=this._getAngle(this._startLine,this._moveLine):e.font.setSize(Math.round(e.font.size*this._scaleRatio*100)/100),this._graphic.setSymbol(e)):(q=q.toJson(),this._updateSegments(q.paths||q.rings,y,E,m),x.setTransform(null),q=w.fromJson(q),e.setGeometry(n._geo?r.webMercatorToGeographic(q,!0):q));this._draw();this._startLine=this._moveLine=this._startBox=this._moveBox=this._xfactor=this._yfactor=null;n._endOperation("BOX");this._defaultEventArgs.transform=
y;n["on"+(8===d.host._index?this._rotateEvent:this._scaleEvent)+"Stop"](this._graphic,this._defaultEventArgs)},_updateSegments:function(d,e,n,q){var m=this._map,x=this._wrapOffset||0;t.forEach(d,function(y){t.forEach(y,function(E){this._updatePoint(E,q,x,B,m,n,e)},this)},this)},_updatePoint:function(d,e,n,q,m,x,y){e=m.toScreen({x:d[0],y:d[1],spatialReference:e},!0);e.x+=n;e=q.multiplyPoint([x,y,q.invert(x)],e);e.x-=n;n=m.toMap(e);d[0]=n.x;d[1]=n.y},_getAngle:function(d,e){return 180*Math.atan2(e[0].y-
e[1].y,e[0].x-e[1].x)/Math.PI-180*Math.atan2(d[0].y-d[1].y,d[0].x-d[1].x)/Math.PI},_deNormalizePoint:function(d,e){var n=this._map._getFrameWidth();if(-1===n)return d;for(d={x:d.x,y:d.y};Math.abs(d.x-e.x)>=n;)d.x=d.x<e.x?d.x+n:d.x-n;var q=Math.abs(d.x-e.x);Math.abs(d.x-e.x+n)<q?d.x+=n:Math.abs(d.x-e.x-n)<q&&(d.x-=n);return d}});g("extend-esri")&&f.setObject("toolbars._Box",L,A);return L})},"dojox/gfx/Moveable":function(){define("dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/event dojo/topic dojo/touch dojo/dom-class dojo/_base/window ./Mover dojo/mouse".split(" "),
function(L,f,t,H,b,g,l,v,B,A){return f("dojox.gfx.Moveable",null,{constructor:function(z,c){this.shape=z;this.delay=c&&0<c.delay?c.delay:0;this.mover=c&&c.mover?c.mover:B;this.leftButtonOnly=c&&c.leftButtonOnly;this.events=[this.shape.on(g.press,L.hitch(this,"onMouseDown"))]},destroy:function(){t.forEach(this.events,function(z){z.remove()});this.events=this.shape=null},onMouseDown:function(z){this.delay?(this.events.push(this.shape.on(g.move,L.hitch(this,"onMouseMove")),this.shape.on(g.release,L.hitch(this,
"onMouseUp"))),this._lastX=z.clientX,this._lastY=z.clientY):this.leftButtonOnly&&!A.isLeft(z)||new this.mover(this.shape,z,this);H.stop(z)},onMouseMove:function(z){var c=z.clientY;if(Math.abs(z.clientX-this._lastX)>this.delay||Math.abs(c-this._lastY)>this.delay)this.onMouseUp(z),new this.mover(this.shape,z,this);H.stop(z)},onMouseUp:function(z){this.events.pop().remove()},onMoveStart:function(z){b.publish("/gfx/move/start",z);l.add(v.body(),"dojoMove")},onMoveStop:function(z){b.publish("/gfx/move/stop",
z);l.remove(v.body(),"dojoMove")},onFirstMove:function(z){},onMove:function(z,c,p){this.onMoving(z,c,p);this.shape.applyLeftTransform(c);this.onMoved(z,c)},onMoving:function(z,c){},onMoved:function(z,c){}})})},"dojox/gfx/Mover":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/on dojo/touch dojo/_base/event".split(" "),function(L,f,t,H,b,g){return t("dojox.gfx.Mover",null,{constructor:function(l,v,B){this.shape=l;this.lastX=v.clientX;this.lastY=v.clientY;l=this.host=B;v=
document;B=H(v,b.move,L.hitch(this,"onFirstMove"));this.events=[H(v,b.move,L.hitch(this,"onMouseMove")),H(v,b.release,L.hitch(this,"destroy")),H(v,"dragstart",L.hitch(g,"stop")),H(v,"selectstart",L.hitch(g,"stop")),B];if(l&&l.onMoveStart)l.onMoveStart(this)},onMouseMove:function(l){var v=l.clientX,B=l.clientY;this.host.onMove(this,{dx:v-this.lastX,dy:B-this.lastY},l);this.lastX=v;this.lastY=B;g.stop(l)},onFirstMove:function(){this.host.onFirstMove(this);this.events.pop().remove()},destroy:function(){f.forEach(this.events,
function(v){v.remove()});var l=this.host;if(l&&l.onMoveStop)l.onMoveStop(this);this.events=this.shape=null}})})},"esri/toolbars/_GraphicMover":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/_base/json dojo/dom-style dojox/gfx/Moveable dojox/gfx/Mover dojox/gfx/matrix ../kernel ../PointerEvents ../sniff ../geometry/webMercatorUtils ../geometry/ScreenPoint ../geometry/Point".split(" "),function(L,f,t,H,b,g,l,v,B,A,z,c,p,a){var r=L(null,{declaredClass:"esri.toolbars._GraphicMover",
constructor:function(w,k,d,e){this.graphic=w;this.map=k;this.toolbar=d;this.tempPt=e;this._enableGraphicMover();this._moved=!1},refresh:function(w){var k=this.graphic.getDojoShape();!k||!w&&k._hostGraphic||(this._disableGraphicMover(),this._enableGraphicMover())},destroy:function(){this._disableGraphicMover()},hasMoved:function(){return this._moved},_enableGraphicMover:function(){var w=this.graphic,k=w.getDojoShape();k&&(k._hostGraphic=w,this._moveable=new g(k,{mover:r.Mover}),this._moveStartHandle=
t.connect(this._moveable,"onMoveStart",this,this._moveStartHandler),this._firstMoveHandle=t.connect(this._moveable,"onFirstMove",this,this._firstMoveHandler),this._movingHandle=t.connect(this._moveable,"onMoving",this,this._movingHandler),this._moveStopHandle=t.connect(this._moveable,"onMoveStop",this,this._moveStopHandler),(w=k.getEventSource())&&b.set(w,"cursor",this.toolbar._cursors.move))},_disableGraphicMover:function(){var w=this._moveable;if(w){t.disconnect(this._moveStartHandle);t.disconnect(this._firstMoveHandle);
t.disconnect(this._movingHandle);t.disconnect(this._moveStopHandle);var k=w.shape;k&&(k._hostGraphic=null,(k=k.getEventSource())&&b.set(k,"cursor","inherit"));w.destroy()}this._moveable=null},_moveStartHandler:function(){var w=this.graphic,k=this.map;this._startTx=w.getDojoShape().getTransform();"point"===this.graphic.geometry.type&&k.snappingManager&&k.snappingManager._setUpSnapping();this.toolbar.onGraphicMoveStart(w)},_firstMoveHandler:function(){this.toolbar._beginOperation("MOVE");this.toolbar.onGraphicFirstMove(this.graphic)},
_movingHandler:function(w,k,d){w=w.shape.getTransform();k=this.map;var e;z("esri-pointer")?e=k.navigationManager.pointerEvents._processTouchEvent(d,d):d&&"pointermove"===d.type&&(e=A.prototype._processTouchEvent.call({map:k},d,d));e&&k.snappingManager&&k.snappingManager._onSnappingMouseMoveHandler(e);this.tempPt&&this.tempPt.getDojoShape().setTransform(w);this.toolbar.onGraphicMove(this.graphic,w)},_moveStopHandler:function(w){var k=this.graphic,d=this.toolbar,e=this.map,n=d._geo?c.geographicToWebMercator(k.geometry):
k.geometry,q=n.type,m=k.getDojoShape(),x=m.getTransform();if(H.toJson(x)!==H.toJson(this._startTx)){this._moved=!0;switch(q){case "point":q=[x,v.invert(this._startTx)];if(e.snappingManager)var y=e.snappingManager._snappingPoint;n=y||e.toMap(v.multiplyPoint(q,e.toScreen(n,!0)));e.snappingManager&&e.snappingManager._killOffSnapping();break;case "polyline":n=this._updatePolyGeometry(n,n.paths,x);break;case "polygon":n=this._updatePolyGeometry(n,n.rings,x)}m.setTransform(null);k.setGeometry(d._geo?c.webMercatorToGeographic(n,
!0):n);this.tempPt&&this.tempPt.setGeometry(new a(k.geometry.toJson()))}else this._moved=!1;d._endOperation("MOVE");d.onGraphicMoveStop(k,x);this._moved||(w=w.__e,e=this.map.position,w=new p(w.pageX-e.x,w.pageY-e.y),d.onGraphicClick(k,{screenPoint:w,mapPoint:this.map.toMap(w)}))},_updatePolyGeometry:function(w,k,d){var e=this.map,n=w.getPoint(0,0);e=e.toMap(e.toScreen(n).offset(d.dx,d.dy));d=e.x-n.x;n=e.y-n.y;var q;for(e=0;e<k.length;e++){var m=k[e];for(q=0;q<m.length;q++){var x=w.getPoint(e,q);w.setPoint(e,
q,x.offset(d,n))}}return w}});r.Mover=L(l,{declaredClass:"esri.toolbars._Mover",constructor:function(w,k,d){this.__e=k}});z("extend-esri")&&(f.setObject("toolbars._GraphicMover",r,B),f.setObject("toolbars._Mover",r.Mover,B));return r})},"esri/toolbars/_VertexEditor":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/has dijit/Menu dijit/MenuItem ../kernel ./_VertexMover ../geometry/Point ../geometry/jsonUtils dojo/i18n!../nls/jsapi".split(" "),function(L,
f,t,H,b,g,l,v,B,A,z,c){var p=L(null,{declaredClass:"esri.toolbars._GraphicVertexEditor",constructor:function(a,r,w){this.graphic=a;this.map=r;this.toolbar=w;a=w._options;this._symbol1=a.vertexSymbol;this._symbol2=a.ghostVertexSymbol;r=a.ghostLineSymbol;this._lineStroke={style:r.style,width:r.width,color:r.color};this._canDel=a.allowDeleteVertices;this._canAdd=a.allowAddVertices;this._addControllers()},destroy:function(){this._removeControllers()},refresh:function(a){a?(this._removeControllers(),this._addControllers()):
(this._refresh(this._vertexMovers),this._refresh(this._mpVertexMovers))},suspend:function(){this._suspended||this._removeControllers();this._suspended=!0},resume:function(){this._suspended&&this._addControllers();this._suspended=!1},_addControllers:function(){this._firstMoveHandle=t.connect(B,"onFirstMove",this,this._firstMoveHandler);this._moveStopHandle=t.connect(B,"onMoveStop",this,this._moveStopHandler);this._vertexMovers=this._add(this._getSegments(this.graphic.geometry),this._symbol1);this._canAdd&&
(this._mpVertexMovers=this._add(this._getMidpointSegments(this.graphic.geometry),this._symbol2,!0));var a=this._getGraphicsLayer();this._mouseOverHandle=t.connect(a,"onMouseOver",this,this._mouseOverHandler);this._mouseOutHandle=t.connect(a,"onMouseOut",this,this._mouseOutHandler);this._canDel&&(this._ctxMenu=new g({style:"font-size: 12px; margin-left: 5px; margin-top: 5px;"}),a=this._ctxDelete=new l({label:c.toolbars.edit.deleteLabel,iconClass:"vertexDeleteIcon",style:"outline: none;"}),this._deleteHandle=
t.connect(a,"onClick",this,this._deleteHandler),this._ctxMenu.addChild(a),this._ctxMenu.startup())},_removeControllers:function(){t.disconnect(this._firstMoveHandle);t.disconnect(this._moveStopHandle);t.disconnect(this._mouseOverHandle);t.disconnect(this._mouseOutHandle);t.disconnect(this._deleteHandle);this._ctxMenu&&(this._ctxDelete=null,this._unbindCtxNode(),this._ctxMenu.destroyRecursive());this._remove(this._vertexMovers);this._remove(this._mpVertexMovers);this._vertexMovers=this._mpVertexMovers=
null},_add:function(a,r,w){var k,d,e=this.graphic,n=[];for(k=0;k<a.length;k++){var q=a[k],m=[];for(d=0;d<q.length;d++)m.push(new B(q[d],r,e,k,d,q.length,this,w));n.push(m)}return n},_remove:function(a){a&&H.forEach(a,function(r){H.forEach(r,function(w){w.destroy()})})},_refresh:function(a){a&&H.forEach(a,function(r){H.forEach(r,function(w){w.refresh()})})},_isNew:function(a){return-1===H.indexOf(this._vertexMovers[a.segIndex],a)?!0:!1},_getGraphicsLayer:function(){return this.toolbar._scratchGL},
_deleteHandler:function(a){a=this._selectedMover;this._updateRelatedGraphic(a,a.relatedGraphic,a.graphic.geometry,a.segIndex,a.ptIndex,a.segLength,!1,!0);this._canAdd&&this._deleteMidpoints(a);this._deleteVertex(a);this.toolbar._endOperation("VERTICES")},_mouseOverHandler:function(a){a=a.graphic;var r=this._findMover(a);r&&(this.toolbar.onVertexMouseOver(this.graphic,r._getInfo()),r._placeholder||(this._selectedMover=r,this._canDel&&this._bindCtxNode(a.getDojoShape().getNode())))},_mouseOutHandler:function(a){if(a=
this._findMover(a.graphic))this.toolbar.onVertexMouseOut(this.graphic,a._getInfo())},_bindCtxNode:function(a){this._unbindCtxNode();this._ctxDelete.set("disabled",this._selectedMover.segLength<=this.minLength?!0:!1);this._ctxMenu.bindDomNode(a);this._bindNode=a},_unbindCtxNode:function(){var a=this._bindNode;a&&this._ctxMenu.unBindDomNode(a)},_findMover:function(a){var r=[];var w=this._mpVertexMovers;H.forEach(this._vertexMovers,function(d){r=r.concat(d)});w&&H.forEach(w,function(d){r=r.concat(d)});
for(w=0;w<r.length;w++){var k=r[w];if(k.graphic===a)return k}},_firstMoveHandler:function(a){!this._isNew(a)&&this._canAdd&&this._hideRelatedMidpoints(a);this.toolbar._beginOperation("VERTICES")},_moveStopHandler:function(a,r){var w=this._isNew(a);r&&(r.dx||r.dy)?(this._updateRelatedGraphic(a,a.relatedGraphic,a.graphic.geometry,a.segIndex,a.ptIndex,a.segLength,w),this._canAdd&&(w?this._addMidpoints(a):(this._repositionRelatedMidpoints(a),this._showRelatedMidpoints(a))),this.toolbar._endOperation("VERTICES")):
!w&&this._canAdd&&this._showRelatedMidpoints(a)},_showRelatedMidpoints:function(a){var r=this._getAdjacentMidpoints(a.ptIndex,a.segLength),w=this._mpVertexMovers[a.segIndex];for(a=0;a<r.length;a++){var k=w[r[a]];k.graphic.show();k.refresh()}},_hideRelatedMidpoints:function(a){var r=this._getAdjacentMidpoints(a.ptIndex,a.segLength),w=this._mpVertexMovers[a.segIndex];for(a=0;a<r.length;a++)w[r[a]].graphic.hide()},_repositionRelatedMidpoints:function(a){var r,w=this._getAdjacentMidpoints(a.ptIndex,a.segLength),
k=this._mpVertexMovers[a.segIndex];for(r=0;r<w.length;r++){var d=this._getAdjacentVertices(w[r],a.segLength),e=a.relatedGraphic.geometry.getPoint(a.segIndex,d[0]);d=a.relatedGraphic.geometry.getPoint(a.segIndex,d[1]);e=new A({x:(e.x+d.x)/2,y:(e.y+d.y)/2,spatialReference:e.spatialReference.toJson()});k[w[r]].graphic.setGeometry(e)}},_addMidpoints:function(a){var r=a.segIndex,w=a.ptIndex,k=a.segLength,d=w+1,e,n=k+1;this._mpVertexMovers[r].splice(w,1);var q=this._vertexMovers[r];for(e=0;e<d;e++)q[e].segLength+=
1;for(e=d;e<q.length;e++)q[e].ptIndex+=1,q[e].segLength+=1;a.ptIndex=d;a.segLength=q.length+1;q.splice(d,0,a);a.graphic.setSymbol(this._symbol1);q=this._mpVertexMovers[r];for(e=0;e<w;e++)q[e].segLength+=1;for(e=w;e<k-1;e++)q[e].ptIndex+=1,q[e].segLength+=1;d=this._getAdjacentVertices(w,n);r=this._getAdjacentVertices(w+1,n);k=a.relatedGraphic.geometry.getPoint(a.segIndex,d[0]);e=a.relatedGraphic.geometry.getPoint(a.segIndex,d[1]);d=new A({x:(k.x+e.x)/2,y:(k.y+e.y)/2,spatialReference:k.spatialReference.toJson()});
k=a.relatedGraphic.geometry.getPoint(a.segIndex,r[0]);e=a.relatedGraphic.geometry.getPoint(a.segIndex,r[1]);r=new A({x:(k.x+e.x)/2,y:(k.y+e.y)/2,spatialReference:k.spatialReference.toJson()});k=new B(d,this._symbol2,this.graphic,a.segIndex,w,n,this,!0);a=new B(r,this._symbol2,this.graphic,a.segIndex,w+1,n,this,!0);q.splice(w,0,k,a)},_deleteVertex:function(a){var r,w=a.ptIndex,k=this._vertexMovers[a.segIndex];for(r=0;r<w;r++)--k[r].segLength;for(r=w+1;r<k.length;r++){var d=k[r];--d.ptIndex;--d.segLength}k.splice(w,
1);r=a._getInfo();a.destroy();this.toolbar.onVertexDelete(this.graphic,r)}});f.mixin(p,{create:function(a,r,w){switch(a.geometry.type){case "multipoint":return new p.MultipointVertexEditor(a,r,w);case "polyline":return new p.PolylineVertexEditor(a,r,w);case "polygon":return new p.PolygonVertexEditor(a,r,w)}}});p.MultipointVertexEditor=L(p,{declaredClass:"esri.toolbars._MultipointVertexEditor",minLength:1,constructor:function(){this._moveStartHandle=t.connect(B,"onMoveStart",this,this._moveStartHandler);
t.disconnect(this._firstMoveHandle)},destroy:function(){this.inherited(arguments);t.disconnect(this._moveStartHandle)},_getSegments:function(a){var r=a.points,w=[],k=a.spatialReference;for(a=0;a<r.length;a++){var d=r[a];w.push(new A({x:d[0],y:d[1],spatialReference:k.toJson()}))}return[w]},_getMidpointSegments:function(a){return[]},_getControlPoints:function(a,r,w,k,d){return[]},_getGraphicsLayer:function(){return this.graphic._graphicsLayer},_mouseOverHandler:function(a){var r=a.graphic;if(a=this._findMover(a))this.toolbar.onVertexMouseOver(r,
a._getInfo()),this._selectedMover=a,this._canDel&&this._bindCtxNode(a.graphic.getDojoShape().getNode())},_mouseOutHandler:function(a){var r=a.graphic;if(a=this._findMover(a))this.toolbar.onVertexMouseOut(r,a._getInfo())},_findMover:function(a){var r=[].concat(this._vertexMovers[0]),w=a.target;for(a=0;a<r.length;a++){var k=r[a];if(k.graphic.getDojoShape().getNode()===w)return k}},_moveStartHandler:function(a){var r=a.ptIndex,w=a.segLength-1,k=a.relatedGraphic.geometry.points;a=k.splice(r,1);k.push(a[0]);
k=this._vertexMovers[0];for(a=w;a>r;a--)--k[a].ptIndex;a=k.splice(r,1);k.push(a[0]);a[0].ptIndex=w},_moveStopHandler:function(a){this._updateRelatedGraphic(a,a.relatedGraphic,a.graphic.geometry,a.segIndex,a.ptIndex,a.segLength);this.toolbar._endOperation("VERTICES")},_updateRelatedGraphic:function(a,r,w,k,d,e,n,q){a=r.geometry;q?a.removePoint(d):a.setPoint(d,w);r.setGeometry(a)},_deleteMidpoints:function(a){}});p.PolylineVertexEditor=L(p,{declaredClass:"esri.toolbars._PolylineVertexEditor",minLength:2,
_getSegments:function(a){var r,w,k=a.paths,d=[];for(r=0;r<k.length;r++){var e=k[r],n=[];for(w=0;w<e.length;w++)n.push(a.getPoint(r,w));d.push(n)}return d},_getMidpointSegments:function(a){var r,w,k=a.paths,d=[],e=a.spatialReference;for(r=0;r<k.length;r++){var n=k[r],q=[];for(w=0;w<n.length-1;w++){var m=a.getPoint(r,w),x=a.getPoint(r,w+1);m=new A({x:(m.x+x.x)/2,y:(m.y+x.y)/2,spatialReference:e.toJson()});q.push(m)}d.push(q)}return d},_getControlPoints:function(a,r,w,k,d){var e=this.map,n,q;this._isNew(a)?
(a=k,k+=1,0<=a&&(n=e.toScreen(r.getPoint(w,a))),k<=d&&(q=e.toScreen(r.getPoint(w,k)))):(a=k-1,k+=1,0<=a&&(n=e.toScreen(r.getPoint(w,a))),k<d&&(q=e.toScreen(r.getPoint(w,k))));return[n,q]},_getAdjacentMidpoints:function(a,r){var w=[],k=a-1;0<=k&&w.push(k);a<r-1&&w.push(a);return w},_getAdjacentVertices:function(a,r){return[a,a+1]},_deleteMidpoints:function(a){var r=this._mpVertexMovers[a.segIndex],w=r.length-1,k=this._getAdjacentMidpoints(a.ptIndex,a.segLength).sort(),d,e=k[0];for(d=0;d<e;d++)--r[d].segLength;
for(d=e+1;d<r.length;d++){var n=r[d];--n.ptIndex;--n.segLength}if(1===k.length)r.splice(e,1)[0].destroy();else for(n=this._getAdjacentVertices(e,w),d=a.relatedGraphic.geometry.getPoint(a.segIndex,n[0]),n=a.relatedGraphic.geometry.getPoint(a.segIndex,n[1]),d=new A({x:(d.x+n.x)/2,y:(d.y+n.y)/2,spatialReference:d.spatialReference.toJson()}),a=new B(d,this._symbol2,this.graphic,a.segIndex,e,w,this,!0),r=r.splice(e,k.length,a),d=0;d<r.length;d++)r[d].destroy()},_updateRelatedGraphic:function(a,r,w,k,d,
e,n,q){a=r.geometry;n?a.insertPoint(k,d+1,z.fromJson(w.toJson())):q?a.removePoint(k,d):a.setPoint(k,d,z.fromJson(w.toJson()));r.setGeometry(a)}});p.PolygonVertexEditor=L(p,{declaredClass:"esri.toolbars._PolygonVertexEditor",minLength:3,_getSegments:function(a){var r,w,k=a.rings,d=[];for(r=0;r<k.length;r++){var e=k[r],n=[];for(w=0;w<e.length-1;w++)n.push(a.getPoint(r,w));d.push(n)}return d},_getMidpointSegments:function(a){var r,w,k=a.rings,d=[],e=a.spatialReference;for(r=0;r<k.length;r++){var n=k[r],
q=[];for(w=0;w<n.length-1;w++){var m=a.getPoint(r,w),x=a.getPoint(r,w+1);m=new A({x:(m.x+x.x)/2,y:(m.y+x.y)/2,spatialReference:e.toJson()});q.push(m)}d.push(q)}return d},_getControlPoints:function(a,r,w,k,d){var e=this.map;this._isNew(a)?a=k:(a=k-1,a=0>a?(d+a)%d:a);k=(k+1)%d;d=e.toScreen(r.getPoint(w,a));r=e.toScreen(r.getPoint(w,k));return[d,r]},_getAdjacentMidpoints:function(a,r){var w=a-1;return[0>w?(r+w)%r:w,a]},_getAdjacentVertices:function(a,r){return[a,(a+1)%r]},_deleteMidpoints:function(a){var r=
a.ptIndex,w=this._mpVertexMovers[a.segIndex],k=w.length-1,d=this._getAdjacentMidpoints(r,a.segLength).sort();var e=d[0];var n=d[d.length-1];if(0===r){var q=this._getAdjacentVertices(k-1,k);r=a.relatedGraphic.geometry.getPoint(a.segIndex,q[0]);q=a.relatedGraphic.geometry.getPoint(a.segIndex,q[1]);r=new A({x:(r.x+q.x)/2,y:(r.y+q.y)/2,spatialReference:r.spatialReference.toJson()});a=new B(r,this._symbol2,this.graphic,a.segIndex,k-1,k,this,!0);w.splice(n,1,a)[0].destroy();w.splice(e,1)[0].destroy();for(d=
0;d<w.length-1;d++)e=w[d],--e.ptIndex,--e.segLength}else{q=this._getAdjacentVertices(e,k);r=a.relatedGraphic.geometry.getPoint(a.segIndex,q[0]);q=a.relatedGraphic.geometry.getPoint(a.segIndex,q[1]);r=new A({x:(r.x+q.x)/2,y:(r.y+q.y)/2,spatialReference:r.spatialReference.toJson()});a=new B(r,this._symbol2,this.graphic,a.segIndex,e,k,this,!0);n=w.splice(e,d.length,a);for(d=0;d<n.length;d++)n[d].destroy();for(d=0;d<e;d++)--w[d].segLength;for(d=e+1;d<w.length;d++)e=w[d],--e.ptIndex,--e.segLength}},_updateRelatedGraphic:function(a,
r,w,k,d,e,n,q){a=r.geometry;n?a.insertPoint(k,d+1,z.fromJson(w.toJson())):q?(a.removePoint(k,d),0===d&&a.setPoint(k,e-1,z.fromJson(a.getPoint(k,0).toJson()))):(a.setPoint(k,d,z.fromJson(w.toJson())),0===d&&a.setPoint(k,e,z.fromJson(w.toJson())));r.setGeometry(a)}});b("extend-esri")&&(f.setObject("toolbars._GraphicVertexEditor",p,v),f.setObject("toolbars._MultipointVertexEditor",p.MultipointVertexEditor,v),f.setObject("toolbars._PolylineVertexEditor",p.PolylineVertexEditor,v),f.setObject("toolbars._PolygonVertexEditor",
p.PolygonVertexEditor,v));return p})},"esri/toolbars/_VertexMover":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/sniff dojo/dom-style dojox/gfx/Moveable dojox/gfx/matrix ../kernel ../PointerEvents ../sniff ../geometry/Point ../graphic ../geometry/webMercatorUtils".split(" "),function(L,f,t,H,b,g,l,v,B,A,z,c,p){L=L(null,{declaredClass:"esri.toolbars.VertexMover",constructor:function(a,r,w,k,d,e,n,q){this.point=a;this.symbol=r;this.relatedGraphic=w;this.segIndex=k;this.ptIndex=
d;this.segLength=e;this.editor=n;this.map=n.map;this._scratchGL=n.toolbar._scratchGL;this._placeholder=q||!1;this._type=w.geometry.type;this._init();this._enable()},refresh:function(a){if(a||this._needRefresh())this._disable(),this._enable()},destroy:function(){this._disable();this.graphic&&this._scratchGL.remove(this.graphic);this.point=this.symbol=this.graphic=this.relatedGraphic=this.segIndex=this.ptIndex=this.segLength=this.editor=this.map=this._scratchGL=null},_init:function(){var a=new z(this.point.toJson());
a=new c(a,this.symbol);switch(this._type){case "multipoint":a._shape=this.relatedGraphic.getDojoShape().children[this.ptIndex];break;case "polyline":case "polygon":this._scratchGL.add(a)}this.graphic=a},_enable:function(){var a=this.graphic.getDojoShape();a&&(a._hasMover=!0,this._moveable=this._getMoveable(a),(a=a.getEventSource())&&b.set(a,"cursor",this.editor.toolbar._cursors[this._placeholder?"move-gv":"move-v"]))},_disable:function(){var a=this._moveable;if(a){t.disconnect(this._startHandle);
t.disconnect(this._firstHandle);t.disconnect(this._movingHandle);t.disconnect(this._stopHandle);var r=a.shape;r&&(r=r.getEventSource())&&b.set(r,"cursor","inherit");a.destroy();this._moveable=null}},_needRefresh:function(){var a=this.graphic.getDojoShape(),r=!1;if(a)switch(this._type){case "multipoint":var w=this.relatedGraphic.getDojoShape();w&&(w=w.children[this.ptIndex],a!==w&&(this.graphic._shape=w,r=!0));break;case "polyline":case "polygon":r=!a._hasMover}return r},_getMoveable:function(a){a=
new g(a,H("mac")&&H("ff")&&!A("esri-touch")&&{leftButtonOnly:!0});this._startHandle=t.connect(a,"onMoveStart",this,this._moveStartHandler);this._firstHandle=t.connect(a,"onFirstMove",this,this._firstMoveHandler);this._movingHandle=t.connect(a,"onMoving",this,this._movingHandler);this._stopHandle=t.connect(a,"onMoveStop",this,this._moveStopHandler);return a},_getPtIndex:function(){return this.ptIndex+(this._placeholder?1:0)},_getInfo:function(){return{graphic:this.graphic,isGhost:this._placeholder,
segmentIndex:this.segIndex,pointIndex:this._getPtIndex()}},_moveStartHandler:function(a){var r=this.map;r.snappingManager&&r.snappingManager._setUpSnapping();this.editor.toolbar._deactivateScrollWheel();this._startTx=this.graphic.getDojoShape().getTransform();a.shape.moveToFront();this.constructor.onMoveStart(this);this.editor.toolbar.onVertexMoveStart(this.relatedGraphic,this._getInfo())},_firstMoveHandler:function(a){var r=a.shape,w=this._getControlEdges(),k=this._scratchGL._div,d,e=[],n=a.host.shape._wrapOffsets[0]||
0;for(d=0;d<w.length;d++){var q=w[d];q.x1+=n;q.x2+=n;e.push([k.createLine({x1:q.x1,y1:q.y1,x2:q.x2,y2:q.y2}).setStroke(this.editor._lineStroke),q.x1,q.y1,q.x2,q.y2])}r._lines=e;a.shape.moveToFront();this.constructor.onFirstMove(this);this.editor.toolbar.onVertexFirstMove(this.relatedGraphic,this._getInfo())},_movingHandler:function(a,r,w){r=this.map;var k;A("esri-pointer")?k=r.navigationManager.pointerEvents._processTouchEvent(w,w):w&&"pointermove"===w.type&&(k=B.prototype._processTouchEvent.call({map:r},
w,w));k&&r.snappingManager&&r.snappingManager._onSnappingMouseMoveHandler(k);w=a.shape;a=w.getTransform();w=w._lines;for(k=0;k<w.length;k++)r=w[k],r[0].setShape({x1:r[1]+a.dx,y1:r[2]+a.dy,x2:r[3],y2:r[4]});this.editor.toolbar.onVertexMove(this.relatedGraphic,this._getInfo(),a)},_moveStopHandler:function(a){a=a.shape;var r=this.editor.toolbar,w=a.getTransform(),k=this.map,d=this.graphic,e=r._geo?p.geographicToWebMercator(d.geometry):d.geometry;r._activateScrollWheel();var n,q=a._lines;if(q){for(n=
0;n<q.length;n++)q[n][0].removeShape();a._lines=null}n=!1;q=!0;var m=this._getInfo();w&&(w.dx||w.dy)?this._placeholder&&(this._placeholder=!1,n=!0):q=!1;if(k.snappingManager)var x=k.snappingManager._snappingPoint;var y=[w,l.invert(this._startTx)];x=x||k.toMap(l.multiplyPoint(y,k.toScreen(e,!0)));k.snappingManager&&k.snappingManager._killOffSnapping();a.setTransform(null);d.setGeometry(r._geo?p.webMercatorToGeographic(x,!0):x);this.constructor.onMoveStop(this,w);r.onVertexMoveStop(this.relatedGraphic,
m,w);if(!q)r.onVertexClick(this.relatedGraphic,m);if(n)r.onVertexAdd(this.relatedGraphic,this._getInfo())},_getControlEdges:function(){var a=this.map,r=this.relatedGraphic.geometry,w=this.segIndex,k=this.ptIndex,d=this.segLength,e=this._scratchGL.getNavigationTransform(),n=e.dx;e=e.dy;var q=a.toScreen(this.graphic.geometry);a=q.x-n;q=q.y-e;var m=[];r=this.editor._getControlPoints(this,r,w,k,d);r[0]&&m.push({x1:a,y1:q,x2:r[0].x-n,y2:r[0].y-e});r[1]&&m.push({x1:a,y1:q,x2:r[1].x-n,y2:r[1].y-e});return m}});
A("extend-esri")&&f.setObject("toolbars.VertexMover",L,v);f.mixin(L,{onMoveStart:function(){},onFirstMove:function(){},onMoveStop:function(){}});return L})},"esri/toolbars/TextEditor":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/_base/event dojo/has dojo/dom-construct dojo/dom-class dojo/dom-style dojo/keys ../kernel".split(" "),function(L,f,t,H,b,g,l,v,B,A){L=L(null,{declaredClass:"esri.toolbars.TextEditor",constructor:function(z,c,p){this._graphic=z;this._map=c;
this._toolbar=p;this._enable(this._graphic)},destroy:function(){this._disable()},onEditStart:function(){},onEditEnd:function(){},_enable:function(z){this._editBox?(t.disconnect(this._addEditBoxHandler),this._addEditBoxHandler=null):(this._map.navigationManager.setImmediateClick(!0),this._addEditBoxHandler=t.connect(z.getLayer(),"onDblClick",this,function(c){this._map.navigationManager.setImmediateClick(!1);c.graphic==z&&(H.stop(c),t.disconnect(this._addEditBoxHandler),this._addEditBoxHandler=null,
this._addTextBox(z))}))},_disable:function(){this._applyEdit();this._addEditBoxHandler&&(t.disconnect(this._addEditBoxHandler),this._addEditBoxHandler=null);this._removeTextBox();this.onEditEnd(this._graphic);this._toolbar.onTextEditEnd(this._graphic)},_addTextBox:function(z,c){if(!this._editBox){if(!z.symbol.text){z.symbol.text="Tempt text";z.setSymbol(z.symbol);var p=""}var a=this._createInputTextStyle(z,this._map);""!==p&&(p=c||z.symbol.text);this._editBox=g.create("input",{type:"text",value:p});
v.set(this._editBox,a);l.add(this._editBox,"esriTextEditorInput");this._map.container.appendChild(this._editBox);this._editBox.focus();this._editBoxKeyHandler=t.connect(this._editBox,"onkeyup",f.hitch(this,function(w){w.keyCode!=B.ENTER&&w.keyCode!==B.TAB||this._disable()}));this._editBoxBlurHandler=t.connect(this._editBox,"onblur",f.hitch(this,function(w){this._disable()}));z.symbol.text="";z.setSymbol(z.symbol);z.hide();var r=this._editBox;this._disableBoxHandler||(this._disableBoxHandler=this._map.on("zoom-start",
f.hitch(this,function(){this._disable()})));this._moveBoxHandler=this._map.on("pan",function(w){v.set(r,{left:this._editBoxLeft+w.delta.x+"px",top:this._editBoxTop+w.delta.y+"px"})});this._moveBoxStartHandler=this._map.on("pan-start",function(){this._editBoxLeft=parseFloat(v.get(r,"left"));this._editBoxTop=parseFloat(v.get(r,"top"))});this.onEditStart(z,this._editBox);this._toolbar.onTextEditStart(z,this._editBox)}},_removeTextBox:function(){this._editBoxBlurHandler&&(t.disconnect(this._editBoxBlurHandler),
this._editBoxBlurHandler=null);this._editBox&&(this._editBox.parentNode.removeChild(this._editBox),this._editBox=null);this._disableBoxHandler&&(this._disableBoxHandler.remove(),this._disableBoxHandler=null);this._moveBoxHandler&&(this._moveBoxHandler.remove(),this._moveBoxHandler=null);this._moveBoxStartHandler&&(this._moveBoxStartHandler.remove(),this._moveBoxStartHandler=null);this._editBoxKeyHandler&&(t.disconnect(this._editBoxKeyHandler),this._editBoxKeyHandler=null)},_createInputTextStyle:function(z,
c){c=z.getDojoShape().getTransformedBoundingBox();var p=z.getLayer();p=p.hasLocalNavigationTransform()?{dx:0,dy:0}:p.getNavigationTransform();var a=z.symbol.font;return{"font-family":a.family,"font-size":a.size+"px","font-style":a.style,"font-variant":a.variant,"font-weight":a.weight,left:c[0].x+p.dx+"px",top:c[0].y+p.dy+"px",width:Math.abs(c[0].x-c[1].x)/Math.cos(z.symbol.angle/180*Math.PI)+"px"}},_applyEdit:function(){if(this._editBox)if(this._editBox.value){this._graphic.show();var z=this._graphic.symbol;
z.text=this._editBox.value;this._graphic.setSymbol(z)}else this._graphic.getLayer().remove(this._graphic)}});b("extend-esri")&&f.setObject("toolbars.TextEditor",L,A);return L})},"widgets/GriddedReferenceGraphic/js/GridSettings":function(){define("dojo/_base/declare dojo/_base/array dojo/on dojo/dom-style ./ColorPickerEditor ./FontSetting jimu/BaseWidget jimu/dijit/TabContainer3 dijit/_WidgetsInTemplateMixin dojo/text!../templates/GridSettings.html dojo/_base/lang dojo/Evented dojo/dom-class dojo/query dojo/keys jimu/dijit/formSelect".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c,p,a,r){return L([l,B,c],{baseClass:"jimu-widget-GRGDrafter-Settings",templateString:A,selectedGridSettings:{},_defaultColor:"#1a299c",_defaultTextSize:12,_defaultFont:{font:{fontFamily:"Arial",bold:!1,italic:!1,underline:!1},fontSize:12,textColor:"#2f4f4f"},gridSettingsOptions:{cellShape:["default","hexagon"],cellUnits:"meters kilometers miles nautical-miles yards feet".split(" "),labelStartPosition:["lowerLeft","lowerRight","upperLeft","upperRight"],labelType:["alphaNumeric",
"alphaAlpha","numeric"],labelTypeWithRefSys:["gridReferenceSystem","alphaNumeric","alphaAlpha","numeric"],labelDirection:["horizontal","vertical"],gridOrigin:["center","lowerLeft","lowerRight","upperLeft","upperRight"],referenceSystem:["MGRS","USNG","UTM"]},constructor:function(w){z.mixin(this,w)},startup:function(){this.tab=new v({tabs:[{title:this.nls.gridSettingsLabel,content:this.gridTab},{title:this.nls.labelSettingsLabel,content:this.labelTab}],selected:this.nls.gridTabLabel});this.tab.placeAt(this.tabsContainer);
this.tab.startup();this.gridOutlineColorPicker=new b({nls:this.nls,typeOfColorPicker:"Outline"},this.cellOutlineColorPicker);H.set(this.gridOutlineColorPicker.slider.domNode,"width","");this.gridOutlineColorPicker.setValues({color:this.config.grg.cellOutline.color,transparency:this.config.grg.cellOutline.transparency});this.gridOutlineColorPicker.startup();this.gridFillColorPicker=new b({nls:this.nls,typeOfColorPicker:"Fill"},this.cellFillColorPicker);H.set(this.gridFillColorPicker.slider.domNode,
"width","");this.gridFillColorPicker.setValues({color:this.config.grg.cellFill.color,transparency:this.config.grg.cellFill.transparency});this.gridFillColorPicker.startup();var w=a(".jimu-color-pickerPopup",this.domNode);f.forEach(w,z.hitch(this,function(k){this.own(t(k,"keydown",z.hitch(this,function(d){d.keyCode!==r.ENTER&&d.keyCode!==r.SPACE||d.currentTarget.click()})))}));this.fontSetting=new g({config:this.config.grg.font||this._defaultFont,nls:this.nls},this.fontSettingNode);this.fontSetting.startup();
this._loadOptionsForDropDown(this.cellShape,this.gridSettingsOptions.cellShape);this._loadOptionsForDropDown(this.labelStartPosition,this.gridSettingsOptions.labelStartPosition);this._loadOptionsForDropDown(this.cellUnits,this.gridSettingsOptions.cellUnits);this._loadOptionsForDropDown(this.labelType,this.gridSettingsOptions.labelType);this._loadOptionsForDropDown(this.labelTypeWithRefSys,this.gridSettingsOptions.labelTypeWithRefSys);this._loadOptionsForDropDown(this.labelDirection,this.gridSettingsOptions.labelDirection);
this._loadOptionsForDropDown(this.gridOrigin,this.gridSettingsOptions.gridOrigin);this._loadOptionsForDropDown(this.referenceSystem,this.gridSettingsOptions.referenceSystem);this.config.grg&&(this.cellShape.setValue(this.config.grg.cellShape),this.cellUnits.setValue(this.config.grg.cellUnits),this.gridOrigin.setValue(this.config.grg.gridOrigin),this.labelType.setValue(this.config.grg.labelType),this.labelDirection.setValue(this.config.grg.labelDirection),this.labelStartPosition.setValue(this.config.grg.labelOrigin),
this.referenceSystem.setValue(this.config.grg.referenceSystem),"hexagon"===this.cellShape.get("value")?(this.labelDirection.set("disabled",!0),this.labelDirection.setValue("horizontal")):this.labelDirection.set("disabled",!1));this.onGridsettingsChanged()},postCreate:function(){this.inherited(arguments);p.add(this.domNode,"GRGDrafterSettingsContainer GRGDrafterFullWidth");this._handleClickEvents()},_handleClickEvents:function(){this.own(t(this.cellShape,"change",z.hitch(this,function(){"hexagon"===
this.cellShape.get("value")?(this.labelDirection.set("disabled",!0),this.labelDirection.setValue("horizontal")):this.labelDirection.set("disabled",!1)})))},_loadOptionsForDropDown:function(w,k){var d=[],e;f.forEach(k,z.hitch(this,function(n){e=this.nls.gridSettings[n]&&this.nls.gridSettings[n].hasOwnProperty("label")?{value:n,label:this.nls.gridSettings[n].label}:{value:n,label:this.nls.gridSettings[n]};d.push(e)}));w.addOption(d)},_isSettingsChanged:function(){var w=!1;this.selectedGridSettings.cellShape!==
this.cellShape.get("value")?w=!0:this.selectedGridSettings.labelStartPosition!==this.labelStartPosition.get("value")?w=!0:this.selectedGridSettings.cellUnits!==this.cellUnits.get("value")?w=!0:this.selectedGridSettings.labelType!==this.labelType.get("value")?w=!0:this.selectedGridSettings.labelTypeWithRefSys!==this.labelTypeWithRefSys.get("value")?w=!0:this.selectedGridSettings.labelDirection!==this.labelDirection.get("value")?w=!0:this.selectedGridSettings.gridOrigin!==this.gridOrigin.get("value")?
w=!0:this.selectedGridSettings.referenceSystem!==this.referenceSystem.get("value")?w=!0:this.selectedGridSettings.gridOutlineColor!==this.gridOutlineColorPicker.getValues().color?w=!0:this.selectedGridSettings.gridOutlineTransparency!==this.gridOutlineColorPicker.getValues().transparency?w=!0:this.selectedGridSettings.gridFillColor!==this.gridFillColorPicker.getValues().color?w=!0:this.selectedGridSettings.gridFillTransparency!==this.gridFillColorPicker.getValues().transparency?w=!0:this.selectedGridSettings.fontSettings!==
this.fontSetting.getConfig()&&(w=!0);return w},onClose:function(){if(this._isSettingsChanged())this.onGridsettingsChanged()},onGridsettingsChanged:function(){this.selectedGridSettings={cellShape:this.cellShape.get("value"),labelStartPosition:this.labelStartPosition.get("value"),cellUnits:this.cellUnits.get("value"),labelType:this.labelType.get("value"),labelTypeWithRefSys:this.labelTypeWithRefSys.get("value"),labelDirection:this.labelDirection.get("value"),gridOrigin:this.gridOrigin.get("value"),
referenceSystem:this.referenceSystem.get("value"),gridOutlineColor:this.gridOutlineColorPicker.getValues().color,gridOutlineTransparency:this.gridOutlineColorPicker.getValues().transparency,gridFillColor:this.gridFillColorPicker.getValues().color,gridFillTransparency:this.gridFillColorPicker.getValues().transparency,fontSettings:z.clone(this.fontSetting.getConfig())};this.emit("gridSettingsChanged",this.selectedGridSettings)}})})},"widgets/GriddedReferenceGraphic/js/ColorPickerEditor":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/dom-attr dojo/on dojo/query dojo/_base/html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!../templates/ColorPickerEditor.html dijit/form/HorizontalSlider jimu/dijit/ColorPickerPopup dijit/form/NumberSpinner".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c,p){return L([v,B,A],{_defaultColor:"#485566",templateString:z,nls:null,postCreate:function(){this.colorPicker=new p({color:this._defaultColor,width:this._defaultWidth,tabindex:"0",role:"button"},this.colorPicker);this.colorPicker.startup();this.slider=new c({name:"slider",value:100,minimum:0,maximum:100,discreteValues:101,intermediateChanges:!0,showButtons:!1,style:"width:140px;display: inline-block;"},this.sliderBar);this.slider.startup();this.inherited(arguments)},
startup:function(){this._setAriaLabelForEditorNodes();this.own(b(this.slider,"change",f.hitch(this,function(a){!1===this._isSameVal()&&this.spinner.setValue(a)})));this.own(b(this.spinner,"change",f.hitch(this,function(a){!1===this._isSameVal()&&100>=a&&this.slider.setValue(a)})));this._stylePolyfill();this.inherited(arguments)},_setAriaLabelForEditorNodes:function(){var a="",r="";this.nls.gridSettings&&(a="Fill"===this.typeOfColorPicker?this.nls.gridSettings.cellFill:this.nls.gridSettings.cellOutline,
r=this.nls.gridSettings.colorPicker);H.set(this.colorPicker.domNode,"aria-label",a+" "+r);H.set(this.slider,"aria-label",a+" "+this.nls.transparency);H.set(this.spinner,"aria-label",a+" "+this.nls.transparency)},_isSameVal:function(){return this.slider.getValue()===this.spinner.getValue()},getValues:function(){var a=null,r=null;(r=this.colorPicker.getColor())&&r.toHex&&(a=r.toHex());r=this.spinner.getValue()/100;return{color:a,transparency:r}},setValues:function(a){if("object"===typeof a||"string"===
typeof a)this.colorPicker.setColor(new t(a.color)),a.transparency="undefined"===typeof a.transparency?0:100*a.transparency,this.slider.setValue(a.transparency),this.spinner.setValue(a.transparency)},_stylePolyfill:function(){var a=g(".dijitSliderLeftBumper",this.domNode)[0];a&&a.parentNode&&l.setStyle(a.parentNode,"background-color","#24b5cc")}})})},"jimu/dijit/ColorPickerPopup":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dojo/_base/lang dojo/_base/html dojo/on dojo/_base/Color dijit/TooltipDialog dijit/popup jimu/dijit/ColorPalette jimu/utils".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z){return L([f,t],{baseClass:"jimu-color-pickerPopup",declaredClass:"jimu.dijit.ColorPickerPopup",templateString:'\x3cdiv class\x3d"jimu-color-picker"\x3e\x3c/div\x3e',_isTooltipDialogOpened:!1,color:null,showLabel:!1,around:null,_ENABLE:!0,recordUID:"",postCreate:function(){this.inherited(arguments);this._createTooltipDialog(this.domNode);this._hideTooltipDialog()},destroy:function(){B.close(this.tooltipDialog);this.picker.destroy();this.tooltipDialog.destroy();this.inherited(arguments)},
enable:function(){this._ENABLE=!0;b.removeClass(this.domNode,"disable")},disable:function(){this._ENABLE=!1;b.addClass(this.domNode,"disable")},isPartOfPopup:function(c){var p=this.tooltipDialog.domNode;return c===p||b.isDescendant(c,p)},hideTooltipDialog:function(){this._hideTooltipDialog()},showTooltipDialog:function(){this._showTooltipDialog()},initUI:function(){this.picker.initUI()},isOpen:function(){return this._isTooltipDialogOpened},_showTooltipDialog:function(){B.open({parent:this.getParent(),
popup:this.tooltipDialog,around:this.around?this.around:this.domNode,orient:this.orient});this._isTooltipDialogOpened=!0},_hideTooltipDialog:function(){B.hide(this.tooltipDialog);this._isTooltipDialogOpened=!1},_createTooltipDialog:function(){var c=b.create("div");this.tooltipDialog=new v({content:c});b.addClass(this.tooltipDialog.domNode,"jimu-color-picker-popup-dialog");var p=new A({appearance:{showTransparent:!1,showColorPalette:!0,showCoustom:!0,showColorPickerOK:!0,showColorPickerApply:!0,showCoustomRecord:!0,
closeDialogWhenChange:!0},recordUID:this.recordUID,onChange:H.hitch(this,function(a){a&&(a=new l(a),this.setColor(a),this.onChange(a))})});p.placeAt(c);p.startup();this.own(g(p,"close",H.hitch(this,function(){this._hideTooltipDialog()})));this.own(g(p,"change-style",H.hitch(this,function(){this._hideTooltipDialog();this._showTooltipDialog()})));this.own(g(this.domNode,"click",H.hitch(this,function(a){a.stopPropagation();a.preventDefault();this._isTooltipDialogOpened?this._hideTooltipDialog():!1!==
this._ENABLE&&this._showTooltipDialog()})));this.own(g(document,"click",H.hitch(this,function(a){this.isPartOfPopup(a.srcElement||a.target)||this._hideTooltipDialog()})));this.picker=p},setColor:function(c){if(c instanceof l){null===this.color&&!0===this.showLabel&&this._changeLabel(c);var p=c.toHex();this.color=c;b.setStyle(this.domNode,"backgroundColor",p);this.picker&&(this.picker.refreshRecords(),this.picker.setColor(p,!1,!0));this.showLabel&&this._changeLabel(this.color)}},getColor:function(){return this.color},
_changeLabel:function(c){b.empty(this.domNode);b.create("span",{innerHTML:c.toHex(),className:"color-label",style:{color:z.invertColor(c.toHex())}},this.domNode)},onChange:function(c){c&&this.showLabel&&this._changeLabel(c)},changeColor:function(){this.picker&&this.picker.changeColor();this.showLabel&&this._changeLabel(this.color)},setTitle:function(c){this.domNode.title=c},getTooltipDialog:function(){return this.tooltipDialog||null}})})},"widgets/GriddedReferenceGraphic/js/FontSetting":function(){define("dojo/_base/declare dojo/_base/lang dojo/on dojo/_base/html dojo/_base/array dojo/dom-attr dojo/Evented dojo/query dojo/keys dojo/aspect dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!../templates/FontSetting.html jimu/dijit/ColorPickerPopup dijit/form/HorizontalSlider ./TransparencyEditor dojo/store/Memory jimu/dijit/formSelect jimu/dijit/CheckBox jimu/dijit/ImageChooser dijit/form/ComboBox".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c,p,a,r,w,k,d){return L([z,c,p,l],{templateString:a,nls:null,_FONTS:null,_MIN_TEXT_SIZE:12,_MAX_TEXT_SIZE:48,_INTERVAL_TEXT_SIZE:2,_DEFAULT_CONFIG:null,postCreate:function(){this.inherited(arguments);this._FONTS="Arial;Comic Sans MS;Courier New;Garamond;Tahoma;Times New Roman;Verdana".split(";");this._DEFAULT_CONFIG={font:{fontFamily:this._FONTS[0],bold:!1,italic:!1,underline:!1},fontSize:"24",textColor:"#282828",haloSize:1,haloColor:"#FFFFFF",haloOn:!0,labelTransparency:1};
this.config=f.mixin(f.clone(this._DEFAULT_CONFIG),this.config);b.forEach(this._FONTS,f.hitch(this,function(y){this.fontSelect.addOption({value:y,label:y})}));for(var e=new d({}),n=this._MIN_TEXT_SIZE,q=this._MAX_TEXT_SIZE;n<=q;n+=this._INTERVAL_TEXT_SIZE)e.put({id:n,name:n});this.textSizeSelect.store=e;g.set(this.textSizeSelect.domNode,"aria-label",this.nls.textSize);g.set(this.textSizeSelect.domNode,"role","combobox");g.set(this.textSizeSelect.domNode,"aria-expanded","false");A.after(this.textSizeSelect,
"loadAndOpenDropDown",f.hitch(this,function(){g.set(this.textSizeSelect.domNode,"aria-expanded","true")}));A.after(this.textSizeSelect,"closeDropDown",f.hitch(this,function(){g.set(this.textSizeSelect.domNode,"aria-expanded","false")}));this.textSizeSelect.validator=f.hitch(this,function(){var y=this.textSizeSelect.getValue();return null!==y&&""!==y?!isNaN(y):!1});this.textSizeSlider=new w({name:"slider",value:0,minimum:this._MIN_TEXT_SIZE,maximum:this._MAX_TEXT_SIZE,discreteValues:this.textSizeSelect.store.data.length+
1,intermediateChanges:!0,showButtons:!1,style:"display: inline-block;","aria-label":this.nls.textSize},this.sliderBar);this.textSizeSlider.startup();e="";this.nls.gridSettings&&(e=this.nls.gridSettings.colorPicker);this.textColorPicker=new r({role:"button",tabindex:"0","aria-label":this.nls.textColor+" "+e,appearance:{showTransparent:!1,showColorPalette:!0,showCoustom:!0,showCoustomRecord:!0},recordUID:this.recordUID});this.textColorPicker.placeAt(this.textColorBtn);this.textColorPicker.startup();
this.labelTransparency=new k({ariaLabel:this.nls.transparency},this.transparencySlider);this.labelTransparency.startup();var m=[];n=1;for(q=10;n<=q;n+=1){var x={value:n.toString(),label:n.toString()};m.push(x)}this.haloSizeSelect.addOption(m);this.haloSizeSelect.validator=f.hitch(this,function(){var y=this.haloSizeSelect.get("value");return null!==y&&""!==y?!isNaN(y):!1});this.haloColorPicker=new r({role:"button",tabindex:"0","aria-label":this.nls.halo+" "+e,appearance:{showTransparent:!1,showColorPalette:!0,
showCoustom:!0,showCoustomRecord:!0}});this.haloColorPicker.placeAt(this.haloColorBtn);this.haloColorPicker.startup();this.own(t(this.fontSelect,"change",f.hitch(this,function(y){if(this.config.font.fontFamily!==y)this.onSettingChange({font:{fontFamily:y,bold:this.config.font.bold,italic:this.config.font.italic,underline:this.config.font.underline}})})));this._initAppearance();this.own(t(this.bold,"click",f.hitch(this,function(){this._clickHandlerOfBoldItalicUnderline(this.bold,"bold")})));this.own(t(this.italic,
"click",f.hitch(this,function(){this._clickHandlerOfBoldItalicUnderline(this.italic,"italic")})));this.own(t(this.underline,"click",f.hitch(this,function(){this._clickHandlerOfBoldItalicUnderline(this.underline,"underline")})));this.own(t(this.bold,"keydown",f.hitch(this,function(y){y.keyCode!==B.ENTER&&y.keyCode!==B.SPACE||this._clickHandlerOfBoldItalicUnderline(this.bold,"bold")})));this.own(t(this.italic,"keydown",f.hitch(this,function(y){y.keyCode!==B.ENTER&&y.keyCode!==B.SPACE||this._clickHandlerOfBoldItalicUnderline(this.italic,
"italic")})));this.own(t(this.underline,"keydown",f.hitch(this,function(y){y.keyCode!==B.ENTER&&y.keyCode!==B.SPACE||this._clickHandlerOfBoldItalicUnderline(this.underline,"underline")})));this.own(t(this.textSizeSelect,"change",f.hitch(this,function(y){this.config.fontSize!==y&&!1!==this.textSizeSelect.isValid()&&(this.setTextSize(y),this.onSettingChange({fontSize:y}))})));this.own(t(this.textSizeSlider,"change",f.hitch(this,function(y){this.config.fontSize!==y&&(this.setTextSize(Math.round(y)),
this.onSettingChange({fontSize:y}))})));this.own(t(this.textColorPicker,"change",f.hitch(this,function(y){if(this.config.textColor!==y)this.onSettingChange({textColor:y.toHex()})})));this.own(this.labelTransparency.watch("transparency",f.hitch(this,function(){this.onSettingChange({labelTransparency:this.labelTransparency.getValues().transparency})})));this.own(t(this.haloSizeSelect,"change",f.hitch(this,function(y){if(this.config.haloSize!==y&&!1!==this.haloSizeSelect.isValid())this.onSettingChange({haloSize:y})})));
this.own(t(this.haloColorPicker,"change",f.hitch(this,function(y){if(this.config.haloColor!==y)this.onSettingChange({haloColor:y.toHex()})})));this.own(t(this.showHalo,"change",f.hitch(this,function(){this.onSettingChange({haloOn:this.showHalo.checked})})));n=v(".jimu-color-pickerPopup",this.domNode);b.forEach(n,f.hitch(this,function(y){this.own(t(y,"keydown",f.hitch(this,function(E){E.keyCode!==B.ENTER&&E.keyCode!==B.SPACE||E.currentTarget.click()})))}))},startup:function(){this.inherited(arguments);
this.setConfig(this.config);this.refresh()},onSettingChange:function(e){this.config=f.mixin(this.config,e);this.onChange(this.config)},onChange:function(e){this.emit("change",e)},refresh:function(){this.onSettingChange({})},isValid:function(){return!1===this.textSizeSelect.isValid()?!1:!0},getConfig:function(){return this.isValid()?this.config:!1},setConfig:function(e){if("undefined"!==e){"undefined"!==typeof e.font&&(this.config.font=e.font,this.config.font.fontFamily&&this.fontSelect.set("value",
this.config.font.fontFamily),this.fontBtnClickd(this.config.font));"undefined"!==typeof e.fontSize&&(this.config.fontSize=e.fontSize,this.setTextSize(this.config.fontSize));if("undefined"===typeof e.textColor||""===e.textColor)e.textColor=this._DEFAULT_CONFIG.textColor;this.config.textColor=e.textColor;if("undefined"===typeof e.labelTransparency||""===e.labelTransparency)e.labelTransparency=this._DEFAULT_CONFIG.labelTransparency;this.config.labelTransparency=e.labelTransparency;this.labelTransparency.setValues({transparency:this.config.labelTransparency});
if("undefined"===typeof e.haloSize||""===e.haloSize)e.haloSize=this._DEFAULT_CONFIG.haloSize;this.config.haloSize=e.haloSize;this.haloSizeSelect.set("value",e.haloSize);if("undefined"===typeof e.haloColor||""===e.haloColor)e.haloColor=this._DEFAULT_CONFIG.haloColor;this.config.haloColor=e.haloColor;H.setStyle(this.textColorPicker.domNode,"backgroundColor",this.config.textColor);this.textColorPicker.picker.refreshRecords();this.textColorPicker.picker.setColor(this.config.textColor,!1,!0);H.setStyle(this.haloColorPicker.domNode,
"backgroundColor",this.config.haloColor);this.haloColorPicker.picker.refreshRecords();this.haloColorPicker.picker.setColor(this.config.haloColor,!1,!0);if("undefined"===typeof e.haloOn||""===e.haloOn)e.haloOn=this._DEFAULT_CONFIG.haloOn;this.showHalo.set("checked",this.config.haloOn)}},_clickHandlerOfBoldItalicUnderline:function(e,n){var q=!H.hasClass(e,"selected");e={fontFamily:this.config.font.fontFamily,bold:this.config.font.bold,italic:this.config.font.italic,underline:this.config.font.underline};
"bold"===n?e.bold=q:"italic"===n?e.italic=q:e.underline=q;var m={};m[n]=q;this.fontBtnClickd(m);this.onSettingChange({font:e})},setTextSize:function(e){e!==this.textSizeSelect.getValue()&&this.textSizeSelect.set("value",e);e!==this.textSizeSlider.getValue()&&(e>this._MAX_TEXT_SIZE?e=this._MAX_TEXT_SIZE:e<this._MIN_TEXT_SIZE&&(e=this._MIN_TEXT_SIZE),this.textSizeSlider.set("value",e))},fontBtnClickd:function(e){!0===e.bold?(H.addClass(this.bold,"selected"),g.set(this.bold,"aria-pressed","true")):!1===
e.bold&&(H.removeClass(this.bold,"selected"),g.set(this.bold,"aria-pressed","false"));!0===e.italic?(H.addClass(this.italic,"selected"),g.set(this.italic,"aria-pressed","true")):!1===e.italic&&(H.removeClass(this.italic,"selected"),g.set(this.italic,"aria-pressed","false"));!0===e.underline?(H.addClass(this.underline,"selected"),g.set(this.underline,"aria-pressed","true")):!1===e.underline&&(H.removeClass(this.underline,"selected"),g.set(this.underline,"aria-pressed","false"))},_initAppearance:function(){this.appearance&&
(!1===this.appearance.bold&&H.addClass(this.bold,"hide"),!1===this.appearance.italic&&H.addClass(this.italic,"hide"),!1===this.appearance.underline&&H.addClass(this.underline,"hide"))}})})},"widgets/GriddedReferenceGraphic/js/TransparencyEditor":function(){define("dojo/_base/declare dojo/_base/lang dojo/on dojo/query dojo/dom-attr dojo/Stateful dojo/_base/html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!../templates/TransparencyEditor.html dijit/form/HorizontalSlider dijit/form/NumberSpinner".split(" "),
function(L,f,t,H,b,g,l,v,B,A,z,c){return L([g,v,B,A],{templateString:z,transparency:1,postCreate:function(){this.slider=new c({name:"slider",value:0,minimum:0,maximum:100,discreteValues:101,intermediateChanges:!0,showButtons:!1,style:"width:140px;display: inline-block;",tabindex:"0","aria-label":this.ariaLabel},this.sliderBar);this.slider.startup();this.inherited(arguments);b.set(this.spinner,"aria-label",this.ariaLabel)},startup:function(){this.own(t(this.slider,"change",f.hitch(this,function(p){!1===
this._isSameVal()&&(this.spinner.setValue(p),this._set("transparency",p/100))})));this.own(t(this.spinner,"change",f.hitch(this,function(p){!1===this._isSameVal()&&100>=p&&(this.slider.setValue(p),this._set("transparency",p/100))})));this._stylePolyfill();this.inherited(arguments)},_isSameVal:function(){return this.slider.getValue()===this.spinner.getValue()},getValues:function(){var p=null;p=this.spinner.getValue()/100;return{transparency:p}},setValues:function(p){if("object"===typeof p||"string"===
typeof p)p.transparency="undefined"===typeof p.transparency?0:100*p.transparency,this.slider.setValue(p.transparency),this.spinner.setValue(p.transparency)},_stylePolyfill:function(){var p=H(".dijitSliderLeftBumper",this.domNode)[0];p&&p.parentNode&&l.setStyle(p.parentNode,"background-color","#24b5cc")}})})},"widgets/GriddedReferenceGraphic/js/drawGRG":function(){define("esri/geometry/Point esri/geometry/Polygon esri/geometry/geometryEngine esri/graphic esri/geometry/webMercatorUtils esri/SpatialReference esri/geometry/Circle esri/request dojo/json ./geometryUtils".split(" "),
function(L,f,t,H,b,g,l,v,B,A){var z={createGRG:function(c,p,a,r,w,k,d,e,n,q,m,x,y,E){var I=[],J=0,O=0,Q=r/2/Math.cos(30*Math.PI/180),T,X=c;switch(d){case "upperLeft":if("horizontal"===n){var Y=p-1;var W=-1;if("numeric"!==e)var U=0;else U=(p-1)*c,"hexagon"===q&&(U+=Math.floor(p/2))}else Y=-1,W=p-1,"numeric"!==e&&(U=p);break;case "upperRight":"horizontal"===n?(Y=p-1,W=c,"numeric"!==e?U=c+1:(U=p*c+1,"hexagon"===q&&(U+=Math.floor(p/2)))):(U="numeric"!==e?p:p*(c+1),Y=c,W=p-1);break;case "lowerRight":"horizontal"===
n?(Y=0,W=c,U=c+1):(Y=c,W=0,U=1);break;case "lowerLeft":"horizontal"===n?(U=Y=0,W=-1):(Y=-1,U=1,W=0)}var ha=c*r/2;var pa="hexagon"===q?1===p%2?((p-1)/2*3*Q+Q)/2:(p/2*3*Q-Q/2)/2:p*w/2;var ca=null;ca=null;for(var h=1;h<=p;h++){for(var F=1;F<=c;F++){if(x){ca=new f;if(1===h&&1===F)switch(102100===a.spatialReference.wkid&&(a=b.webMercatorToGeographic(a)),m){case "center":var G=A.getDestinationPoint(a,180+k,pa);G=A.getDestinationPoint(G,270+k,ha);break;case "upperLeft":G=A.getDestinationPoint(a,180+k,2*
pa);break;case "upperRight":G=A.getDestinationPoint(a,180+k,2*pa);G=A.getDestinationPoint(G,270+k,2*ha);break;case "lowerRight":G=A.getDestinationPoint(a,270+k,2*ha);break;case "lowerLeft":G=a}if("default"===q){var D=A.getDestinationPoint(G,0+k,w);var V=A.getDestinationPoint(D,90+k,r);var Z=A.getDestinationPoint(V,180+k,w);ca.addRing([[G.x,G.y],[D.x,D.y],[V.x,V.y],[Z.x,Z.y]]);G=Z}else{Z=G;var da=A.getDestinationPoint(Z,0+k,Q);var aa=A.getDestinationPoint(da,60+k,Q);V=A.getDestinationPoint(aa,120+
k,Q);var ba=A.getDestinationPoint(V,180+k,Q);var ja=A.getDestinationPoint(ba,240+k,Q);ca.addRing([[Z.x,Z.y],[da.x,da.y],[aa.x,aa.y],[V.x,V.y],[ba.x,ba.y],[ja.x,ja.y]]);G=A.getDestinationPoint(G,90+k,r)}ca=t.simplify(ca);y.spatialReference.wkid&&4326!==y.spatialReference.wkid&&(ca=E.isLoaded()?E.project(ca,y.spatialReference):b.geographicToWebMercator(ca));ca=new H(ca);1===F&&(T="hexagon"===q?X===c?A.getDestinationPoint(da,300+k,Q):aa:D)}else{ca=new f(new g({wkid:102100}));4326===a.spatialReference.wkid&&
(a=b.geographicToWebMercator(a));switch(m){case "center":J=a.x-ha;O=a.y-pa;break;case "upperLeft":J=a.x;O=a.y-2*pa;break;case "upperRight":J=a.x-2*ha;O=a.y-2*pa;break;case "lowerRight":J=a.x-2*ha;O=a.y;break;case "lowerLeft":J=a.x,O=a.y}"default"===q?ca.addRing([[J+(F-1)*r,O+(h-1)*w],[J+(F-1)*r,O+h*w],[J+F*r,O+h*w],[J+F*r,O+(h-1)*w],[J+(F-1)*r,O+(h-1)*w]]):(J=X===c?J+(F-1)*r+r/2:J+(F-1)*r,O=O+Q+1.5*(h-1)*Q,Z=new L([J,O],new g({wkid:102100})),V=new l(Z,{radius:Q,numberOfPoints:6}),Z=t.rotate(V,90,
Z),ca.addRing(Z.rings[0]));ca=t.rotate(ca,-1*k,a);y.spatialReference.wkid&&102100!==y.spatialReference.wkid&&(ca=E.isLoaded()?E.project(ca,y.spatialReference):b.webMercatorToGeographic(ca));ca=new H(ca)}switch(d){case "upperLeft":"horizontal"===n?(W+=1,U+=1):(Y+=1,"numeric"===e&&(U=p*F-(h-1)));break;case "lowerLeft":"horizontal"===n?(W+=1,U+=1):(Y+=1,"numeric"===e&&(U=p*(F-1)+h));break;case "upperRight":"horizontal"===n?(--U,--W):(--Y,"numeric"===e&&(U-=c));break;case "lowerRight":"horizontal"===
n?(--U,--W):(--Y,"numeric"===e&&(U=p*(c-F)+h))}I.push(z.addGraphicLabel(ca,e,U,Y,W))}G=T;"hexagon"===q&&(X===c?c++:c--);switch(d){case "upperLeft":"horizontal"===n?(--Y,U="numeric"!==e?0:"hexagon"===q?U-2*X-1:U-2*c,W=-1):(Y=-1,W=p-(h+1),"numeric"!==e&&(U=p-h));break;case "upperRight":"horizontal"===n?(--Y,"numeric"!==e&&(U=c+1),W=c):(U="numeric"!==e?U-1:p*(c+1)-h,Y=c,--W);break;case "lowerRight":"horizontal"===n?(Y+=1,U="numeric"!==e?c+1:"hexagon"===q?U+2*X+1:U+2*c,W=c):(Y=c,W+=1,U="numeric"!==e?
U+1:c*h);break;case "lowerLeft":"horizontal"===n?(Y+=1,"numeric"!==e&&(U=0),W=-1):(Y=-1,"numeric"!==e&&(U+=1),W=h)}}return I},convertNumberToLetters:function(c){for(var p="";0<=c;)p=String.fromCharCode(c%26+65)+p,c=Math.floor(c/26)-1;return p},checkGridSize:function(c,p){return 2E3>c*p},getFeatureServiceParams:function(c,p){return{name:c,serviceDescription:"",hasStaticData:!1,maxRecordCount:1E3,supportedQueryFormats:"JSON",capabilities:"Create,Delete,Query,Update,Editing",tags:"GRG",description:"",
copyrightText:"",spatialReference:{wkid:102100},initialExtent:{xmin:p.extent.xmin,ymin:p.extent.ymin,xmax:p.extent.xmax,ymax:p.extent.ymax,spatialReference:{wkid:102100}},allowGeometryUpdates:!0,units:"esriMeters",xssPreventionInfo:{xssPreventionEnabled:!0,xssPreventionRule:"InputOnly",xssInputRule:"rejectInvalid"}}},getLayerParams:function(c,p,a,r){return{layers:[{adminLayerInfo:{geometryField:{name:"Shape"},xssTrustedFields:""},id:0,name:c,type:"Feature Layer",displayField:"",description:"A GRG (Gridded Reference Graphic) is a grid overlay used for a commonreference point in many situations - from cordon and search operations to securityfor presidential inaugurations.",
tags:"GRG",copyrightText:"",defaultVisibility:!0,ownershipBasedAccessControlForFeatures:{allowOthersToQuery:!1,allowOthersToDelete:!1,allowOthersToUpdate:!1},relationships:[],isDataVersioned:!1,supportsCalculate:!0,supportsAttachmentsByUploadId:!0,supportsRollbackOnFailureParameter:!0,supportsStatistics:!0,supportsAdvancedQueries:!0,supportsValidateSql:!0,supportsCoordinatesQuantization:!0,supportsApplyEditsWithGlobalIds:!0,advancedQueryCapabilities:{supportsPagination:!0,supportsQueryWithDistance:!0,
supportsReturningQueryExtent:!0,supportsStatistics:!0,supportsOrderBy:!0,supportsDistinct:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsReturningGeometryCentroid:!0},useStandardizedQueries:!1,geometryType:"esriGeometryPolygon",minScale:0,maxScale:0,extent:{xmin:p.extent.xmin,ymin:p.extent.ymin,xmax:p.extent.xmax,ymax:p.extent.ymax,spatialReference:{wkid:102100}},drawingInfo:{renderer:{type:"simple",symbol:r},transparency:0,labelingInfo:[{labelExpression:"[grid]",labelExpressionInfo:{value:"{grid}"},
format:null,fieldInfos:null,useCodedValues:!1,maxScale:0,minScale:0,where:null,sizeInfo:null,labelPlacement:"esriServerPolygonPlacementAlwaysHorizontal",symbol:a}]},allowGeometryUpdates:!0,hasAttachments:!1,htmlPopupType:"esriServerHTMLPopupTypeNone",hasM:!1,hasZ:!1,objectIdField:"OBJECTID",globalIdField:"",typeIdField:"",fields:[{name:"OBJECTID",type:"esriFieldTypeOID",actualType:"int",alias:"OBJECTID",sqlType:"sqlTypeOther",nullable:!1,editable:!1,domain:null,defaultValue:null},{name:"grid",type:"esriFieldTypeString",
alias:"grid",actualType:"nvarchar",nullable:!0,editable:!0,domain:null,defaultValue:null,sqlType:"sqlTypeNVarchar",length:256}],indexes:[],types:[],templates:[{name:"New Feature",description:"",drawingTool:"esriFeatureEditToolPolygon",prototype:{attributes:{grid:""}}}],supportedQueryFormats:"JSON",hasStaticData:!1,maxRecordCount:1E4,standardMaxRecordCount:4E3,tileMaxRecordCount:4E3,maxRecordCountFactor:1,exceedsLimitFactor:1,capabilities:"Query,Editing,Create,Update,Delete"}]}},isNameAvailable:function(c,
p,a){return v({url:c,content:{name:a,type:"Feature Service",token:p,f:"json"},handleAs:"json",callbackParamName:"callback"},{usePost:!0})},createFeatureService:function(c,p,a){return v({url:c,content:{f:"json",token:p,typeKeywords:"ArcGIS Server,Data,Feature Access,Feature Service,Service,Hosted Service",createParameters:B.stringify(a),outputType:"featureService"},handleAs:"json",callbackParamName:"callback"},{usePost:!0})},addDefinitionToService:function(c,p,a){return v({url:c,content:{token:p,addToDefinition:B.stringify(a),
f:"json"},handleAs:"json",callbackParamName:"callback"},{usePost:!0})},labelReferenceGrid:function(c,p,a,r){for(var w=-1,k=1,d,e=!0,n=null,q=[],m;0<c.length;)if(e){w++;"alphaNumeric"===p?k=1:"alphaAlpha"===p&&(d=0);var x=t.union(c);m=x.getExtent();switch(a){case "lowerLeft":var y=t.nearestCoordinate(x,new L(m.xmin,m.ymin,m.spatialReference));break;case "lowerRight":y=t.nearestCoordinate(x,new L(m.xmax,m.ymin,m.spatialReference));break;case "upperLeft":y=t.nearestCoordinate(x,new L(m.xmin,m.ymax,m.spatialReference));
break;case "upperRight":y=t.nearestCoordinate(x,new L(m.xmax,m.ymax,m.spatialReference))}for(m=0;m<c.length;m++)if(t.touches(c[m],y.coordinate)){n=c[m];q.push(z.addGraphicLabel(new H(c[m]),p,k,w,d));k++;d++;e=c.indexOf(c[m]);c.splice(e,1);e=!1;break}}else{e=!0;m=n.getExtent();switch(a){case "lowerLeft":var E=t.nearestCoordinate(n,new L(m.xmax,m.ymin,m.spatialReference));break;case "lowerRight":E=t.nearestCoordinate(n,new L(m.xmin,m.ymin,m.spatialReference));break;case "upperLeft":E=t.nearestCoordinate(n,
new L(m.xmax,m.ymax,m.spatialReference));break;case "upperRight":E=t.nearestCoordinate(n,new L(m.xmin,m.ymax,m.spatialReference))}for(x=0;x<c.length;x++){m=c[x].getExtent();switch(a){case "lowerLeft":var I=t.nearestCoordinate(c[x],new L(m.xmin,m.ymin,m.spatialReference));break;case "lowerRight":I=t.nearestCoordinate(c[x],new L(m.xmax,m.ymin,m.spatialReference));break;case "upperLeft":I=t.nearestCoordinate(c[x],new L(m.xmin,m.ymax,m.spatialReference));break;case "upperRight":I=t.nearestCoordinate(c[x],
new L(m.xmax,m.ymax,m.spatialReference))}m=t.buffer(I.coordinate,"UTM"===r?1E4:r/5,9001);if(t.contains(m,E.coordinate)){n=c[x];q.push(z.addGraphicLabel(new H(c[x]),p,k,w,d));k++;d++;e=c.indexOf(c[x]);c.splice(e,1);e=!1;break}}}return q},addGraphicLabel:function(c,p,a,r,w){r=z.convertNumberToLetters(r);w=z.convertNumberToLetters(w);var k={};switch(p){case "alphaNumeric":k.grid=r.toString()+a.toString();break;case "alphaAlpha":k.grid=r.toString()+"-"+w.toString();break;case "numeric":k.grid=a.toString()}c.setAttributes(k);
return c},checkPolarRegion:function(c){var p=new f({rings:[[[-180,84],[-180,90],[180,90],[180,84],[-180,84]],[[-180,-90],[-180,-80],[180,-80],[180,-90],[-180,-90]]],spatialReference:{wkid:4326}});return t.intersects(c,p)}};return z})},"esri/geometry/Circle":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ./Point ./Polygon ./geodesicUtils ./webMercatorUtils ../WKIDUnitConversion ../units".split(" "),function(L,f,t,H,b,g,l,v,B,A){L=L(g,{declaredClass:"esri.geometry.Circle",
_unitToMeters:{esriCentimeters:.01,esriDecimeters:.1,esriFeet:.3048,esriInches:.0254,esriKilometers:1E3,esriMeters:1,esriMiles:1609.344,esriMillimeters:.001,esriNauticalMiles:1852,esriYards:.9144,esriDecimalDegrees:111320},constructor:function(z,c){z.center?c=z:(c=c||{},c.center=z);this.center=f.isArray(c.center)?new b(c.center[0],c.center[1]):c.center;this.radius=c.radius||1E3;this.radiusUnit=c.radiusUnit||A.METERS;this.geodesic=!0===c.geodesic?!0:!1;this.numberOfPoints=c.numberOfPoints||60;this._init()},
toJson:function(){return this.inherited(arguments)},_init:function(){this.rings=[];this._ring=0;var z=this.radius*this._unitToMeters[this.radiusUnit],c=this._srType(this.center.spatialReference);if(this.geodesic){switch(c){case "webMercator":var p=v.webMercatorToGeographic(this.center);break;case "projected":console.error("Creating a geodesic circle requires the center to be specified in web mercator or geographic coordinate system");break;case "geographic":p=this.center}z=this._createGeodesicCircle(p,
z,this.numberOfPoints,p.spatialReference);"webMercator"===c&&(z=v.geographicToWebMercator(z))}else{var a;"webMercator"===c||"projected"===c?a=z/this._convert2Meters(1,this.center.spatialReference):"geographic"===c&&(a=z/this._unitToMeters.esriDecimalDegrees);z=this._createPlanarCircle(this.center,a,this.numberOfPoints)}this.spatialReference=z.spatialReference;this.addRing(z.rings[0]);this.verifySR()},_createGeodesicCircle:function(z,c,p,a){for(var r=0,w=Math.PI/180,k=[],d;r<2*Math.PI;)d=l._directGeodeticSolver(z.y*
w,z.x*w,r,c,a),k.push([d.x,d.y]),r+=Math.PI/(p/2);k.push(k[0]);return new g(k)},_createPlanarCircle:function(z,c,p){for(var a=0,r=[],w,k;a<2*Math.PI;)w=z.x+Math.cos(a)*c,k=z.y+Math.sin(a)*c,r.push([w,k]),a+=Math.PI/(p/2);r.push(r[0]);z=new g(z.spatialReference);z.addRing(r);return z},_srType:function(z){return z.isWebMercator()?"webMercator":null!=B[z.wkid]||z.wkt&&0===z.wkt.indexOf("PROJCS")?"projected":"geographic"},_convert2Meters:function(z,c){if(null!=B[c.wkid])c=B.values[B[c.wkid]];else{c=c.wkt;
var p=c.lastIndexOf(",")+1,a=c.lastIndexOf("]]");c=parseFloat(c.substring(p,a))}return z*c}});t("extend-esri")&&f.setObject("geometry.Circle",L,H);return L})},"widgets/GriddedReferenceGraphic/js/geometryUtils":function(){define("esri/geometry/Point esri/geometry/Polyline esri/geometry/Polygon esri/geometry/webMercatorUtils dojo/Deferred dojo/_base/array dojo/_base/lang esri/geometry/geometryEngine esri/SpatialReference esri/geometry/scaleUtils".split(" "),function(L,f,t,H,b,g,l,v,B,A){var z={getProjectedGeometry:function(c,
p,a){var r=new b;if(H.canProject(c,p)){var w=H.project(c,p);r.resolve(w)}else a.project([c],p,function(k){w=k[0];r.resolve(w)});return r.promise},getDestinationPoint:function(c,p,a){var r=c.x*Math.PI/180,w=p*Math.PI/180;p=Math.sin(w);w=Math.cos(w);var k=.9966471893352243*Math.tan(c.y*Math.PI/180);c=1/Math.sqrt(1+k*k);var d=k*c,e=Math.atan2(k,w);k=c*p;var n=1-k*k,q=2.7233160610984375E11*n/4.040829998465916E13,m=1+q/16384*(4096+q*(-768+q*(320-175*q))),x=q/1024*(256+q*(-128+q*(74-47*q))),y=a/(6356752.314245*
m),E=0;do{q=Math.cos(2*e+y);var I=Math.sin(y);var J=Math.cos(y);var O=x*I*(q+x/4*(J*(-1+2*q*q)-x/6*q*(-3+4*I*I)*(-3+4*q*q)));var Q=y;y=a/(6356752.314245*m)+O}while(1E-12<Math.abs(y-Q)&&200>++E);if(200<=E)return null;a=d*I-c*J*w;a=Math.atan2(d*J+c*I*w,.9966471893352243*Math.sqrt(k*k+a*a));n=2.0955066654848088E-4*n*(4+.003352810664775694*(4-3*n));r=(r+(Math.atan2(I*p,c*J-d*I*w)-.003352810664775694*(1-n)*k*(y+n*I*(q+n*J*(-1+2*q*q))))+3*Math.PI)%(2*Math.PI)-Math.PI;a=180*a/Math.PI;r=180*r/Math.PI;return new L(r,
a,new B(4326))},getInverseCalculations:function(c,p){var a=p.x*Math.PI/180-c.x*Math.PI/180,r=.9966471893352243*Math.tan(c.y*Math.PI/180);c=1/Math.sqrt(1+r*r);r*=c;var w=.9966471893352243*Math.tan(p.y*Math.PI/180);p=1/Math.sqrt(1+w*w);w*=p;var k=a,d=0;do{var e=Math.sin(k);var n=Math.cos(k);var q=p*e*p*e+(c*w-r*p*n)*(c*w-r*p*n);q=Math.sqrt(q);if(0==q)return 0;var m=r*w+c*p*n;var x=Math.atan2(q,m);var y=c*p*e/q;var E=1-y*y;var I=m-2*r*w/E;isNaN(I)&&(I=0);var J=2.0955066654848088E-4*E*(4+.003352810664775694*
(4-3*E));var O=k;k=a+.003352810664775694*(1-J)*y*(x+J*q*(I+J*m*(-1+2*I*I)))}while(1E-12<Math.abs(k-O)&&200>++d);if(200<=d)return null;k=2.7233160610984375E11*E/4.040829998465916E13;d=k/1024*(256+k*(-128+k*(74-47*k)));a=Math.atan2(p*e,c*w-r*p*n);c=Math.atan2(c*e,-r*p+c*w*n);a=(a+2*Math.PI)%(2*Math.PI);c=(c+2*Math.PI)%(2*Math.PI);r=Number((6356752.314245*(1+k/16384*(4096+k*(-768+k*(320-175*k))))*(x-d*q*(I+d/4*(m*(-1+2*I*I)-d/6*I*(-3+4*q*q)*(-3+4*I*I))))).toFixed(3));a=180*a/Math.PI;c=180*c/Math.PI;
return{distance:r,initialBearing:a,finalBearing:c}},getLineBetweenPoints:function(c){var p,a=[];g.forEach(c,l.hitch(this,function(r){a.push([r.x,r.y])}));0<a.length&&(p=new f({paths:[a],spatialReference:{wkid:4326}}));return p},getAngleBetweenPoints:function(c,p){c=z.getInverseCalculations(c,p);return null===c?0:c.initialBearing},getDistanceBetweenPoints:function(c,p){c=z.getInverseCalculations(c,p);return null===c?0:c.distance},getLengthOfGeometry:function(c){return(c=v.simplify(c))?v.geodesicLength(c,
9001):0},getAreaOfGeometry:function(c){c=v.simplify(c);var p={};c?(p.acres=v.geodesicArea(c,109402),p.squareMeters=v.geodesicArea(c,109404),p.squareFeet=v.geodesicArea(c,109405),p.squareUsFeet=v.geodesicArea(c,109406)):(p.acres=0,p.squareMeters=0,p.squareFeet=0,p.squareUsFeet=0);return p},getPolyLineFromPaths:function(c){var p;var a=new f(new B({wkid:4326}));for(p=0;p<c.length;p++)a.addPath(c[p]);return a},getPolygonFromPolyLines:function(c,p,a,r){var w,k;var d=[];r=r?new t(new B(r)):new t(new B({wkid:4326}));
for(w=0;w<c.length;w++)for(k=0;k<c[w].length;k++)d.push(c[w][k]);p?d.push(l.clone(d[0])):a&&(d[d.length-1][0]=d[0][0],d[d.length-1][1]=d[0][1]);r.isClockwise(d)||d.reverse();r.addRing(d);return r},getPointsForArc:function(c,p,a,r){var w=[];var k=p-c;p=parseInt(k,10);0>=p&&(p=1);var d=Math.abs(k)/Math.abs(p);if(0<d)for(k=0;k<Math.abs(p)+1;k++){var e=c+d*k;(e=z.getDestinationPoint(a,e,Math.abs(r)))&&w.push(e)}return w},getArcParam:function(c){var p={};0>c.distance?0>c.radius?(p.bearing=c.initBearing+
90,p.centerPoint=z.getDestinationPoint(c.chordMidPoint,p.bearing,c.centerAndChordDistance),p.startAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordEndPoint),p.endAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordStartPoint)):(p.bearing=c.initBearing-90,p.centerPoint=z.getDestinationPoint(c.chordMidPoint,p.bearing,c.centerAndChordDistance),p.startAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordStartPoint),p.endAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordEndPoint)):0<c.radius?(p.bearing=
c.initBearing+90,p.centerPoint=z.getDestinationPoint(c.chordMidPoint,p.bearing,c.centerAndChordDistance),p.startAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordStartPoint),p.endAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordEndPoint)):(p.bearing=c.initBearing-90,p.centerPoint=z.getDestinationPoint(c.chordMidPoint,p.bearing,c.centerAndChordDistance),p.startAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordEndPoint),p.endAngle=z.getAngleBetweenPoints(p.centerPoint,c.chordStartPoint));return p},
removeNegativeExponents:function(c){return 1<c.toString().toLowerCase().split("e-").length?0:c},getChordLengthFromArcLength:function(c,p){c=Math.abs(c);var a=Math.PI*Math.abs(p);p=Math.abs(p)*Math.sin(Math.abs(c)/Math.abs(p)/2);return c<=a?2*p:-2*p},getArcLengthFromChordLength:function(c,p){var a=Math.abs(c);p=Math.abs(p);a=2*Math.asin(a/(2*p))*p;0>c&&(a=2*Math.PI*p-a);return a},chordBearingToTangentBearing:function(c,p,a){var r=180/Math.PI*Math.acos(Math.abs(a)/2/Math.abs(p));p/=Math.abs(p);c=c+
90*p-a/Math.abs(a)*p*r;return z.removeNegativeExponents(0>c?c+360:360<=c?c%360:c)},tangentBearingToChordBearing:function(c,p,a){var r=180/Math.PI*Math.acos(Math.abs(a)/2/Math.abs(p));p/=Math.abs(p);c=c+90*p-a/Math.abs(a)*p*r;return z.removeNegativeExponents(0>c?c+360:360<=c?c%360:c)},getUnitValueForSR:function(c){switch(A.getUnitValueForSR(c)){case 1:return"meters";case 111194.87428468118:return"meters";case .3048:return"feet";case .3048006096:case .3048006096012192:return"uSSurveyFeet"}},getRotationAngleBetweenPoints:function(c,
p){c=H.project(c,new B(102100));p=H.project(p,new B(102100));var a=p.x-c.x;c=p.y-c.y;p=180*Math.atan2(Math.abs(a),Math.abs(c))/Math.PI;var r=180*Math.atan2(Math.abs(c),Math.abs(a))/Math.PI;a=z.removeNegativeExponents(a);c=z.removeNegativeExponents(c);p=z.removeNegativeExponents(p);r=z.removeNegativeExponents(r);if(0===c){if(0===a)return 0;if(0<a)return 90;if(0>a)return 270}else if(0<c){if(0===a)return 0;if(0<a)return p;if(0>a)return 270+r}else if(0>c){if(0===a)return 180;if(0<a)return 90+r;if(0>a)return 180+
p}},getScaleDistanceBetweenPoints:function(c,p){c=H.project(c,new B(102100));p=H.project(p,new B(102100));c=v.distance(c,p,9001);return z.removeNegativeExponents(c)}};return z})},"widgets/GriddedReferenceGraphic/js/geometry-utils":function(){define(["./constants","esri/geometry/webMercatorUtils","esri/geometry/Polyline","esri/geometry/Polygon"],function(L,f,t,H){return{toGeographic:function(b){return b.spatialReference.isWebMercator()?f.webMercatorToGeographic(b):b},toWebMercator:function(b){return b.spatialReference.isWebMercator()?
b:f.geographicToWebMercator(b)},_latitudeToWebMercatorY:function(b){return L.GEOGRAPHIC_360/2*(L.HALF_PI-2*Math.atan(Math.exp(-1*b/L.WGS84_EQUATORIAL_RADIUS)))/Math.PI},_longitudeToWebMercatorX:function(b){var g=L.GEOGRAPHIC_360,l=L.GEOGRAPHIC_360/2,v=L.WGS84_EQUATORIAL_RADIUS;return b/v*l/Math.PI-Math.floor((b/v*l/Math.PI+l)/g)*g},pointToGeographic:function(b){for(var g=b.x,l=b.y,v=(b=b.spatialReference.isWebMercator())?L.WEST_WEBMERCATOR_LIMIT:L.WEST_GEOGRAPHIC_LIMIT,B=b?L.EAST_WEBMERCATOR_LIMIT:
L.EAST_GEOGRAPHIC_LIMIT,A=b?L.WEBMERCATOR_360:L.GEOGRAPHIC_360,z=0;g<=v;)g+=A,--z;for(;g>B;)g-=A,z+=1;b&&(g=this._longitudeToWebMercatorX(g),l=this._latitudeToWebMercatorY(l));return{x:g,y:l,offsetX:z}},extentToPolygon:function(b){return new H({rings:[[[b.xmin,b.ymin],[b.xmax,b.ymin],[b.xmax,b.ymax],[b.xmin,b.ymax],[b.xmin,b.ymin]]],spatialReference:b.spatialReference})},polygonToPolyline:function(b){return new t({paths:b.rings,spatialReference:{wkid:b.spatialReference.wkid}})}}})},"widgets/GriddedReferenceGraphic/js/constants":function(){define([],
function(){return{ZONE_WIDTH_DEGREES:6,ZONE_HEIGHT_DEGREES:8,MIN_MGRS_LATITUDE:-80,MAX_MGRS_LATITUDE:84,POSITIVE_180:179.99999999,NEGATIVE_180:-179.99999999,WEST_GEOGRAPHIC_LIMIT:-180,EAST_GEOGRAPHIC_LIMIT:180,GEOGRAPHIC_360:360,WEST_WEBMERCATOR_LIMIT:-2.0037508342789244E7,EAST_WEBMERCATOR_LIMIT:2.0037508342789244E7,WEBMERCATOR_360:4.007501668557849E7,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,WGS84_EQUATORIAL_RADIUS:6378137,WGS84_HALF_EQUATORIAL_RADIUS:3189068.5,
HALF_PI:1.5707963267948966}})},"widgets/GriddedReferenceGraphic/js/mgrs-utils":function(){define("dojo/json ./constants ./geometry-utils ./geometryUtils ./mgrs ./NonPolarGridZone ./VisibleGridZone ./GridPolygon esri/geometry/geometryEngine esri/geometry/Point esri/geometry/Polygon".split(" "),function(L,f,t,H,b,g,l,v,B,A,z){Math.log10||(Math.log10=function(c){return Math.log(c)/Math.LN10});return{_ZonesDictionary:function(){var c,p,a,r="CDEFGHJKLMNPQRSTUVWX".split(""),w={},k=function(e,n){var q=e+
r[n];if("32X"===q||"34X"===q||"36X"===q)return null;if("31V"===q)var m={xmin:0,ymin:56,xmax:3,ymax:64,id:q};else if("32V"===q)m={xmin:3,ymin:56,xmax:12,ymax:64,id:q};else if("31X"===q)m={xmin:0,ymin:72,xmax:9,ymax:84,id:q};else if("33X"===q)m={xmin:9,ymin:72,xmax:21,ymax:84,id:q};else if("35X"===q)m={xmin:21,ymin:72,xmax:33,ymax:84,id:q};else if("37X"===q)m={xmin:33,ymin:72,xmax:42,ymax:84,id:q};else{m=(e-1)*f.ZONE_WIDTH_DEGREES-180;e=e*f.ZONE_WIDTH_DEGREES-180;var x=n*f.ZONE_HEIGHT_DEGREES+f.MIN_MGRS_LATITUDE;
n=(n+1)*f.ZONE_HEIGHT_DEGREES+f.MIN_MGRS_LATITUDE;m=180===m?f.POSITIVE_180:m;m=-180===m?f.NEGATIVE_180:m;e=180===e?f.POSITIVE_180:e;e=-180===e?f.NEGATIVE_180:e;80===n&&(n=f.MAX_MGRS_LATITUDE);m={xmin:m,ymin:x,xmax:e,ymax:n,id:q}}return new g(m)};for(c=1;60>=c;c++)for(p=0;p<r.length;p++)(a=k(c,p))&&(w[a.id]=a);for(c=1;60>=c;c++){var d=[];for(p=0;p<r.length;p++)if(a=k(c,p))a=new z({rings:L.parse(L.stringify(a._rings))}),d.push(a);d=B.union(d);for(p=0;p<r.length;p++)(a=k(c,p))&&(w[a.id.fullZoneGeometry]=
d)}return w}(),zonesFromExtent:function(c,p){var a=c.spatialReference.isWebMercator()?f.WEBMERCATOR_360:f.GEOGRAPHIC_360,r="CDEFGHJKLMNPQRSTUVWX".split(""),w=[];if(c.xmax-c.xmin>a)return w;a=t.extentToPolygon(c);a=t.toWebMercator(a);var k=t.pointToGeographic(new A([c.xmin,c.ymin],c.spatialReference)),d=t.pointToGeographic(new A([c.xmax,c.ymax],c.spatialReference));c=k.y;var e=d.y;var n=k.offsetX;var q=d.offsetX;for(var m=n;m<=q;m++){var x=m>n?f.NEGATIVE_180:k.x;var y=m<q?f.POSITIVE_180:d.x;var E=
Math.min(Math.max(Math.floor((c+80)/f.ZONE_HEIGHT_DEGREES),0),19);var I=Math.min(Math.floor((e+80)/f.ZONE_HEIGHT_DEGREES),19);x=Math.floor((x+180)/f.ZONE_WIDTH_DEGREES);for(y=Math.min(Math.floor((y+180)/f.ZONE_WIDTH_DEGREES)+2,60);x<=y;x++)for(var J=E;J<=I;J++){var O=r[J];O=x+O;if(this._ZonesDictionary[O]){var Q=L.parse(L.stringify(this._ZonesDictionary[O]._rings));for(var T=0;T<Q[0].length;T++)Q[0][T][0]+=m*f.GEOGRAPHIC_360;Q=new z({rings:Q});(Q=B.intersect(t.toWebMercator(Q),a))&&w.push(new l({map:p,
polygon:Q,fullZoneGeometry:this._ZonesDictionary[O].fullZoneGeometry,offset:m,nonPolarGridZone:this._ZonesDictionary[O],utmZone:this._ZonesDictionary[O].utmZone,latitudeBand:this._ZonesDictionary[O].latitudeZone}))}}}return w},processZonePolygons:function(c,p,a){var r=[];a=t.toWebMercator(a);for(var w=0;w<c.length;w++){var k=c[w];if(k){var d=k.nonPolarGridZone.latitudeZone,e=t.toGeographic(k.polygon.getExtent()),n=b.LLtoUTM(e.ymin,e.xmin,k.nonPolarGridZone.utmZone),q=b.LLtoUTM(e.ymin,e.xmax,k.nonPolarGridZone.utmZone),
m=b.LLtoUTM(e.ymax,e.xmax,k.nonPolarGridZone.utmZone);e=b.LLtoUTM(e.ymax,e.xmin,k.nonPolarGridZone.utmZone);k={minE:Math.min(n[0],q[0],m[0],e[0]),maxE:Math.max(n[0],q[0],m[0],e[0]),minN:Math.min(n[1],q[1],m[1],e[1]),maxN:Math.max(n[1],q[1],m[1],e[1]),utmZone:k.nonPolarGridZone.utmZone,latitudeZone:d,polygon:k.polygon,offset:k.offset,fullZoneGeometry:t.extentToPolygon(k.nonPolarGridZone.extent)};r=r.concat(this.handle100kGrids(k,p,a))}}return r},handle100kGrids:function(c,p,a){var r=c.polygon,w=c.offset,
k=c.utmZone,d=c.latitudeZone,e=c.fullZoneGeometry,n=c.minE,q=c.maxE,m=c.maxN,x=[],y,E;for(c=1E5*Math.floor(c.minN/1E5);c<m;c+=1E5)for(y=1E5*Math.floor(n/1E5);y<q;y+=1E5){var I=b.findGridLetters(k,0>c+5E4?1E7+(c+5E4):c+5E4,y+5E4);var J=[];for(E=y;E<=y+1E5;E+=1E4){var O=b.UTMtoLL(c,E,k);J.push([O.lon,O.lat])}for(E=c;E<c+1E5;E+=1E4)O=b.UTMtoLL(E,y+1E5,k),J.push([O.lon,O.lat]);for(E=y+1E5;E>=y;E-=1E4)O=b.UTMtoLL(c+1E5,E,k),J.push([O.lon,O.lat]);for(E=c+1E5;E>=c;E-=1E4)O=b.UTMtoLL(E,y,k),J.push([O.lon,
O.lat]);for(E=0;E<J.length;E++)J[E][0]+=w*f.GEOGRAPHIC_360;E=new z([J]);J=H.getAngleBetweenPoints(E.getPoint(0,E.rings[0].length-1),E.getPoint(0,E.rings[0].length-2));O=B.rotate(t.extentToPolygon(a),-1*J);J=B.intersect(t.toWebMercator(E),t.toWebMercator(r));O=B.intersects(O,t.toWebMercator(E));if(J||O){var Q;O&&(Q=B.intersect(t.toWebMercator(E),t.toWebMercator(e)));I={clippedPolygon:J,unclippedPolygon:E,clippedPolyToUTMZone:Q,map:p,xmin:y,ymin:c,xmax:y+1E5,ymax:c+1E5,x:"",y:"",minMaxType:"utm",utmZone:k,
latitudeZone:d,utmZonePoly:r,fullZoneGeometry:e,GZD:I,text:I};Q&&(I=new v(I),x.push(I))}}return x},handleGridSquares:function(c,p,a,r){var w=[],k=c.utmZonePoly,d=c.latitudeZone,e=c.utmZone,n=c.fullZoneGeometry,q=c.GZD,m=c.xmin,x=c.xmax,y=c.ymin;c=c.ymax;var E,I,J=!0,O=!0;r=t.toWebMercator(r);for(E=Math.floor(y/a)*a;E<c;E+=a)for(I=Math.floor(m/a)*a;I<x;I+=a){var Q=[];var T=b.UTMtoLL(E,I,e);Q.push([T.lon,T.lat]);var X=b.UTMtoLL(E+a,I,e);Q.push([X.lon,X.lat]);var Y=b.UTMtoLL(E+a,I+a,e);Q.push([Y.lon,
Y.lat]);Y=b.UTMtoLL(E,I+a,e);Q.push([Y.lon,Y.lat]);Q.push([T.lon,T.lat]);Q=new z([Q]);Y=B.intersect(t.toWebMercator(t.extentToPolygon(r)),t.toWebMercator(n));if(J&&O){var W=H.getAngleBetweenPoints(new A(T.lon,T.lat),new A(X.lon,X.lat));W=B.rotate(Y,-1*W)}T=B.intersect(t.toWebMercator(Q),k);X=B.intersects(W,t.toWebMercator(Q));var U;if(T||X){X&&(U=B.intersect(t.toWebMercator(Q),t.toWebMercator(n)));X=q+this._padZero(I%1E5/a,5-Math.log10(a)).toString()+this._padZero((0>y?1E7+E:E)%1E5/a,5-Math.log10(a)).toString();
Q={clippedPolygon:T,unclippedPolygon:Q,fullZoneGeometry:n,clippedPolyToUTMZone:U,map:p,xmin:I,ymin:E,xmax:I+a,ymax:E+a,x:this._padZero(I%1E5/a,5-Math.log10(a)).toString(),y:this._padZero((0>y?1E7+E:E)%1E5/a,5-Math.log10(a)).toString(),minMaxType:"utm",utmZone:e,latitudeZone:d,GZD:q,utmZonePoly:k,text:X};if(!U)continue;J=new v(Q);w.push(J)}O=J=!1}return w},_padZero:function(c,p){for(c=c.toString();c.length<p;)c="0"+c;return c}}})},"widgets/GriddedReferenceGraphic/js/mgrs":function(){define(["esri/geometry/Point"],
function(L){var f=6378137;var t=.00669437999;var H=t/(1-t);var b=(1-Math.sqrt(1-t))/(1+Math.sqrt(1-t));return{setSpheroid:function(g){g=g.toUpperCase();switch(g){case "AIRY 1830":f=6377563.396;t=.00667053999998536;break;case "AIRY MODIFIED":f=6377340.189;t=.00667053999998536;break;case "AVERAGE TERRESTRIAL SYSTEM 1977":f=6378135;t=.00669438499958795;break;case "AUSTRALIAN NATIONAL":f=6378160;t=.00669454185458764;break;case "BESSEL 1841":f=6377397.155;t=.00667437223180214;break;case "BESSEL MODIFIED":f=
6377492.018;t=.00667437223180214;break;case "BESSEL NAMIBIA":f=6377483.865;t=.00667437223180214;break;case "CLARKE 1858":f=6378293.639;t=.00678514600473303;break;case "NAD27":case "CLARKE 1866":f=6378206.4;t=.00676865799760964;break;case "CLARKE 1866 MICHIGAN":f=6378450.047;t=.00676865830738507;break;case "CLARKE 1880":f=6378249.138;t=.00680348101883452;break;case "CLARKE 1880 (ARC)":f=6378249.145;t=.00680348101883452;break;case "CLARKE 1880 (BENOIT)":f=6378300.79;t=.00680348271028565;break;case "CLARKE 1880 (IGN)":f=
6378249.2;t=.00680348767623919;break;case "CLARKE 1880 (RGS)":f=6378249.145;t=.00680351128284906;break;case "CLARKE 1880 (SGA)":f=6378249.2;t=.00680348860198551;break;case "EVEREST 1830 (DEFINITION)":f=6377299.36;t=.00663784663019969;break;case "EVEREST 1830 (MODIFIED)":f=6377304.063;t=.00663784663019969;break;case "EVEREST (ADJUSTMENT 1937)":f=6377276.345;t=.00663784663019969;break;case "EVEREST (DEFINITION 1962)":f=6377301.243;t=.00663784606842344;break;case "EVEREST (DEFINITION 1967)":f=6377298.556;
t=.00663784663019969;break;case "EVEREST (DEFINITION 1975)":f=6377299.151;t=.00663784606842344;break;case "NAD83":case "GEM GRAVITY POTENTIAL MODEL":case "GRS 1980":f=6378137;t=.00669438002290079;break;case "GRS 1967 \x3d INTERNATIONAL 1967":f=6378160;t=.00669460532856765;break;case "HELMERT 1906":f=6378200;t=.00669342162296594;break;case "INDONESIAN NATIONAL":f=6378160;t=.0066946090804091;break;case "INTERNATIONAL 1924":f=6378388;t=.00672267002233332;break;case "INTERNATIONAL 1967":f=6378160;t=.00669454185458764;
break;case "KRASOVSKY 1940":f=6378245;t=.00669342162296594;break;case "TRANSIT PRECISE EPHEMERIS":f=6378145;t=.00669454185458764;break;case "OSU 1986 GEOIDAL MODEL":f=6378136.2;t=.00669438006997852;break;case "OSU 1991 GEOIDAL MODEL":f=6378136.3;t=.00669438006997852;break;case "PLESSIS 1817":f=6376523;t=.00646954373789485;break;case "STRUVE 1860":f=6378298.3;t=.00677435980080942;break;case "WAR OFFICE":f=6378300.583;t=.00674534331628926;break;case "NWL-10D \x3d\x3d WGS 1972":f=6378135;t=.00669431777826672;
break;case "WGS 1972":f=6378135;t=.00669431777826672;break;case "WGS84":case "WGS 1984":f=6378137;t=.00669437999014132;break;case "WGS 1966":f=6378145;t=.00669454185458764;break;case "FISCHER 1960":f=6378166;t=.00669342162296594;break;case "FISCHER 1968":f=6378150;t=.00669342162296594;break;case "FISCHER MODIFIED":f=6378155;t=.00669342162296594;break;case "HOUGH 1960":f=6378270;t=.00672267002233332;break;case "EVEREST MODIFIED 1969":f=6377295.664;t=.00663784663019969;break;case "WALBECK":f=6376896;
t=.00659454809414964;break;case "GRS 1967 TRUNCATED":f=6378160,t=.00669454185458764}H=t/(1-t);b=(1-Math.sqrt(1-t))/(1+Math.sqrt(1-t))},getSpheroidList:function(){return"AIRY 1830;AIRY MODIFIED;AUSTRALIAN NATIONAL;AVERAGE TERRESTRIAL SYSTEM 1977;BESSEL 1841;BESSEL MODIFIED;BESSEL NAMIBIA;CLARKE 1858;CLARKE 1866 MICHIGAN;CLARKE 1866;CLARKE 1880 (ARC);CLARKE 1880 (BENOIT);CLARKE 1880 (IGN);CLARKE 1880 (RGS);CLARKE 1880 (SGA);CLARKE 1880;EVEREST (ADJUSTMENT 1937);EVEREST (DEFINITION 1962);EVEREST (DEFINITION 1967);EVEREST (DEFINITION 1975);EVEREST 1830 (DEFINITION);EVEREST 1830 (MODIFIED);EVEREST MODIFIED 1969;FISCHER 1960;FISCHER 1968;FISCHER MODIFIED;GEM GRAVITY POTENTIAL MODEL;GRS 1967 \x3d INTERNATIONAL 1967;GRS 1967 TRUNCATED;GRS 1980;HELMERT 1906;HOUGH 1960;INDONESIAN NATIONAL;INTERNATIONAL 1924;INTERNATIONAL 1967;KRASOVSKY 1940;NWL-10D \x3d\x3d WGS 1972;OSU 1986 GEOIDAL MODEL;OSU 1991 GEOIDAL MODEL;PLESSIS 1817;STRUVE 1860;TRANSIT PRECISE EPHEMERIS;WALBECK;WAR OFFICE;WGS 1966;WGS 1972;WGS 1984".split(";")},
getZoneNumber:function(g,l){g=parseFloat(g);l=parseFloat(l);if(360<l||-180>l){for(;-180>l;)l+=360;for(;180<l;)l-=360}l=l+180-360*Math.floor((l+180)/360)-180;var v=Math.floor((l+180)/6)+1;56<=g&&64>g&&3<=l&&12>l&&(v=32);72<=g&&84>g&&(0<=l&&9>l?v=31:9<=l&&21>l?v=33:21<=l&&33>l?v=35:33<=l&&42>l&&(v=37));return v},LLtoUTM:function(g,l,v){g=parseFloat(g);l=parseFloat(l);if(84<g||-80>g)return"undefined, ensure 84N \x3e Lat \x3e 80S";if(360<l||-180>l){for(;-180>l;)l+=360;for(;180<l;)l-=360}var B=l+180-360*
Math.floor((l+180)/360)-180;var A=g*Math.PI/180;B=B*Math.PI/180;l=v?v:this.getZoneNumber(g,l);var z=(6*(l-1)-180+3)*Math.PI/180;g=l+""+this.UTMLetterDesignator(g)+" ";v=f/Math.sqrt(1-t*Math.sin(A)*Math.sin(A));var c=Math.tan(A)*Math.tan(A);var p=H*Math.cos(A)*Math.cos(A);z=Math.cos(A)*(B-z);B=.9996*v*(z+(1-c+p)*z*z*z/6+(5-18*c+c*c+72*p-58*H)*z*z*z*z*z/120)+5E5;A=.9996*(f*((1-t/4-3*t*t/64-5*t*t*t/256)*A-(3*t/8+3*t*t/32+45*t*t*t/1024)*Math.sin(2*A)+(15*t*t/256+45*t*t*t/1024)*Math.sin(4*A)-35*t*t*t/
3072*Math.sin(6*A))+v*Math.tan(A)*(z*z/2+(5-c+9*p+4*p*p)*z*z*z*z/24+(61-58*c+c*c+600*p-330*H)*z*z*z*z*z*z/720));v={};v.z=l;v.s=g;v.x=Math.round(B);v.y=0>A?Math.round(1E7+A):Math.round(A);return[B,A,l,v]},LLtoUSNG:function(g,l,v,B){v=v||5;var A=B?B:this.getZoneNumber(g,l);g=parseFloat(g);l=parseFloat(l);var z=this.LLtoUTM(g,l,A);B=z[0];var c=z[1];0>g&&(c+=1E7);z=this.findGridLetters(A,c,B);A=Math.round(c)%1E5;B=Math.round(B)%1E5;A=Math.floor(A/Math.pow(10,5-v));B=Math.floor(B/Math.pow(10,5-v));g=this.getZoneNumber(g,
l)+this.UTMLetterDesignator(g)+" "+z+" ";for(l=String(B).length;l<v;l++)g+="0";g+=B+" ";for(l=String(A).length;l<v;l++)g+="0";return g+A},UTMLetterDesignator:function(g){g=parseFloat(g);return 84>=g&&72<=g?"X":72>g&&64<=g?"W":64>g&&56<=g?"V":56>g&&48<=g?"U":48>g&&40<=g?"T":40>g&&32<=g?"S":32>g&&24<=g?"R":24>g&&16<=g?"Q":16>g&&8<=g?"P":8>g&&0<=g?"N":0>g&&-8<=g?"M":-8>g&&-16<=g?"L":-16>g&&-24<=g?"K":-24>g&&-32<=g?"J":-32>g&&-40<=g?"H":-40>g&&-48<=g?"G":-48>g&&-56<=g?"F":-56>g&&-64<=g?"E":-64>g&&-72<=
g?"D":-72>g&&-80<=g?"C":"Z"},findSet:function(g){g=parseInt(g,10);switch(g%6){case 0:return 6;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;default:return-1}},findGridLetters:function(g,l,v){g=parseInt(g,10);l=parseFloat(l);v=parseFloat(v);var B=1;for(l=Math.round(l);1E5<=l;)l-=1E5,B++;B%=20;l=0;for(v=Math.round(v);1E5<=v;)v-=1E5,l++;l%=8;return this.lettersHelper(this.findSet(g),B,l)},lettersHelper:function(g,l,v){0===l?l=19:l--;0===v?v=7:v--;switch(g){case 1:return g=
"ABCDEFGHJKLMNPQRSTUV","ABCDEFGH".charAt(v)+g.charAt(l);case 2:return g="FGHJKLMNPQRSTUVABCDE","JKLMNPQR".charAt(v)+g.charAt(l);case 3:return g="ABCDEFGHJKLMNPQRSTUV","STUVWXYZ".charAt(v)+g.charAt(l);case 4:return g="FGHJKLMNPQRSTUVABCDE","ABCDEFGH".charAt(v)+g.charAt(l);case 5:return g="ABCDEFGHJKLMNPQRSTUV","JKLMNPQR".charAt(v)+g.charAt(l);case 6:return g="FGHJKLMNPQRSTUVABCDE","STUVWXYZ".charAt(v)+g.charAt(l)}},UTMtoLL:function(g,l,v){l=parseFloat(l)-5E5;g=parseFloat(g);v=parseInt(v,10);g=g/.9996/
(f*(1-t/4-3*t*t/64-5*t*t*t/256));g=g+(3*b/2-27*b*b*b/32)*Math.sin(2*g)+(21*b*b/16-55*b*b*b*b/32)*Math.sin(4*g)+151*b*b*b/96*Math.sin(6*g);var B=f/Math.sqrt(1-t*Math.sin(g)*Math.sin(g)),A=Math.tan(g)*Math.tan(g),z=H*Math.cos(g)*Math.cos(g),c=l/(.9996*B);l=g-B*Math.tan(g)/(f*(1-t)/Math.pow(1-t*Math.sin(g)*Math.sin(g),1.5))*(c*c/2-(5+3*A+10*z-4*z*z-9*H)*c*c*c*c/24+(61+90*A+298*z+45*A*A-252*H-3*z*z)*c*c*c*c*c*c/720);l=180*l/Math.PI;g=(c-(1+2*A+z)*c*c*c/6+(5-2*z+28*A-3*z*z+8*H+24*A*A)*c*c*c*c*c/120)/Math.cos(g);
g=6*(v-1)-180+3+180*g/Math.PI;v={};v.lat=l;v.lon=g;return v},USNGtoUTM:function(g,l,v,B,A,z){v=1+"ABCDEFGHJKLMNPQRSTUVWXYZ".indexOf(v)%8;var c="CDEFGHJKLMNPQRSTUVWX".indexOf(l);B=g%2?"ABCDEFGHJKLMNPQRSTUV".indexOf(B):"FGHJKLMNPQRSTUVABCDE".indexOf(B);B=Number([0,2,2,2,4,4,6,6,8,8,0,0,0,2,2,4,4,6,6,6][c])+B/10;B<[1.1,2,2.9,3.8,4.7,5.6,6.5,7.3,8.2,9.1,0,.8,1.7,2.6,3.5,4.4,5.3,6.2,7,7.9][c]&&(B+=2);c={};c.N=1E6*B+Number(z)*Math.pow(10,5-z.length);c.E=1E5*v+Number(A)*Math.pow(10,5-A.length);c.zone=g;
c.letter=l;return c},USNGtoLL:function(g){g=this.parseUSNG_str(g);var l=this.USNGtoUTM(g.zone,g.ltr,g.sq1,g.sq2,g.east,g.north);"N">g.ltr&&(l.N-=1E7);l=this.UTMtoLL(l.N,l.E,g.zone);return[l.lat,l.lon]},parseUSNG_str:function(g){var l=[];g=g.toUpperCase();l=/%20/g;l=g.replace(l,"");l=/ /g;l=g.replace(l,"");if(7>l.length)return 0;g={};var v=0;g.zone=10*l.charAt(v++)+1*l.charAt(v++);g.ltr=l.charAt(v++);g.sq1=l.charAt(v++);g.sq2=l.charAt(v++);g.precision=(l.length-v)/2;g.east="";g.north="";for(var B=
0;B<g.precision;B++)g.east+=l.charAt(v++);" "===l[v]&&v++;for(B=0;B<g.precision;B++)g.north+=l.charAt(v++);return g},isUSNG:function(g){g=g.toUpperCase();var l=/%20/g;g=g.replace(l,"");l=/ /g;g=g.replace(l,"");if(15<g.length)return 0;l=/^[0-9]{2}[CDEFGHJKLMNPQRSTUVWX]$/;if(g.match(l))return 0;l=/^[0-9]{2}[CDEFGHJKLMNPQRSTUVWX][ABCDEFGHJKLMNPQRSTUVWXYZ][ABCDEFGHJKLMNPQRSTUV]([0-9][0-9]){0,5}/;return!g.match(l)||7>g.length?0:g},LLtoMGRS:function(g,l,v){return this.LLtoUSNG(g,l,v||5).replace(/ /g,"")},
USNGtoPoint:function(g){g=this.USNGtoLL(g);return new L(g[1],g[0])},pointToUSNG:function(g,l){var v=g.getLatitude();g=g.getLongitude();return this.LLtoUSNG(v,g,l)},LLtoUSNG_nad27:function(g,l,v){return this.LLtoUSNG(g,l,v||5)+" (NAD27)"}}})},"widgets/GriddedReferenceGraphic/js/NonPolarGridZone":function(){define(["dojo/_base/declare","dojo/json","./constants","esri/geometry/Polygon","esri/geometry/Extent"],function(L,f,t,H,b){return L(null,{extent:null,id:null,utmZone:null,latitudeZone:null,_rings:[],
constructor:function(g){var l=g.id.match(/(\d+)|([A-Za-z]+)/g);this.id=g.id;this.utmZone=1*l[0];this.latitudeZone=l[1];this.extent=new b({xmin:g.xmin,ymin:g.ymin,xmax:g.xmax,ymax:g.ymax,spatialReference:g.spatialReference||{wkid:4326}});g=[this.extent.xmin,this.extent.ymin];this._rings=[[g,[this.extent.xmax,this.extent.ymin],[this.extent.xmax,this.extent.ymax],[this.extent.xmin,this.extent.ymax],g]]},toPolygon:function(g){var l=f.parse(f.stringify(this._rings));if(g)for(var v=0;v<l[0].length;v++)l[0][v][0]+=
g*t.GEOGRAPHIC_360;return new H({rings:l,spatialReference:this.spatialReference})}})})},"widgets/GriddedReferenceGraphic/js/VisibleGridZone":function(){define(["dojo/_base/declare","./GridPolygon"],function(L,f){return L(null,{polygon:null,offset:null,nonPolarGridZone:null,fullZoneGeometry:null,map:null,constructor:function(t){this.offset=Math.round(t.offset);this.polygon=t.polygon;this.nonPolarGridZone=t.nonPolarGridZone;this.fullZoneGeometry=t.fullZoneGeometry;this.map=t.map;this.utmZone=t.utmZone;
this.latitudeBand=t.latitudeBand;t={clippedPolygon:this.polygon,unclippedPolygon:this.nonPolarGridZone.toPolygon(t.offset),map:this.map,xmin:this.nonPolarGridZone.extent.xmin,ymin:this.nonPolarGridZone.extent.ymin,xmax:this.nonPolarGridZone.extent.xmax,ymax:this.nonPolarGridZone.extent.ymax,minMaxType:"degrees",utmZone:this.utmZone,text:this.nonPolarGridZone.id,latitudeBand:this.latitudeBand};this.gridPolygon=new f(t)}})})},"widgets/GriddedReferenceGraphic/js/GridPolygon":function(){define(["dojo/_base/declare"],
function(L){return L(null,{clippedPolygon:null,unclippedPolygon:null,clippedPolyToUTMZone:null,utmZonePoly:null,fullZoneGeometry:null,map:null,xmin:0,ymin:0,x:"",y:"",xmax:0,ymax:0,minMaxType:"",utmZone:0,latitudeZone:"",GZD:"",text:"",constructor:function(f){this.unclippedPolygon=f.unclippedPolygon;this.clippedPolygon=f.clippedPolygon;this.utmZonePoly=f.utmZonePoly;this.fullZoneGeometry=f.fullZoneGeometry;this.clippedPolyToUTMZone=f.clippedPolyToUTMZone;this.map=f.map;this.xmin=f.xmin;this.ymin=
f.ymin;this.xmax=f.xmax;this.ymax=f.ymax;this.x=f.x;this.y=f.y;this.minMaxType=f.minMaxType;this.utmZone=Math.round(f.utmZone);this.latitudeZone=f.latitudeZone;this.GZD=f.GZD;this.text=f.text}})})},"widgets/GriddedReferenceGraphic/js/util":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/_base/Deferred","esri/tasks/GeometryService"],function(L,f,t,H){return L(null,{constructor:function(b){this.appConfig=b.appConfig;this.nls=b.nls;(b=this.appConfig.geometryService)||(b="//utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer");
this.geomService=new H(b)},getCleanInput:function(b){b=b.replace(/\n/g,"");b=b.replace(/\s+/g," ").trim();return b.toUpperCase()},getCoordValues:function(b,g,l){var v=new t;b={sr:4326,coordinates:[[b.x,b.y]],conversionType:g.name?g.name:g,numOfDigits:l||6,rounding:!0,addSpaces:!1};switch(g){case "DD":b.numOfDigits=6;break;case "USNG":b.numOfDigits=5;break;case "MGRS":b.conversionMode="mgrsDefault";b.numOfDigits=5;break;case "UTM (H)":b.conversionType="utm";b.conversionMode="utmNorthSouth";b.addSpaces=
!0;break;case "UTM":b.conversionType="utm";b.conversionMode="utmDefault";b.addSpaces=!0;break;case "GARS":b.conversionMode="garsDefault"}this.geomService.toGeoCoordinateString(b).then(function(B){v.resolve(B)},function(){v.resolve(null)});return v.promise},getXYNotation:function(b,g){var l=new t;var v=g.name?g.name:g;g={sr:4326,conversionType:v,strings:[]};switch(v){case "DD":case "DDM":case "DMS":g.numOfDigits=2;b=b.replace(/[\u00b0\u02da\u00ba^~*"'\u2032\u00a8\u02dd]/g,"");g.strings.push(b);break;
case "USNG":g.strings.push(b);g.addSpaces="false";break;case "MGRS":g.conversionMode="mgrsNewStyle";g.strings.push(b);g.addSpaces="false";break;case "UTM (H)":g.conversionType="utm";g.conversionMode="utmNorthSouth";g.strings.push(b);break;case "UTM":g.conversionType="utm";g.conversionMode="utmDefault";g.strings.push(b);break;case "GARS":g.conversionMode="garsCenter";g.strings.push(b);break;case "GEOREF":g.strings.push(b)}this.geomService.fromGeoCoordinateString(g).then(function(B){l.resolve(B)},function(){l.resolve(null)});
return l.promise},getNotations:function(){return[{name:"DD",pattern:new RegExp([/^(([NS\+\-\s])*([0-8]?\d([,.]\d*)?|90([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([NS\+\-\s])*)([,:;\s|\/\\]+)/,/(([EW\+\-\s])*([0]?\d?\d([,.]\d*)?|1[0-7]\d([,.]\d*)?|180([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([EW\+\-\s])*)$/].map(function(b){return b.source}).join("")),notationType:this.nls.DDLatLongNotation,conversionType:"DD"},{name:"DDrev",pattern:new RegExp([/^(([EW\+\-\s])*([0]?\d?\d([,.]\d*)?|1[0-7]\d([,.]\d*)?|180([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([EW\+\-\s])*)/,
/([,:;\s|\/\\]+)(([NS\+\-\s])*([0-8]?\d([,.]\d*)?|90([,.]0*)?)([\u00b0\u02da\u00ba^~*]*)([NS\+\-\s])*)$/].map(function(b){return b.source}).join("")),notationType:this.nls.DDLongLatNotation,conversionType:"DD"},{name:"DDM",pattern:new RegExp([/^(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)['\u2032\s_]*([NS\+\-\s])*)/,/([,:;\s|\/\\]+)/,/(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]\d|\d)([,.]\d*)?)['\u2032\s_]*([EW\+\-\s])*)/,/[\s]*$/].map(function(b){return b.source}).join("")),
notationType:this.nls.DDMLatLongNotation,conversionType:"DDM"},{name:"DDMrev",pattern:new RegExp([/^(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]\d|\d)([,.]\d*)?)['\u2032\s_]*([EW\+\-\s])*)/,/([,:;\s|\/\\]+)/,/(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)['\u2032\s_]*([NS\+\-\s])*)[\s]*$/].map(function(b){return b.source}).join("")),notationType:this.nls.DDMLongLatNotation,conversionType:"DDM"},{name:"DMS",pattern:new RegExp([/^(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]?\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([NS\+\-\s])*)/,
/([,:;\s|\/\\]+)/,/(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([EW\+\-\s])*)[\s]*$/].map(function(b){return b.source}).join("")),notationType:this.nls.DMSLatLongNotation,conversionType:"DMS"},{name:"DMSrev",pattern:new RegExp([/^(([EW\+\-\s])*([0]?\d?\d|1[0-7]\d|180)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([EW\+\-\s])*)/,/([,:;\s|\/\\]+)/,/(([NS\+\-\s])*([0-8]?\d|90)[\u00b0\u02da\u00ba^~*\s\-_]+([0-5]?\d|\d)['\u2032\s\-_]+(([0-5]?\d|\d)([,.]\d*)?)["\u00a8\u02dd\s_]*([NS\+\-\s])*)[\s]*$/].map(function(b){return b.source}).join("")),
notationType:this.nls.DMSLongLatNotation,conversionType:"DMS"},{name:"GARS",pattern:/^\d{3}[a-zA-Z]{2}[1-4]?[1-9]?$/,notationType:this.nls.GARSNotation,conversionType:"GARS"},{name:"GEOREF",pattern:/^[a-zA-Z]{4}\d{1,8}$/,notationType:this.nls.GEOREFNotation,conversionType:"GEOREF"},{name:"MGRS",pattern:new RegExp([/^\d{1,2}[-,;:\s]*[C-HJ-NP-X][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*/,/(\d[-,;:\s]+\d|\d{2}[-,;:\s]+\d{2}|\d{3}[-,;:\s]+\d{3}|\d{4}[-,;:\s]+\d{4}|\d{5}[-,;:\s]+\d{5})/,/$|^(\d{1,2}[-,;:\s]*[C-HJ-NP-X][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*)/,
/(\d{2}|\d{4}|\d{6}|\d{8}|\d{10})?$|^[ABYZ][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*/,/(\d[-,;:\s]+\d|\d{2}[-,;:\s]+\d{2}|\d{3}[-,;:\s]+\d{3}|\d{4}[-,;:\s]+\d{4}|\d{5}[-,;:\s]+\d{5})/,/$|^[ABYZ][-,;:\s]*[A-HJ-NP-Z]{2}[-,;:\s]*(\d{2}|\d{4}|\d{6}|\d{8}|\d{10})?$/].map(function(b){return b.source}).join("")),notationType:this.nls.MGRSNotation,conversionType:"MGRS"},{name:"UTM",pattern:new RegExp([/^\d{1,2}[-,;:\s]*[c-hj-np-xC-HJ-NP-X][-,;:\s]*\d{1,6}\.?\d*[mM]?[-,;:\s]?\d{1,7}\.?\d*[mM]?$/].map(function(b){return b.source}).join("")),
notationType:this.nls.UTMBandNotation,conversionType:"UTM"},{name:"UTM (H)",pattern:new RegExp([/^\d{1,2}[-,;:\s]*[NnSs][-,;:\s]*\d{1,6}\.?\d*[mM]?[-,;:\s]+\d{1,7}\.?\d*[mM]?$/].map(function(b){return b.source}).join("")),notationType:this.nls.UTMHemNotation,conversionType:"UTM (H)"}]},getCoordinateType:function(b){var g=this.getCleanInput(b);b=new t;var l=this.getNotations();g=f.filter(l,function(v){return v.pattern.test(this.v)},{v:g});0<g.length?b.resolve(g):b.resolve(null);return b.promise},getFormattedDDStr:function(b,
g,l){var v={};v.sourceValue=b;v.sourceFormatString=g;b=b[0].split(/[ ,]+/);v.latdeg=b[0].replace(/[nNsS]/,"");v.londeg=b[1].replace(/[eEwW]/,"");l&&(v.latdeg="N"===b[0].slice(-1)?"+"+v.latdeg:"-"+v.latdeg,v.londeg="W"===b[1].slice(-1)?"-"+v.londeg:"+"+v.londeg);g=g.replace(/X/,v.londeg);g=g.replace(/[eEwW]/,b[1].slice(-1));g=g.replace(/[nNsS]/,b[0].slice(-1));g=g.replace(/Y/,v.latdeg);v.formatResult=g;return v},getFormattedDDMStr:function(b,g,l){var v={};v.sourceValue=b;v.sourceFormatString=g;v.parts=
b[0].split(/[ ,]+/);v.latdeg=v.parts[0];v.latmin=v.parts[1].replace(/[nNsS]/,"");v.londeg=v.parts[2];v.lonmin=v.parts[3].replace(/[eEwW]/,"");l&&(v.latdeg="N"===v.parts[1].slice(-1)?"+"+v.latdeg:"-"+v.latdeg,v.londeg="W"===v.parts[3].slice(-1)?"-"+v.londeg:"+"+v.londeg);b=g.replace(/[EeWw]/,v.parts[3].slice(-1));b=b.replace(/Y/,v.lonmin);b=b.replace(/X/,v.londeg);b=b.replace(/[NnSs]/,v.parts[1].slice(-1));b=b.replace(/B/,v.latmin);b=b.replace(/A/,v.latdeg);v.formatResult=b;return v},getFormattedDMSStr:function(b,
g,l){var v={};v.sourceValue=b;v.sourceFormatString=g;v.parts=b[0].split(/[ ,]+/);v.latdeg=v.parts[0];v.latmin=v.parts[1];v.latsec=v.parts[2].replace(/[NnSs]/,"");v.londeg=v.parts[3];v.lonmin=v.parts[4];v.lonsec=v.parts[5].replace(/[EWew]/,"");l&&(v.latdeg="N"===v.parts[2].slice(-1)?"+"+v.latdeg:"-"+v.latdeg,v.londeg="W"===v.parts[5].slice(-1)?"-"+v.londeg:"+"+v.londeg);b=g.replace(/A/,v.latdeg);b=b.replace(/B/,v.latmin);b=b.replace(/C/,v.latsec);b=b.replace(/X/,v.londeg);b=b.replace(/Y/,v.lonmin);
b=b.replace(/Z/,v.lonsec);b=b.replace(/[NnSs]/,v.parts[2].slice(-1));b=b.replace(/[EeWw]/,v.parts[5].slice(-1));v.formatResult=b;return v},getFormattedUSNGStr:function(b,g){var l={};l.sourceValue=b;l.sourceFormatString=g;b[0].match(/^[ABYZ]/)?l.gzd=b[0].match(/[ABYZ]/)[0].trim():l.gzd=b[0].match(/\d{1,2}[C-HJ-NP-X]/)[0].trim();l.grdsq=b[0].replace(l.gzd,"").match(/[a-hJ-zA-HJ-Z]{2}/)[0].trim();l.easting=b[0].replace(l.gzd+l.grdsq,"").match(/^\d{1,5}/)[0].trim();l.northing=b[0].replace(l.gzd+l.grdsq,
"").match(/\d{1,5}$/)[0].trim();b=g.replace(/Y/,l.northing);b=b.replace(/X/,l.easting);b=b.replace(/S/,l.grdsq);b=b.replace(/Z/,l.gzd);l.formatResult=b;return l},getFormattedMGRSStr:function(b,g){var l={};l.sourceValue=b;l.sourceFormatString=g;b[0].match(/^[ABYZ]/)?l.gzd=b[0].match(/[ABYZ]/)[0].trim():l.gzd=b[0].match(/\d{1,2}[C-HJ-NP-X]/)[0].trim();l.grdsq=b[0].replace(l.gzd,"").match(/[a-hJ-zA-HJ-Z]{2}/)[0].trim();l.easting=b[0].replace(l.gzd+l.grdsq,"").match(/^\d{1,5}/)[0].trim();l.northing=b[0].replace(l.gzd+
l.grdsq,"").match(/\d{1,5}$/)[0].trim();b=g.replace(/Y/,l.northing);b=b.replace(/X/,l.easting);b=b.replace(/S/,l.grdsq);b=b.replace(/Z/,l.gzd);l.formatResult=b;return l},getFormattedGARSStr:function(b,g){var l={};l.sourceValue=b;l.sourceFormatString=g;l.lon=b[0].match(/\d{3}/);l.lat=b[0].match(/[a-zA-Z]{2}/);b=b[0].match(/\d*$/);l.quadrant=b[0][0];l.key=b[0][1];g=g.replace(/K/,l.key);g=g.replace(/Q/,l.quadrant);g=g.replace(/Y/,l.lat);g=g.replace(/X/,l.lon);l.formatResult=g;return l},getFormattedGEOREFStr:function(b,
g){var l={};l.sourceValue=b;l.sourceFormatString=g;l.lon=b[0].match(/[a-zA-Z]{1}/)[0].trim();l.lat=b[0].replace(l.lon,"").match(/[a-zA-Z]{1}/)[0].trim();l.quadrant15lon=b[0].replace(l.lon+l.lat,"").match(/[a-zA-Z]{1}/)[0].trim();l.quadrant15lat=b[0].replace(l.lon+l.lat+l.quadrant15lon,"").match(/[a-zA-Z]{1}/)[0].trim();b=b[0].replace(l.lon+l.lat+l.quadrant15lon+l.quadrant15lat,"");l.quadrant1lon=b.substr(0,b.length/2);l.quadrant1lat=b.substr(b.length/2,b.length);g=g.replace(/Y/,l.quadrant1lat);g=
g.replace(/X/,l.quadrant1lon);g=g.replace(/D/,l.quadrant15lat);g=g.replace(/C/,l.quadrant15lon);g=g.replace(/B/,l.lat);g=g.replace(/A/,l.lon);l.formatResult=g;return l},getFormattedUTMStr:function(b,g){var l={};l.sourceValue=b;l.sourceFormatString=g;l.parts=b[0].split(/[ ,]+/);l.zone=l.parts[0].replace(/[A-Z]/,"");l.bandLetter=l.parts[0].slice(-1);l.easting=l.parts[1];l.westing=l.parts[2];b=g.replace(/Y/,l.westing);b=b.replace(/X/,l.easting);b=b.replace(/B/,l.bandLetter);b=b.replace(/Z/,l.zone);l.formatResult=
b;return l},getFormattedUTMHStr:function(b,g){var l={};l.sourceValue=b;l.sourceFormatString=g;l.parts=b[0].split(/[ ,]+/);l.zone=l.parts[0].replace(/[A-Z]/,"");l.hemisphere=l.parts[0].slice(-1);l.easting=l.parts[1];l.westing=l.parts[2];b=g.replace(/Y/,l.westing);b=b.replace(/X/,l.easting);b=b.replace(/H/,l.hemisphere);b=b.replace(/Z/,l.zone);l.formatResult=b;return l},convertMetersToUnits:function(b,g){var l=0;switch(g.toLowerCase()){case "meters":l=b;break;case "feet":l=3.28084*b;break;case "kilometers":l=
.001*b;break;case "miles":l=6.21371E-4*b;break;case "nautical-miles":l=5.39957E-4*b;break;case "yards":l=1.09361*b}return l},convertToMeters:function(b,g){var l=b;switch(g){case "meters":l=b;break;case "feet":l=.3048*b;break;case "kilometers":l=1E3*b;break;case "miles":l=1609.34*b;break;case "nautical-miles":l=1852.001376036*b;break;case "yards":l=.9144*b}return l}})})},"esri/geometry/projection":function(){define("require exports dojo/Deferred ./pe ../SpatialReference ./GeographicTransformation".split(" "),
function(L,f,t,H,b,g){function l(c,p,a,r,w){void 0===r&&(r=null);void 0===w&&(w=!1);if(null===r){var k=g.cacheKey(p,a);void 0!==z[k]?r=z[k]:(r=v(p,a,null),null===r&&(r=new g),z[k]=r)}return B._project(c,p,a instanceof b||!1===w?a:new b(a),r,w)}function v(c,p,a){void 0===a&&(a=null);c=B._getTransformation(c,p,a);return null!==c?g.fromGE(c):null}Object.defineProperty(f,"__esModule",{value:!0});var B=null;f.isLoaded=function(){return!!B&&H.isLoaded()};f.isSupported=function(){return H.isSupported()};
var A=null;f.load=function(){if(A)return A.promise;A=new t;var c=H.load();L(["./geometryEngine"],function(p){B=p;c.then(function(){B._enableProjection(H);A.resolve()},function(a){A.reject(a)})});return A.promise};f.project=function(c,p,a){void 0===a&&(a=null);return c instanceof Array?0===c.length?[]:l(c,c[0].spatialReference,p,a):l([c],c.spatialReference,p,a)[0]};var z={};f.projectMany=l;f.getTransformation=v;f.getTransformations=function(c,p,a){void 0===a&&(a=null);c=B._getTransformationBySuitability(c,
p,a);if(null!==c){p=[];for(a=0;a<c.length;a++)p.push(g.fromGE(c[a]));return p}return[]}})},"esri/geometry/pe":function(){define(["require","exports","../core/tsSupport/extendsHelper","dojo/Deferred","../core/sniff"],function(L,f,t,H,b){function g(k){function d(m,x,y){m[x]=y(m[x])}f._pe=k;c.init();p.init();a.init();r.init();w.init();f.PeGCSExtent=function(m){function x(){return null!==m&&m.apply(this,arguments)||this}t(x,m);x.prototype.destroy=function(){f._pe.destroy(this)};return x}(f._pe.PeGCSExtent);
for(var e=0,n=[f._pe.PeDatum,f._pe.PeGeogcs,f._pe.PeGeogtran,f._pe.PeObject,f._pe.PeParameter,f._pe.PePrimem,f._pe.PeProjcs,f._pe.PeSpheroid,f._pe.PeUnit];e<n.length;e++)k=n[e],d(k.prototype,"getName",function(m){return function(){return m.call(this,Array(c.PE_NAME_MAX))}});e=0;for(n=[f._pe.PeGeogtran,f._pe.PeProjcs];e<n.length;e++)k=n[e],d(k.prototype,"getParameters",function(m){return function(){for(var x=Array(c.PE_PARM_MAX),y=m.call(this),E=0;E<x.length;E++){var I=f._pe.getValue(y,"*");x[E]=I?
f._pe.wrapPointer(I,f._pe.PeParameter):null;y+=Int32Array.BYTES_PER_ELEMENT}return x}});d(f._pe.PeHorizon.prototype,"getCoord",function(m){return function(){var x=this.getSize();if(!x)return null;var y=[],E=m.call(this);A(y,x,E);return y}});d(f._pe.PeGTlistExtendedEntry.prototype,"getEntries",function(m){var x=f._pe._pe_getPeGTlistExtendedGTsSize();return function(){var y=null,E=m.call(this);if(!f._pe.compare(E,f._pe.NULL)){y=[E];var I=this.getSteps();if(1<I){E=f._pe.getPointer(E);for(var J=1;J<I;J++)y.push(f._pe.wrapPointer(E+
x*J,f._pe.PeGTlistExtendedGTs))}}return y}});var q=f._pe._pe_getPeHorizonSize();k=function(m){return function(){var x=this._cache;x||(this._cache=x=new Map);if(x.has(m))return x.get(m);var y=null,E=m.call(this);if(!f._pe.compare(E,f._pe.NULL)){y=[E];var I=E.getNump();if(1<I){E=f._pe.getPointer(E);for(var J=1;J<I;J++)y.push(f._pe.wrapPointer(E+q*J,f._pe.PeHorizon))}}x.set(m,y);return y}};d(f._pe.PeProjcs.prototype,"horizonGcsGenerate",k);d(f._pe.PeProjcs.prototype,"horizonPcsGenerate",k);f._pe.PeObject.prototype.toString=
function(m){void 0===m&&(m=c.PE_STR_OPTS_NONE);f._pe.ensureCache.prepare();var x=f._pe.getPointer(this),y=f._pe.ensureInt8(Array(c.PE_BUFFER_MAX));return f._pe.UTF8ToString(f._pe._pe_object_to_string_ext(x,m,y))}}function l(k){if(k){var d=f._pe.getClass(k);d&&(d=f._pe.getCache(d))&&(k=f._pe.getPointer(k))&&delete d[k]}}function v(k,d){var e=[];d=Array(d);for(var n=0;n<k;n++)e.push(f._pe.ensureInt8(d));return e}function B(k){if(Array.isArray(k[0])){var d=[];k.forEach(function(e){d.push(e[0],e[1])})}else d=
k;return d}function A(k,d,e,n){void 0===n&&(n=!1);if(n)for(n=0;n<2*d;n++)k[n]=f._pe.getValue(e+n*Float64Array.BYTES_PER_ELEMENT,"double");else{var q=0===k.length;for(n=0;n<d;n++)q&&(k[n]=Array(2)),k[n][0]=f._pe.getValue(e,"double"),k[n][1]=f._pe.getValue(e+Float64Array.BYTES_PER_ELEMENT,"double"),e+=2*Float64Array.BYTES_PER_ELEMENT}}Object.defineProperty(f,"__esModule",{value:!0});var z;f._pe=null;f.isLoaded=function(){return!!f._pe};f.isSupported=function(){return!!b("esri-wasm")};f.load=function(){if(z)return z.promise;
z=new H;L(["./support/pe-wasm"],function(k){k({locateFile:function(d){return L.toUrl("./support/"+d)},onAbort:function(d){z.reject(Error(d))}}).then(function(d){g(d);z.resolve()})});return z.promise};(function(k){function d(q,m,x){f._pe.ensureCache.prepare();var y=B(x),E=x===y;y=f._pe.ensureFloat64(y);(q=f._pe._pe_geog_to_proj(f._pe.getPointer(q),m,y))&&A(x,m,y,E);return q}function e(q,m,x){return n(q,m,x,0)}function n(q,m,x,y){f._pe.ensureCache.prepare();var E=B(x),I=x===E;E=f._pe.ensureFloat64(E);
(q=f._pe._pe_proj_to_geog_center(f._pe.getPointer(q),m,E,y))&&A(x,m,E,I);return q}k.geogToProj=d;k.projGeog=function(q,m,x,y){switch(y){case c.PE_TRANSFORM_P_TO_G:return e(q,m,x);case c.PE_TRANSFORM_G_TO_P:return d(q,m,x)}return 0};k.projToGeog=e;k.projToGeogCenter=n})(f.PeCSTransformations||(f.PeCSTransformations={}));var c;(function(k){k.init=function(){k.PE_BUFFER_MAX=f._pe.PeDefs.prototype.PE_BUFFER_MAX;k.PE_NAME_MAX=f._pe.PeDefs.prototype.PE_NAME_MAX;k.PE_MGRS_MAX=f._pe.PeDefs.prototype.PE_MGRS_MAX;
k.PE_USNG_MAX=f._pe.PeDefs.prototype.PE_USNG_MAX;k.PE_DD_MAX=f._pe.PeDefs.prototype.PE_DD_MAX;k.PE_DDM_MAX=f._pe.PeDefs.prototype.PE_DDM_MAX;k.PE_DMS_MAX=f._pe.PeDefs.prototype.PE_DMS_MAX;k.PE_UTM_MAX=f._pe.PeDefs.prototype.PE_UTM_MAX;k.PE_PARM_MAX=f._pe.PeDefs.prototype.PE_PARM_MAX;k.PE_TYPE_NONE=f._pe.PeDefs.prototype.PE_TYPE_NONE;k.PE_TYPE_GEOGCS=f._pe.PeDefs.prototype.PE_TYPE_GEOGCS;k.PE_TYPE_PROJCS=f._pe.PeDefs.prototype.PE_TYPE_PROJCS;k.PE_TYPE_GEOGTRAN=f._pe.PeDefs.prototype.PE_TYPE_GEOGTRAN;
k.PE_TYPE_COORDSYS=f._pe.PeDefs.prototype.PE_TYPE_COORDSYS;k.PE_TYPE_UNIT=f._pe.PeDefs.prototype.PE_TYPE_UNIT;k.PE_STR_OPTS_NONE=f._pe.PeDefs.prototype.PE_STR_OPTS_NONE;k.PE_STR_AUTH_NONE=f._pe.PeDefs.prototype.PE_STR_AUTH_NONE;k.PE_STR_AUTH_TOP=f._pe.PeDefs.prototype.PE_STR_AUTH_TOP;k.PE_STR_NAME_CANON=f._pe.PeDefs.prototype.PE_STR_NAME_CANON;k.PE_PARM_X0=f._pe.PeDefs.prototype.PE_PARM_X0;k.PE_PARM_ND=f._pe.PeDefs.prototype.PE_PARM_ND;k.PE_TRANSFORM_1_TO_2=f._pe.PeDefs.prototype.PE_TRANSFORM_1_TO_2;
k.PE_TRANSFORM_2_TO_1=f._pe.PeDefs.prototype.PE_TRANSFORM_2_TO_1;k.PE_TRANSFORM_P_TO_G=f._pe.PeDefs.prototype.PE_TRANSFORM_P_TO_G;k.PE_TRANSFORM_G_TO_P=f._pe.PeDefs.prototype.PE_TRANSFORM_G_TO_P;k.PE_HORIZON_RECT=f._pe.PeDefs.prototype.PE_HORIZON_RECT;k.PE_HORIZON_POLY=f._pe.PeDefs.prototype.PE_HORIZON_POLY;k.PE_HORIZON_LINE=f._pe.PeDefs.prototype.PE_HORIZON_LINE;k.PE_HORIZON_DELTA=f._pe.PeDefs.prototype.PE_HORIZON_DELTA}})(c=f.PeDefs||(f.PeDefs={}));(function(k){function d(m,x){var y=null,E=n[m];
E||(E={},n[m]=E);E.hasOwnProperty(String(x))?y=E[x]:(m=f._pe.PeFactory.prototype.factoryByType(m,x),f._pe.compare(m,f._pe.NULL)||(y=m,E[x]=y));return y=e(y)}function e(m){if(m){var x=m.getType();switch(x){case c.PE_TYPE_GEOGCS:m=f._pe.castObject(m,f._pe.PeGeogcs);break;case c.PE_TYPE_PROJCS:m=f._pe.castObject(m,f._pe.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:m=f._pe.castObject(m,f._pe.PeGeogtran);break;default:x&c.PE_TYPE_UNIT&&(m=f._pe.castObject(m,f._pe.PeUnit))}}return m}var n={},q={};k.initialize=
function(){f._pe.PeFactory.prototype.initialize(null)};k.coordsys=function(m){return d(c.PE_TYPE_COORDSYS,m)};k.factoryByType=d;k.fromString=function(m,x){var y=null,E=q[m];E||(E={},q[m]=E);E.hasOwnProperty(x)?y=E[x]:(m=f._pe.PeFactory.prototype.fromString(m,x),f._pe.compare(m,f._pe.NULL)||(y=m,E[x]=y));return y=e(y)};k.geogcs=function(m){return d(c.PE_TYPE_GEOGCS,m)};k.geogtran=function(m){return d(c.PE_TYPE_GEOGTRAN,m)};k.getCode=function(m){return f._pe.PeFactory.prototype.getCode(m)};k.projcs=
function(m){return d(c.PE_TYPE_PROJCS,m)};k.unit=function(m){return d(c.PE_TYPE_UNIT,m)}})(f.PeFactory||(f.PeFactory={}));f.PeGCSExtent=null;var p;(function(k){var d;k.init=function(){k.PE_GTLIST_OPTS_COMMON=f._pe.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON;d=f._pe._pe_getPeGTlistExtendedEntrySize()};k.getGTlist=function(e,n,q,m,x,y){var E=null,I=new f._pe.PeInteger(y);try{var J=f._pe.PeGTlistExtended.prototype.getGTlist(e,n,q,m,x,I);if(y=I.val)if(E=[J],1<y){var O=f._pe.getPointer(J);for(e=1;e<
y;e++)E.push(f._pe.wrapPointer(O+d*e,f._pe.PeGTlistExtendedEntry))}}finally{f._pe.destroy(I)}return E}})(p=f.PeGTlistExtended||(f.PeGTlistExtended={}));(function(k){k.destroy=function(d){if(d&&d.length){for(var e=0;e<d.length;e++){var n=d[e];l(n);n.getEntries().forEach(function(q){l(q);q=q.getGeogtran();l(q);q.getParameters().forEach(l);[q.getGeogcs1(),q.getGeogcs2()].forEach(function(m){l(m);var x=m.getDatum();l(x);l(x.getSpheroid());l(m.getPrimem());l(m.getUnit())})})}f._pe.PeGTlistExtendedEntry.prototype.Delete(d[0])}}})(f.PeGTlistExtendedEntry||
(f.PeGTlistExtendedEntry={}));(function(k){k.geogToGeog=function(d,e,n,q,m){f._pe.ensureCache.prepare();var x=B(n),y=n===x;x=f._pe.ensureFloat64(x);var E=0;q&&(E=f._pe.ensureFloat64(q));(d=f._pe._pe_geog_to_geog(f._pe.getPointer(d),e,x,E,m))&&A(n,e,x,y);return d}})(f.PeGTTransformations||(f.PeGTTransformations={}));(function(k){function d(n,q,m,x,y,E){f._pe.ensureCache.prepare();switch(n){case "dd":var I=f._pe._pe_geog_to_dd;var J=c.PE_DD_MAX;break;case "ddm":I=f._pe._pe_geog_to_ddm;J=c.PE_DDM_MAX;
break;case "dms":I=f._pe._pe_geog_to_dms,J=c.PE_DMS_MAX}n=0;q&&(n=f._pe.getPointer(q));q=B(x);q=f._pe.ensureFloat64(q);J=v(m,J);x=f._pe.ensureInt32(J);if(y=I(n,m,q,y,x))for(I=0;I<m;I++)E[I]=f._pe.UTF8ToString(J[I]);return y}function e(n,q,m,x,y){f._pe.ensureCache.prepare();switch(n){case "dd":var E=f._pe._pe_dd_to_geog;break;case "ddm":E=f._pe._pe_ddm_to_geog;break;case "dms":E=f._pe._pe_dms_to_geog}n=0;q&&(n=f._pe.getPointer(q));q=x.map(function(I){return f._pe.ensureString(I)});x=f._pe.ensureInt32(q);
q=f._pe.ensureFloat64(Array(2*m));(E=E(n,m,x,q))&&A(y,m,q);return E}k.geog_to_dms=function(n,q,m,x,y){return d("dms",n,q,m,x,y)};k.dms_to_geog=function(n,q,m,x){return e("dms",n,q,m,x)};k.geog_to_ddm=function(n,q,m,x,y){return d("ddm",n,q,m,x,y)};k.ddm_to_geog=function(n,q,m,x){return e("ddm",n,q,m,x)};k.geog_to_dd=function(n,q,m,x,y){return d("dd",n,q,m,x,y)};k.dd_to_geog=function(n,q,m,x){return e("dd",n,q,m,x)}})(f.PeNotationDms||(f.PeNotationDms={}));var a;(function(k){k.init=function(){k.PE_MGRS_STYLE_NEW=
f._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW;k.PE_MGRS_STYLE_OLD=f._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD;k.PE_MGRS_STYLE_AUTO=f._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO;k.PE_MGRS_180_ZONE_1_PLUS=f._pe.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS;k.PE_MGRS_ADD_SPACES=f._pe.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES};k.geog_to_mgrs_extended=function(d,e,n,q,m,x,y){f._pe.ensureCache.prepare();var E=0;d&&(E=f._pe.getPointer(d));d=B(n);n=f._pe.ensureFloat64(d);d=v(e,c.PE_MGRS_MAX);
var I=f._pe.ensureInt32(d);if(q=f._pe._pe_geog_to_mgrs_extended(E,e,n,q,m,x,I))for(m=0;m<e;m++)y[m]=f._pe.UTF8ToString(d[m]);return q};k.mgrs_to_geog_extended=function(d,e,n,q,m){f._pe.ensureCache.prepare();var x=0;d&&(x=f._pe.getPointer(d));d=n.map(function(y){return f._pe.ensureString(y)});n=f._pe.ensureInt32(d);d=f._pe.ensureFloat64(Array(2*e));(q=f._pe._pe_mgrs_to_geog_extended(x,e,n,q,d))&&A(m,e,d);return q}})(a=f.PeNotationMgrs||(f.PeNotationMgrs={}));(function(k){k.geog_to_usng=function(d,
e,n,q,m,x,y){f._pe.ensureCache.prepare();var E=0;d&&(E=f._pe.getPointer(d));d=B(n);n=f._pe.ensureFloat64(d);d=v(e,c.PE_MGRS_MAX);var I=f._pe.ensureInt32(d);if(q=f._pe._pe_geog_to_usng(E,e,n,q,m,x,I))for(m=0;m<e;m++)y[m]=f._pe.UTF8ToString(d[m]);return q};k.usng_to_geog=function(d,e,n,q){f._pe.ensureCache.prepare();var m=0;d&&(m=f._pe.getPointer(d));d=n.map(function(x){return f._pe.ensureString(x)});n=f._pe.ensureInt32(d);d=f._pe.ensureFloat64(Array(2*e));(m=f._pe._pe_usng_to_geog(m,e,n,d))&&A(q,e,
d);return m}})(f.PeNotationUsng||(f.PeNotationUsng={}));var r;(function(k){k.init=function(){k.PE_UTM_OPTS_NONE=f._pe.PeNotationUtm.prototype.PE_UTM_OPTS_NONE;k.PE_UTM_OPTS_ADD_SPACES=f._pe.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES;k.PE_UTM_OPTS_NS=f._pe.PeNotationUtm.prototype.PE_UTM_OPTS_NS};k.geog_to_utm=function(d,e,n,q,m){f._pe.ensureCache.prepare();var x=0;d&&(x=f._pe.getPointer(d));d=B(n);n=f._pe.ensureFloat64(d);d=v(e,c.PE_UTM_MAX);var y=f._pe.ensureInt32(d);if(q=f._pe._pe_geog_to_utm(x,
e,n,q,y))for(x=0;x<e;x++)m[x]=f._pe.UTF8ToString(d[x]);return q};k.utm_to_geog=function(d,e,n,q,m){f._pe.ensureCache.prepare();var x=0;d&&(x=f._pe.getPointer(d));d=n.map(function(y){return f._pe.ensureString(y)});n=f._pe.ensureInt32(d);d=f._pe.ensureFloat64(Array(2*e));(q=f._pe._pe_utm_to_geog(x,e,n,q,d))&&A(m,e,d);return q}})(r=f.PeNotationUtm||(f.PeNotationUtm={}));var w;(function(k){var d=new Map;k.init=function(){k.PE_PCSINFO_OPTION_NONE=f._pe.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE;k.PE_PCSINFO_OPTION_DOMAIN=
f._pe.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN;k.PE_POLE_OUTSIDE_BOUNDARY=f._pe.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY;k.PE_POLE_POINT=f._pe.PePCSInfo.prototype.PE_POLE_POINT};k.generate=function(e,n){void 0===n&&(n=k.PE_PCSINFO_OPTION_DOMAIN);var q;if(d.has(e)){var m=d.get(e);m[n]&&(q=m[n])}q||(q=f._pe.PePCSInfo.prototype.generate(e,n),m||(m=[],d.set(e,m)),m[n]=q);return q}})(w=f.PePCSInfo||(f.PePCSInfo={}));(function(k){k.version_string=function(){return f._pe.PeVersion.prototype.version_string()}})(f.PeVersion||
(f.PeVersion={}));f._init=g})},"esri/core/tsSupport/extendsHelper":function(){define([],function(){return function(){var L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,t){f.__proto__=t}||function(f,t){for(var H in t)t.hasOwnProperty(H)&&(f[H]=t[H])};return function(f,t){function H(){this.constructor=f}L(f,t);f.prototype=null===t?Object.create(t):(H.prototype=t.prototype,new H)}}()})},"esri/geometry/GeographicTransformation":function(){define(["require","exports","./GeographicTransformationStep"],
function(L,f,t){return function(){function H(b){this.steps=[];this._cached_projection={};this._chain="";this._gtlistentry=null;if(b&&b.steps){var g=0;for(b=b.steps;g<b.length;g++){var l=b[g];l instanceof t?this.steps.push(l):this.steps.push(new t({wkid:l.wkid,wkt:l.wkt,isInverse:l.isInverse}))}}}H.cacheKey=function(b,g){return[void 0!==b.wkid&&null!==b.wkid?b.wkid.toString():"-1",void 0!==b.wkt&&null!==b.wkt?b.wkt.toString():"",void 0!==g.wkid&&null!==g.wkid?g.wkid.toString():"-1",void 0!==g.wkt&&
null!==g.wkt?g.wkt.toString():""].join()};H.fromGE=function(b){var g=new H,l="",v=0;for(b=b.steps;v<b.length;v++){var B=t.fromGE(b[v]);g.steps.push(B);l+=B.uid.toString()+","}g._cached_projection={};g._gtlistentry=null;g._chain=l;return g};H.prototype.getInverse=function(){var b=new H;b.steps=[];for(var g=this.steps.length-1;0<=g;g--)b.steps.push(this.steps[g].getInverse());return b};H.prototype.getGTListEntry=function(){for(var b="",g=0,l=this.steps;g<l.length;g++)b+=l[g].uid.toString()+",";b!==
this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=b);return this._gtlistentry};H.prototype.assignCachedGe=function(b,g,l){this._cached_projection[H.cacheKey(b,g)]=l};H.prototype.getCachedGeTransformation=function(b,g){for(var l="",v=0,B=this.steps;v<B.length;v++)l+=B[v].uid.toString()+",";l!==this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=l);b=this._cached_projection[H.cacheKey(b,g)];return void 0===b?null:b};return H}()})},"esri/geometry/GeographicTransformationStep":function(){define(["require",
"exports"],function(L,f){var t=0;return function(){function H(b){void 0===b&&(b=null);this.uid=t++;b?(this._wkt=void 0!==b.wkt?b.wkt:null,this._wkid=void 0!==b.wkid?b.wkid:-1,this._isInverse=void 0!==b.isInverse?!0===b.isInverse:!1):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}H.fromGE=function(b){var g=new H;g._wkt=b.wkt;g._wkid=b.wkid;g._isInverse=b.isInverse;return g};Object.defineProperty(H.prototype,"wkt",{get:function(){return this._wkt},set:function(b){this._wkt=b;this.uid=t++},enumerable:!0,
configurable:!0});Object.defineProperty(H.prototype,"wkid",{get:function(){return this._wkid},set:function(b){this._wkid=b;this.uid=t++},enumerable:!0,configurable:!0});Object.defineProperty(H.prototype,"isInverse",{get:function(){return this._isInverse},set:function(b){this._isInverse=b;this.uid=t++},enumerable:!0,configurable:!0});H.prototype.getInverse=function(){var b=new H;b._wkt=this.wkt;b._wkid=this._wkid;b._isInverse=!this.isInverse;return b};return H}()})},"widgets/GriddedReferenceGraphic/_build-generate_module":function(){define(["dojo/text!./Widget.html",
"dojo/text!./css/style.css","dojo/i18n!./nls/strings"],function(){})},"url:jimu/dijit/templates/CoordinateControl.html":"\x3cdiv class\x3d'coordinateContainer'\x3e\r\n  \x3cdiv class\x3d'coordLabel' data-dojo-attach-point\x3d'coordNameContainer' data-a11y-label-id\x3d'coordLabel'\x3e\r\n    \x3cspan data-dojo-type\x3d'dijit/InlineEditBox' width\x3d'75px' data-dojo-props\x3d\"editor:'dijit/form/TextBox', autoSave:true\"\r\n      data-dojo-attach-point\x3d'coordName'\x3e${type}\x3c/span\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d'add-with-icon coordInput'\x3e\r\n    \x3ctextarea data-a11y-label-by\x3d'coordLabel' tabindex\x3d\"0\" aria-multiline\x3d\"true\" role\x3d\"textbox\" id\x3d'${uid}' type\x3d'text' rows\x3d'1' data-dojo-attach-point\x3d'coordtext' spellcheck\x3d'false'\r\n    placeholder\x3d'${nls.coordinateInputLabel}' title\x3d'${nls.coordinateInputLabel}'\x3e\x3c/textarea\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d'coordactions'\x3e\r\n    \x3cdiv class\x3d'add-with-icon'\x3e\r\n      \x3cspan tabindex\x3d\"0\" role\x3d\"button\" id\x3d'${uid}_cpbtn' aria-label\x3d'${nls.copyToClipboard}' title\x3d'${nls.copyToClipboard}' data-dojo-attach-point\x3d'cpbtn' class\x3d'cpbtn'\x3e\x3c/span\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d'add-with-icon'\x3e\r\n      \x3cspan tabindex\x3d\"0\" role\x3d\"button\" title\x3d\"${nls.formatOutput}\" class\x3d'settingBtn' data-dojo-attach-point\x3d'formatButton'\x3e\x3c/span\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d'add-with-icon'\x3e\r\n      \x3cspan tabindex\x3d\"0\" role\x3d\"button\" aria-label\x3d'${nls.zoomLabel}' title\x3d'${nls.zoomLabel}' class\x3d'zoomBtn' data-dojo-attach-point\x3d'zoomButton'\x3e\x3c/span\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d'add-with-icon'\x3e\r\n      \x3cspan tabindex\x3d\"0\" role\x3d\"button\" aria-label\x3d'${nls.addPointLabel}' title\x3d'${nls.addPointLabel}' class\x3d'drawPointBtn' data-dojo-attach-point\x3d'drawPointButton'\x3e\x3c/span\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d'add-with-icon'\x3e\r\n      \x3cspan tabindex\x3d\"0\" role\x3d\"button\" aria-label\x3d'${nls.removeCoordinate}' title\x3d'${nls.removeCoordinate}' class\x3d'jimu-icon jimu-icon-close' data-dojo-attach-point\x3d'removeControlBtn'\r\n        data-dojo-attach-event\x3d'onclick: remove'\x3e\x3c/span\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d'add-with-icon'\x3e\r\n      \x3cspan tabindex\x3d\"0\" role\x3d\"button\" aria-label\x3d\"${nls.expandOutput}\" aria-expanded \x3d \"false\" title\x3d\"${nls.expandOutput}\" class\x3d'expandBtn' data-dojo-attach-point\x3d'expandButton'\x3e\x3c/span\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv data-dojo-attach-point\x3d'coordcontrols' class\x3d'coordarea' style\x3d\"display: none\"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d'sub1' class\x3d'coordformat'\x3e\r\n      \x3cdiv class\x3d'crdfrmtlabel'\x3e\r\n        \x3cspan data-dojo-attach-point\x3d'sub1label' data-a11y-label-id\x3d'sub1Label'/\x3e\r\n      \x3c/div\x3e\r\n      \x3cinput data-a11y-label-by\x3d'sub1Label' tabindex\x3d\"-1\" role\x3d\"textbox\" readonly data-dojo-attach-point\x3d'${uid}sub1val' class\x3d'jimu-input crds'\x3e\x3c/input\x3e\r\n      \x3cdiv class\x3d'add-with-icon'\x3e\r\n        \x3cspan tabindex\x3d\"-1\" role\x3d\"button\" id\x3d'${uid}sub1val~cpbtn' aria-label\x3d'${nls.copyToClipboard}' title\x3d'${nls.copyToClipboard}' data-dojo-attach-point\x3d'subVal1CpBtn' class\x3d'jimu-icon cpbtn'\x3e\x3c/span\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d'sub2' class\x3d'coordformat'\x3e\r\n      \x3cdiv class\x3d'crdfrmtlabel'\x3e\r\n        \x3cspan data-dojo-attach-point\x3d'sub2label' data-a11y-label-id\x3d'sub2Label'/\x3e\r\n      \x3c/div\x3e\r\n      \x3cinput data-a11y-label-by\x3d'sub2Label' tabindex\x3d\"-1\" role\x3d\"textbox\" readonly data-dojo-attach-point\x3d'${uid}sub2val' class\x3d'jimu-input crds'\x3e\x3c/input\x3e\r\n      \x3cdiv class\x3d'add-with-icon'\x3e\r\n        \x3cspan tabindex\x3d\"-1\" role\x3d\"button\" id\x3d'${uid}sub2val~cpbtn' aria-label\x3d'${nls.copyToClipboard}' title\x3d'${nls.copyToClipboard}' data-dojo-attach-point\x3d'subVal2CpBtn' class\x3d'jimu-icon cpbtn'\x3e\x3c/span\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d'sub3' class\x3d'coordformat sub3'\x3e\r\n      \x3cdiv class\x3d'crdfrmtlabel'\x3e\r\n        \x3cspan data-dojo-attach-point\x3d'sub3label' data-a11y-label-id\x3d'sub3Label'/\x3e\r\n      \x3c/div\x3e\r\n      \x3cinput data-a11y-label-by\x3d'sub3Label' tabindex\x3d\"-1\" role\x3d\"textbox\" readonly data-dojo-attach-point\x3d'${uid}sub3val' class\x3d'jimu-input crds'\x3e\r\n      \x3c/input\x3e\r\n      \x3cdiv class\x3d'add-with-icon'\x3e\r\n        \x3cspan tabindex\x3d\"-1\" role\x3d\"button\" id\x3d'${uid}sub3val~cpbtn' aria-label\x3d'$${nls.copyToClipboard}' title\x3d'$${nls.copyToClipboard}' data-dojo-attach-point\x3d'subVal3CpBtn' class\x3d'jimu-icon cpbtn'\x3e\x3c/span\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d'sub4' class\x3d'coordformat sub4'\x3e\r\n      \x3cdiv class\x3d'crdfrmtlabel'\x3e\r\n        \x3cspan data-dojo-attach-point\x3d'sub4label' data-a11y-label-id\x3d'sub4Label' /\x3e\r\n      \x3c/div\x3e\r\n      \x3cinput data-a11y-label-by\x3d'sub4Label' tabindex\x3d\"-1\" role\x3d\"textbox\" readonly data-dojo-attach-point\x3d'${uid}sub4val' class\x3d'jimu-input crds'\x3e\r\n      \x3c/input\x3e\r\n      \x3cdiv class\x3d'add-with-icon'\x3e\r\n        \x3cspan tabindex\x3d\"-1\" role\x3d\"button\" id\x3d'${uid}sub4val~cpbtn' aria-label\x3d'${nls.copyToClipboard} title\x3d'${nls.copyToClipboard}' data-dojo-attach-point\x3d'subVal4CpBtn' class\x3d'jimu-icon cpbtn'\x3e\x3c/span\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d\"line-separator\"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e",
"url:dijit/templates/InlineEditBox.html":'\x3cspan data-dojo-attach-point\x3d"editNode" role\x3d"presentation" class\x3d"dijitReset dijitInline dijitOffScreen"\r\n\t\x3e\x3cspan data-dojo-attach-point\x3d"editorPlaceholder"\x3e\x3c/span\r\n\t\x3e\x3cspan data-dojo-attach-point\x3d"buttonContainer"\r\n\t\t\x3e\x3cbutton data-dojo-type\x3d"./form/Button" data-dojo-props\x3d"label: \'${buttonSave}\', \'class\': \'saveButton\'"\r\n\t\t\tdata-dojo-attach-point\x3d"saveButton" data-dojo-attach-event\x3d"onClick:save"\x3e\x3c/button\r\n\t\t\x3e\x3cbutton data-dojo-type\x3d"./form/Button"  data-dojo-props\x3d"label: \'${buttonCancel}\', \'class\': \'cancelButton\'"\r\n\t\t\tdata-dojo-attach-point\x3d"cancelButton" data-dojo-attach-event\x3d"onClick:cancel"\x3e\x3c/button\r\n\t\x3e\x3c/span\r\n\x3e\x3c/span\x3e\r\n',
"url:widgets/GriddedReferenceGraphic/templates/ColorPickerEditor.html":'\x3cdiv class\x3d"colorPickerEditor"\x3e\r\n  \x3cdiv class\x3d"colorPicker" data-dojo-attach-point\x3d"colorPicker"\x3e\x3c/div\x3e\r\n  \x3cspan class\x3d"trans"\x3e${nls.transparency}\x3c/span\x3e\r\n  \x3cdiv class\x3d"sliderbar" data-dojo-attach-point\x3d"sliderBar"\x3e\x3c/div\x3e\r\n  \x3cinput type\x3d"text" data-dojo-type\x3d"dijit/form/NumberSpinner" value\x3d"0"\r\n         data-dojo-attach-point\x3d"spinner" data-dojo-props\x3d"smallDelta:10,intermediateChanges:true,constraints: {min:0,max:100}"\x3e\r\n  \x3cspan class\x3d"percent-display"\x3e%\x3c/span\x3e\r\n\x3c/div\x3e\r\n\r\n',
"url:widgets/GriddedReferenceGraphic/templates/FontSetting.html":'\x3cdiv class\x3d"style-selector"\x3e\r\n  \x3cdiv class\x3d"setting-items font clearFix" data-dojo-attach-point\x3d"fontSetting"\x3e\r\n    \x3cdiv class\x3d"label jimu-float-leading" title\x3d"${nls.font}"\x3e${nls.font}\x3c/div\x3e\r\n    \x3cdiv class\x3d"setting-wapper jimu-float-trailing"\x3e\r\n      \x3cselect data-dojo-attach-point\x3d"fontSelect" data-dojo-props\x3d\'style:{width:"100%"}\' data-dojo-type\x3d"jimu/dijit/formSelect" aria-label\x3d"${nls.font}"\x3e\x3c/select\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"setting-items text-size clearFix" data-dojo-attach-point\x3d"textSizeSetting"\x3e\r\n    \x3cdiv class\x3d"label jimu-float-leading" title\x3d"${nls.textSize}"\x3e${nls.textSize}\x3c/div\x3e\r\n    \x3cdiv class\x3d"setting-wapper jimu-float-trailing"\x3e\r\n      \x3cdiv class\x3d"text-size-group jimu-float-leading"\x3e\r\n        \x3c!--role and aria-label added run time--\x3e\r\n        \x3cselect data-dojo-type\x3d"dijit/form/ComboBox" data-dojo-attach-point\x3d"textSizeSelect"\x3e\x3c/select\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"text-size-group jimu-float-leading"\x3e\r\n        \x3cdiv class\x3d"sliderbar" data-dojo-attach-point\x3d"sliderBar"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"setting-items text-color clearFix" data-dojo-attach-point\x3d"textColorSetting"\x3e\r\n    \x3cdiv class\x3d"label jimu-float-leading" title\x3d"${nls.textColor}"\x3e${nls.textColor}\x3c/div\x3e\r\n    \x3cdiv class\x3d"setting-wapper jimu-float-trailing"\x3e\r\n      \x3cdiv class\x3d"font-group jimu-float-leading"\x3e\r\n        \x3cdiv class\x3d"text-color-btn" data-dojo-attach-point\x3d"textColorBtn"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"font-group font-group-btns jimu-float-leading"\x3e\r\n        \x3cdiv class\x3d"font-btn jimu-float-leading bold" data-dojo-attach-point\x3d"bold" tabindex\x3d"0" role\x3d"button" aria-label\x3d"bold" aria-pressed\x3d"false"\x3e\x3c/div\x3e\r\n        \x3cdiv class\x3d"font-btn jimu-float-leading italic" data-dojo-attach-point\x3d"italic" tabindex\x3d"0" role\x3d"button" aria-label\x3d"italic" aria-pressed\x3d"false"\x3e\x3c/div\x3e\r\n        \x3cdiv class\x3d"font-btn jimu-float-leading underline" data-dojo-attach-point\x3d"underline" tabindex\x3d"0" role\x3d"button" aria-label\x3d"underline" aria-pressed\x3d"false"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"setting-items text-color clearFix" data-dojo-attach-point\x3d"transparencySetting"\x3e\r\n    \x3cdiv class\x3d"label jimu-float-leading" title\x3d"${nls.transparency}"\x3e${nls.transparency}\x3c/div\x3e\r\n    \x3cdiv class\x3d"setting-wapper jimu-float-trailing"\x3e\r\n      \x3cdiv class\x3d"font-group jimu-float-leading"\x3e\r\n        \x3cdiv class\x3d"text-color-btn" data-dojo-attach-point\x3d"transparencySlider"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e      \r\n    \x3c/div\x3e\r\n  \x3c/div\x3e  \r\n  \x3cdiv class\x3d"setting-items halo-size clearFix" data-dojo-attach-point\x3d"haloSetting"\x3e\r\n    \x3cdiv class\x3d"label jimu-float-leading" title\x3d"${nls.halo}"\x3e${nls.halo}\x3c/div\x3e\r\n    \x3cdiv class\x3d"setting-wapper jimu-float-trailing"\x3e\r\n      \x3cdiv class\x3d"halo-size-group jimu-float-leading"\x3e\r\n        \x3cselect data-dojo-type\x3d"jimu/dijit/formSelect" data-dojo-attach-point\x3d"haloSizeSelect" aria-label\x3d"${nls.halo}"\x3e\x3c/select\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"halo-size-group jimu-float-leading"\x3e\r\n        \x3cdiv class\x3d"halo-color-btn" data-dojo-attach-point\x3d"haloColorBtn" aria-label\x3d"${nls.halo}"\x3e\x3c/div\x3e        \r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"halo-size-group jimu-float-leading"\x3e\r\n        \x3cdiv class\x3d"label" title\x3d"${nls.show}"\x3e${nls.show}\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"halo-size-group jimu-float-leading"\x3e\r\n        \x3cinput class\x3d"halo-toggle" data-dojo-type\x3d"dijit/form/CheckBox" data-dojo-attach-point\x3d"showHalo" checked\x3d"true" aria-label\x3d"${nls.show}"/\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/GriddedReferenceGraphic/templates/TransparencyEditor.html":'\x3cdiv class\x3d"colorPickerEditor"\x3e\r\n  \x3cdiv class\x3d"sliderbar" data-dojo-attach-point\x3d"sliderBar"\x3e\x3c/div\x3e\r\n  \x3cinput type\x3d"text" data-dojo-type\x3d"dijit/form/NumberSpinner" value\x3d"0"\r\n         data-dojo-attach-point\x3d"spinner" data-dojo-props\x3d"smallDelta:10,intermediateChanges:true,constraints: {min:0,max:100}"\x3e\r\n  \x3cspan class\x3d"percent-display"\x3e%\x3c/span\x3e\r\n\x3c/div\x3e\r\n\r\n',
"url:widgets/GriddedReferenceGraphic/templates/GridSettings.html":'\x3cdiv\x3e       \r\n    \x3cdiv class\x3d"tabs" data-dojo-attach-point\x3d"tabsContainer"\x3e\r\n      \x3c!-- Grid Settings Tab --\x3e \r\n      \x3cdiv class\x3d"content-tab" data-dojo-attach-point\x3d"gridTab"\x3e\r\n        \r\n        \x3c!-- Grid Shape --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"gridShapeContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.cellShape}"\x3e\r\n                ${nls.gridSettings.cellShape}\x3c/div\x3e\r\n            \x3cselect class\x3d"GRGcellShapeSelect" data-dojo-attach-point\x3d"cellShape" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect" aria-label\x3d"${nls.gridSettings.cellShape}"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Units --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"gridUnitsContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.cellUnits}"\x3e\r\n                ${nls.gridSettings.cellUnits}\x3c/div\x3e\r\n            \x3cselect data-dojo-attach-point\x3d"cellUnits" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect" aria-label\x3d"${nls.gridSettings.cellUnits}"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Grid Origin --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"gridOriginContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.gridOrigin}"\x3e\r\n                ${nls.gridSettings.gridOrigin}\x3c/div\x3e\r\n            \x3cselect data-dojo-attach-point\x3d"gridOrigin" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect" aria-label\x3d"${nls.gridSettings.gridOrigin}"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Reference System --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"gridRefSystemContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis labelLeft" title\x3d"${nls.gridSettings.gridReferenceSystem}"\x3e\r\n                ${nls.gridSettings.gridReferenceSystem}\x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis labelRight" title\x3d"${nls.gridSettings.gridDatum}"\x3e\r\n                ${nls.gridSettings.gridDatum}\x3c/div\x3e\r\n            \x3cselect class\x3d"referenceSystemSelect" data-dojo-attach-point\x3d"referenceSystem" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect" aria-label\x3d"${nls.gridSettings.gridDatum}"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Cell Outline Color --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.cellOutline}"\x3e\r\n                ${nls.gridSettings.cellOutline}\x3c/div\x3e\r\n          \x3cdiv class\x3d"colorPicker" data-dojo-attach-point\x3d"cellOutlineColorPicker"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Cell fill Color --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.cellFill}"\x3e\r\n                ${nls.gridSettings.cellFill}\x3c/div\x3e\r\n          \x3cdiv class\x3d"colorPicker" data-dojo-attach-point\x3d"cellFillColorPicker"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \r\n      \x3c!-- Label Settings Tab --\x3e\r\n      \x3cdiv class\x3d"content-tab" data-dojo-attach-point\x3d"labelTab"\x3e  \r\n        \x3c!-- Label Start Position Selector --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"labelStartPositionContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.labelStartPosition}"\x3e\r\n                ${nls.gridSettings.labelStartPosition}\x3c/div\x3e\r\n            \x3cselect class\x3d"GRGlabelStartPositionSelect" data-dojo-attach-point\x3d"labelStartPosition" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect"\r\n                aria-label\x3d"${nls.gridSettings.labelStartPosition}" role\x3d"listbox"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Labelling Style without Reference System --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"labelStyleContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.labelType}"\x3e\r\n                ${nls.gridSettings.labelType}\x3c/div\x3e\r\n            \x3cselect data-dojo-attach-point\x3d"labelType" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect" \r\n                aria-label\x3d"${nls.gridSettings.labelType}"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Labelling Style with Reference System --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"labelStyleWithRefSysContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.labelType}"\x3e\r\n                ${nls.gridSettings.labelType}\x3c/div\x3e\r\n            \x3cselect data-dojo-attach-point\x3d"labelTypeWithRefSys" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect" \r\n                aria-label\x3d"${nls.gridSettings.labelType}"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Labelling direction --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"labelDirectionContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.labelDirection}"\x3e\r\n                ${nls.gridSettings.labelDirection}\x3c/div\x3e\r\n            \x3cselect data-dojo-attach-point\x3d"labelDirection" style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect" \r\n                aria-label\x3d"${nls.gridSettings.labelDirection}"\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n        \r\n        \x3c!-- Font Settings --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"fontSettingsContainer"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterDropdownLabel GRGDrafterEllipsis" title\x3d"${nls.labelStyle}"\x3e\r\n                ${nls.labelStyle}\x3c/div\x3e\r\n          \x3cdiv data-dojo-attach-point\x3d"fontSettingNode"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e        \r\n      \x3c/div\x3e  \r\n    \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/GriddedReferenceGraphic/Widget.html":'\x3cdiv class\x3d"GRGDrafterMainContainer GRGDrafterFullHeight" data-dojo-attach-point\x3d"mainNode"\x3e\r\n  \x3cdiv class\x3d"GRGDrafterFullHeight GRGDrafterFullWidth" data-dojo-attach-point\x3d"widgetMainNode"\x3e\r\n    \x3c!---------------\r\n      Main Page Node\r\n    -----------------\x3e\r\n    \x3cdiv class\x3d"esriCTMainPage" data-dojo-attach-point\x3d"mainPageNode"\x3e\r\n      \x3c!-- Create From Area --\x3e\r\n      \x3cdiv class\x3d"GRGDrafterMainPageRowBlock"\x3e\r\n        \x3cdiv class\x3d"GRGDrafterMainPageRow"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterMainButtonIcon GRGNewRightButton GRGDrafterPointer"\r\n            title\x3d"${nls.newGRGFromAreaButtonLabel}" data-dojo-attach-point\x3d"newGRGAreaButton" tabindex\x3d"0"\r\n            role\x3d"button" aria-label\x3d"${nls.newGRGFromAreaButtonLabel}"\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv\x3e\r\n            \x3ctable\x3e\r\n              \x3ctr\x3e\r\n                \x3ctd\x3e\r\n                  \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis SubTitle"\r\n                    title\x3d"${nls.newGRGFromAreaButtonLabel}"\x3e\r\n                    ${nls.newGRGFromAreaButtonLabel}\r\n                  \x3c/div\x3e\r\n                \x3c/td\x3e\r\n              \x3c/tr\x3e\r\n              \x3ctr\x3e\r\n                \x3ctd\x3e\r\n                  \x3clabel\x3e\r\n                    ${nls.defineGridFromAreaDesc}\r\n                  \x3c/label\x3e\r\n                \x3c/td\x3e\r\n              \x3c/tr\x3e\r\n            \x3c/table\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Create From Area Options --\x3e\r\n        \x3cdiv class\x3d"controlGroupHidden" data-dojo-attach-point\x3d"fromAreaContainer"\x3e\r\n          \x3c!-- Define by size --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterMainPageRowItem"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterButtonIcon GRGDrafterNewGRGByDimension GRGDrafterPointer"\x3e\x3c/div\x3e\r\n            \x3cdiv\x3e\r\n              \x3ctable\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis SubTitle"\r\n                      title\x3d"${nls.newGRGBySizeButtonLabel}"\x3e\r\n                      ${nls.newGRGBySizeButtonLabel}\r\n                    \x3c/div\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3clabel\x3e\r\n                      ${nls.defineGridFromAreaDimensionDesc}\r\n                    \x3c/label\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/table\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv\r\n              class\x3d"GRGDrafterMainButtonIcon GRGNewRightButton GRGDrafterPointer GRGFloatRight GRGDrafterSubButtonIcon"\r\n              title\x3d"${nls.newGRGBySizeButtonLabel}" data-dojo-attach-point\x3d"newAreaGRGBySizeButton" tabindex\x3d"0"\r\n              role\x3d"button" aria-label\x3d"${nls.newGRGBySizeButtonLabel}"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Define from reference system --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterMainPageRowItem"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterButtonIcon GRGDrafterNewGRGByRefSystemButton GRGDrafterPointer"\x3e\x3c/div\x3e\r\n            \x3cdiv\x3e\r\n              \x3ctable\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis SubTitle"\r\n                      title\x3d"${nls.newGRGFromRefSystemButtonLabel}"\x3e\r\n                      ${nls.newGRGFromRefSystemButtonLabel}\r\n                    \x3c/div\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3clabel\x3e\r\n                      ${nls.defineGridFromaAreaRefSystemDesc}\r\n                    \x3c/label\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/table\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv\r\n              class\x3d"GRGDrafterMainButtonIcon GRGNewRightButton GRGDrafterPointer GRGFloatRight GRGDrafterSubButtonIcon"\r\n              title\x3d"${nls.newGRGFromRefSystemButtonLabel}" data-dojo-attach-point\x3d"newAreaGRGFromRefSystemButton"\r\n              tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.newGRGFromRefSystemButtonLabel}"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3c!-- Create From Point --\x3e\r\n      \x3cdiv class\x3d"GRGDrafterMainPageRowBlock"\x3e\r\n        \x3cdiv class\x3d"GRGDrafterMainPageRow"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterMainButtonIcon GRGNewRightButton GRGDrafterPointer"\r\n            title\x3d"${nls.newGRGFromPointButtonLabel}" data-dojo-attach-point\x3d"newGRGPointButton" tabindex\x3d"0"\r\n            role\x3d"button" aria-label\x3d"${nls.newGRGFromPointButtonLabel}"\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv\x3e\r\n            \x3ctable\x3e\r\n              \x3ctr\x3e\r\n                \x3ctd\x3e\r\n                  \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis SubTitle"\r\n                    title\x3d"${nls.newGRGFromPointButtonLabel}"\x3e\r\n                    ${nls.newGRGFromPointButtonLabel}\r\n                  \x3c/div\x3e\r\n                \x3c/td\x3e\r\n              \x3c/tr\x3e\r\n              \x3ctr\x3e\r\n                \x3ctd\x3e\r\n                  \x3clabel\x3e\r\n                    ${nls.defineGridFromPointDesc}\r\n                  \x3c/label\x3e\r\n                \x3c/td\x3e\r\n              \x3c/tr\x3e\r\n            \x3c/table\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Create From Point Options --\x3e\r\n        \x3cdiv class\x3d"controlGroupHidden" data-dojo-attach-point\x3d"fromPointContainer"\x3e\r\n          \x3c!-- Define by dimension --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterMainPageRowItem"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterButtonIcon GRGDrafterNewGRGByDimension GRGDrafterPointer"\x3e\x3c/div\x3e\r\n            \x3cdiv\x3e\r\n              \x3ctable\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis SubTitle"\r\n                      title\x3d"${nls.newGRGBySizeButtonLabel}"\x3e\r\n                      ${nls.newGRGBySizeButtonLabel}\r\n                    \x3c/div\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3clabel\x3e\r\n                      ${nls.defineGridFromPointByDimensionDesc}\r\n                    \x3c/label\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/table\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv\r\n              class\x3d"GRGDrafterMainButtonIcon GRGNewRightButton GRGDrafterPointer GRGFloatRight GRGDrafterSubButtonIcon"\r\n              title\x3d"${nls.newGRGBySizeButtonLabel}" data-dojo-attach-point\x3d"newPointGRGBySizeButton" tabindex\x3d"0"\r\n              role\x3d"button" aria-label\x3d"${nls.newGRGBySizeButtonLabel}"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Define from reference system --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterMainPageRowItem"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterButtonIcon GRGDrafterNewGRGByRefSystemButton GRGDrafterPointer"\x3e\x3c/div\x3e\r\n            \x3cdiv\x3e\r\n              \x3ctable\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis SubTitle"\r\n                      title\x3d"${nls.newGRGFromRefSystemButtonLabel}"\x3e\r\n                      ${nls.newGRGFromRefSystemButtonLabel}\r\n                    \x3c/div\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3clabel\x3e\r\n                      ${nls.defineGridFromPointByRefSystemDesc}\r\n                    \x3c/label\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/table\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv\r\n              class\x3d"GRGDrafterMainButtonIcon GRGNewRightButton GRGDrafterPointer GRGFloatRight GRGDrafterSubButtonIcon"\r\n              title\x3d"${nls.newGRGFromRefSystemButtonLabel}" data-dojo-attach-point\x3d"newPointGRGFromRefSystemButton"\r\n              tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.newGRGFromRefSystemButtonLabel}"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Define from time and speed --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterMainPageRowItem"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterButtonIcon GRGDrafterNewGRGByTimeButton GRGDrafterPointer"\x3e\x3c/div\x3e\r\n            \x3cdiv\x3e\r\n              \x3ctable\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis SubTitle" title\x3d"${nls.newGRGByTimeLabel}"\x3e\r\n                      ${nls.newGRGByTimeLabel}\x3c/div\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n                \x3ctr\x3e\r\n                  \x3ctd\x3e\r\n                    \x3clabel\x3e\r\n                      ${nls.defineGridFromPointTimeSpeedDesc}\r\n                    \x3c/label\x3e\r\n                  \x3c/td\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/table\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv\r\n              class\x3d"GRGDrafterMainButtonIcon GRGNewRightButton GRGDrafterPointer GRGFloatRight GRGDrafterSubButtonIcon"\r\n              title\x3d"${nls.newGRGByTimeLabel}" data-dojo-attach-point\x3d"newPointGRGFromTimeButton" tabindex\x3d"0"\r\n              role\x3d"button" aria-label\x3d"${nls.newGRGByTimeLabel}"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n\r\n    \x3c!---------------------------\r\n      GRG From Area By Size Node\r\n    -----------------------------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterFullHeight GRGDrafterHidden" data-dojo-attach-point\x3d"grgAreaBySizePageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterNewGRGHeader"\x3e\r\n        \x3c!-- Back to Main Menu Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"grgAreaBySizePanelBackButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.common.back}"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Panel Title --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.newGRGAreaBySizeTitle}"\x3e\r\n          ${nls.newGRGAreaBySizeTitle}\r\n        \x3c/div\x3e\r\n        \x3c!-- Settings Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterSettingsIcon GRGDrafterPointer" title\x3d"${nls.settingsTitle}"\r\n          data-dojo-attach-point\x3d"grgAreaBySizeSettingsButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.settingsTitle}"\x3e\x3c/div\x3e\r\n        \x3c!-- GRG Area Form --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterPanelRow"\x3e\r\n          \x3c!-- Draw GRG Area Tool --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRowPaddingTop20"\r\n            data-dojo-attach-point\x3d"grgAreaBySizeDrawContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterFullWidth"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"GRGDrafterDoubleButtonLabel GRGDrafterEllipsis"\r\n                  title\x3d"${nls.newGRGAreaBySizeDefineAreaLabel}"\x3e${nls.newGRGAreaBySizeDefineAreaLabel}\x3c/div\x3e\r\n                \x3cdiv title\x3d"${nls.addGRGAreaPolygonToolTip}" class\x3d"jimu-icon polygonBtn"\r\n                  data-dojo-attach-point\x3d"grgAreaBySizeDrawPolygonIcon" tabindex\x3d"0" role\x3d"button"\r\n                  aria-label\x3d"${nls.addGRGAreaPolygonToolTip}"\x3e\x3c/div\x3e\r\n                \x3cdiv title\x3d"${nls.addGRGAreaExtentToolTip}" class\x3d"jimu-icon extentBtn"\r\n                  data-dojo-attach-point\x3d"grgAreaBySizeDrawExtentIcon" tabindex\x3d"0" role\x3d"button"\r\n                  aria-label\x3d"${nls.addGRGAreaExtentToolTip}"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Set number of cells checkbox --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidthAndPadding"\x3e\r\n            \x3cinput class\x3d"switch-toggle" data-dojo-type\x3d"dijit/form/CheckBox"\r\n              data-dojo-attach-point\x3d"setNumberRowsColumns" checked\x3d"false"\r\n              aria-label\x3d"${nls.numberRowsColumnsLabel}" /\x3e\r\n            \x3clabel data-dojo-attach-point\x3d"interactiveLabel"\x3e${nls.numberRowsColumnsLabel}\x3c/label\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Nummber of Cells Horizontal and Vertical --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer" data-dojo-attach-point\x3d"numberOfCellsContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsHorizontal}"\x3e\r\n                ${nls.numberOfCellsHorizontal}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"cellHorizontal" value\x3d"10"\r\n                disabled\x3d\'true\' aria-label\x3d\'${nls.numberOfCellsHorizontal}\'\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsVertical}"\x3e\r\n                ${nls.numberOfCellsVertical}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"cellVertical" value\x3d"10"\r\n                disabled\x3d\'true\' aria-label\x3d\'${nls.numberOfCellsVertical}\'\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- GRG Cell Width \x26 Height --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3c!-- GRG Cell Width --\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.cellWidth}"\x3e${nls.cellWidth}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input dijitNumberTextBox" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:0,places:2},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          required: true,\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgAreaBySizeCellWidth"\r\n                value\x3d"1000" disabled\x3d\'true\' aria-label\x3d\'${nls.cellWidth}\'\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3c!-- GRG Cell Height --\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.cellHeight}"\x3e${nls.cellHeight}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input dijitNumberTextBox" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:0,places:2},\r\n                        invalidMessage:"${nls.invalidNumberMessage}",\r\n                        required: true,\r\n                        rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgAreaBySizeCellHeight"\r\n                value\x3d"1000" disabled\x3d\'true\' aria-label\x3d\'${nls.cellHeight}\'\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Rotation --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.rotation}"\x3e${nls.rotation}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:-89.9,max:89.9},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          required: true,\r\n                          rangeMessage:"${nls.gridAngleInvalidRangeMessage}"\'\r\n                data-dojo-attach-point\x3d"grgAreaBySizeRotation" value\x3d"0" disabled\x3d\'true\'\r\n                aria-label\x3d\'${nls.rotation}\'\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Create \x26 Clear GRG Buttons --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthLeft"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgAreaBySizeCreateGRGButton\' tabindex\x3d"0" role\x3d"button"\r\n                aria-label\x3d"${nls.createGRGBtn}"\x3e${nls.createGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthRight"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgAreaBySizeClearGRGButton\' tabindex\x3d"0" role\x3d"button"\r\n                aria-label\x3d"${nls.clearGRGBtn}"\x3e${nls.clearGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!----------------------------------\r\n      GRG From Area By Reference System\r\n    ------------------------------------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterFullHeight GRGDrafterHidden" data-dojo-attach-point\x3d"grgAreaByRefSystemPageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterNewGRGHeader"\x3e\r\n        \x3c!-- Back to Main Menu Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"grgAreaByRefSystemPanelBackButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.common.back}"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Panel Title --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.newGRGAreaByRefSystemTitle}"\x3e\r\n          ${nls.newGRGAreaByRefSystemTitle}\r\n        \x3c/div\x3e\r\n        \x3c!-- Settings Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterSettingsIcon GRGDrafterPointer" title\x3d"${nls.settingsTitle}"\r\n          data-dojo-attach-point\x3d"grgAreaByRefSystemSettingsButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.settingsTitle}"\x3e\x3c/div\x3e\r\n        \x3c!-- GRG Area Form --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterPanelRow"\x3e\r\n          \x3c!-- Draw GRG Area Tool --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRowPaddingTop20"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterFullWidth" data-dojo-attach-point\x3d"grgAreaByRefSystemDrawContainer"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"GRGDrafterButtonLabel GRGDrafterEllipsis" title\x3d"${nls.newGRGAreaBySizeDefineAreaLabel}"\x3e\r\n                  ${nls.newGRGAreaBySizeDefineAreaLabel}\x3c/div\x3e\r\n                \x3cdiv title\x3d"${nls.addGRGAreaExtentToolTip}" class\x3d"jimu-icon extentBtn"\r\n                  data-dojo-attach-point\x3d"grgAreaByRefSystemDrawIcon" tabindex\x3d"0" role\x3d"button"\r\n                  aria-label\x3d"${nls.addGRGAreaExtentToolTip}"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Grid Size DropDown --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.gridSize}"\x3e${nls.gridSize}\x3c/div\x3e\r\n            \x3cselect style\x3d"width: 100%" class\x3d"GRGGridSizeSelect" data-dojo-type\x3d"jimu/dijit/formSelect"\r\n              data-dojo-attach-point\x3d"grgAreaByRefSystemGridSize" aria-label\x3d"${nls.gridSize}"\x3e\r\n              \x3coption value\x3d"UTM" selected\x3d"selected"\x3e${nls.UTMZoneandBand}\x3c/option\x3e\r\n              \x3coption value\x3d"100000"\x3e${nls.100000m}\x3c/option\x3e\r\n              \x3coption value\x3d"10000"\x3e${nls.10000m}\x3c/option\x3e\r\n              \x3coption value\x3d"1000"\x3e${nls.1000m}\x3c/option\x3e\r\n              \x3coption value\x3d"100"\x3e${nls.100m}\x3c/option\x3e\r\n              \x3coption value\x3d"10"\x3e${nls.10m}\x3c/option\x3e\r\n            \x3c/select\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Clip Grid to GRG Area Toggle --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv\x3e\r\n              \x3cdiv class\x3d"GRGDrafterToggleLabel GRGDrafterEllipsis" title\x3d"${nls.clipGrid}"\x3e${nls.clipGrid}\x3c/div\x3e\r\n              \x3cinput class\x3d"switch-toggle" data-dojo-type\x3d"dijit/form/CheckBox"\r\n                data-dojo-attach-point\x3d"grgAreaByRefSystemClipToggle" checked\x3d"false" aria-label\x3d"${nls.clipGrid}" /\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Label Format--\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"grgAreaByRefSystemLabelFormat"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.labelFormat}"\x3e${nls.labelFormat}\x3c/div\x3e\r\n            \x3cinput class\x3d"jimu-input textInput" style\x3d"width: calc(100% - 20px)"\r\n              data-dojo-attach-point\x3d"grgAreaByRefLabelFormat" value\x3d"Z" aria-label\x3d"${nls.labelFormat}"\x3e\x3c/input\x3e\r\n            \x3cdiv class\x3d"jimu-icon helpBtn" data-dojo-attach-point\x3d"helpBtnForArea"\r\n              tabindex\x3d"0" role\x3d"tooltip"\x3e\x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Create \x26 Clear GRG Buttons --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthLeft"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgAreaByRefSystemCreateGRGButton\' tabindex\x3d"0"\r\n                role\x3d"button" aria-label\x3d"${nls.createGRGBtn}"\x3e${nls.createGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthRight"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgAreaByRefSystemClearGRGButton\' tabindex\x3d"0" role\x3d"button"\r\n                aria-label\x3d"${nls.clearGRGBtn}"\x3e${nls.clearGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!-------------------------------------\r\n      GRG From Area From Non Standard Grid\r\n    --------------------------------------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterFullHeight GRGDrafterHidden" data-dojo-attach-point\x3d"grgAreaFromNonStandardPageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterNewGRGHeader"\x3e\r\n        \x3c!-- Back to Main Menu Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"grgAreaByNonStandardPanelBackButton"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Panel Title --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.newGRGAreaFromNonStandardTitle}"\x3e\r\n          ${nls.newGRGAreaFromNonStandardTitle}\r\n        \x3c/div\x3e\r\n        \x3c!-- Settings Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterSettingsIcon GRGDrafterPointer" title\x3d"${nls.settingsTitle}"\r\n          data-dojo-attach-point\x3d"grgAreaByNonStandardSettingsButton"\x3e\x3c/div\x3e\r\n        \x3c!-- GRG Area Form --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterPanelRow"\x3e\r\n          \x3c!-- GRG Layer Name --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"Area GRG by Reference System"\x3eArea GRG from Non\r\n              Standard Grid To Do\x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!----------------------------\r\n      GRG From Point by Size Node\r\n    ------------------------------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterFullHeight GRGDrafterHidden" data-dojo-attach-point\x3d"grgPointBySizePageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterNewGRGHeader"\x3e\r\n        \x3c!-- Back to Main Menu Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"grgPointBySizePanelBackButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.common.back}"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Panel Title --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.newGRGPointBySizeTitle}"\x3e\r\n          ${nls.newGRGPointBySizeTitle}\r\n        \x3c/div\x3e\r\n        \x3c!-- Settings Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterSettingsIcon GRGDrafterPointer" title\x3d"${nls.settingsTitle}"\r\n          data-dojo-attach-point\x3d"grgPointBySizeSettingsButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.settingsTitle}"\x3e\x3c/div\x3e\r\n        \x3c!-- GRG Point Form --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterPanelRow"\x3e\r\n          \x3c!-- Draw GRG Point Coordinate Input --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"newGRGPointBySizeOriginCoordsContainer"\x3e\x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Nummber of Cells Horizontal and Vertical --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsHorizontal}"\x3e\r\n                ${nls.numberOfCellsHorizontal}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\'\r\n                data-dojo-attach-point\x3d"grgPointBySizeCellHorizontal" value\x3d"5"\r\n                aria-label\x3d"${nls.numberOfCellsHorizontal}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsVertical}"\x3e\r\n                ${nls.numberOfCellsVertical}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\'\r\n                data-dojo-attach-point\x3d"grgPointBySizeCellVertical" value\x3d"5"\r\n                aria-label\x3d"${nls.numberOfCellsVertical}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- GRG Cell Width \x26 Height --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3c!-- GRG Cell Width --\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.cellWidth}"\x3e${nls.cellWidth}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input dijitNumberTextBox" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          required: true,\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgPointBySizeCellWidth"\r\n                value\x3d"1000" aria-label\x3d"${nls.cellWidth}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3c!-- GRG Cell Height --\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.cellHeight}"\x3e${nls.cellHeight}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input dijitNumberTextBox" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:0},\r\n                        invalidMessage:"${nls.invalidNumberMessage}",\r\n                        required: true,\r\n                        rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgPointBySizeCellHeight"\r\n                value\x3d"1000" aria-label\x3d"${nls.cellHeight}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Grid Angle --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.gridAngle}"\x3e${nls.gridAngle}\x3c/div\x3e\r\n            \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n              data-dojo-props\x3d\'constraints:{min:-89.9,max:89.9,places:1},\r\n                        invalidMessage:"${nls.invalidNumberMessage}",\r\n                        required: true,\r\n                        rangeMessage:"${nls.gridAngleInvalidRangeMessage}"\' data-dojo-attach-point\x3d"gridAnglePoint"\r\n              value\x3d"0" aria-label\x3d"${nls.gridAngle}"\x3e\x3c/input\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Create \x26 Clear GRG Buttons --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthLeft"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn jimu-state-disabled\' data-dojo-attach-point\x3d\'grgPointBySizeCreateGRGButton\'\r\n                tabindex\x3d"-1" role\x3d"button" aria-label\x3d"${nls.createGRGBtn}"\x3e${nls.createGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthRight"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgPointBySizeClearGRGButton\' tabindex\x3d"0" role\x3d"button"\r\n                aria-label\x3d"${nls.clearGRGBtn}"\x3e${nls.clearGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!-----------------------------------\r\n      GRG From Point By Reference System\r\n    -------------------------------------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterFullHeight GRGDrafterHidden" data-dojo-attach-point\x3d"grgPointByRefSystemPageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterNewGRGHeader"\x3e\r\n        \x3c!-- Back to Main Menu Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"grgPointByRefSystemPanelBackButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.common.back}"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Panel Title --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.newGRGPointByRefSystemTitle}"\x3e\r\n          ${nls.newGRGPointByRefSystemTitle}\r\n        \x3c/div\x3e\r\n        \x3c!-- Settings Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterSettingsIcon GRGDrafterPointer" title\x3d"${nls.settingsTitle}"\r\n          data-dojo-attach-point\x3d"grgPointByRefSystemSettingsButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.settingsTitle}"\x3e\x3c/div\x3e\r\n        \x3c!-- GRG Point Form --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterPanelRow"\x3e\r\n          \x3c!-- Draw GRG Point Coordinate Input --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"newGRGPointByRefSystemOriginCoordsContainer"\x3e\x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Grid Size DropDown --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.gridSize}"\x3e${nls.gridSize}\x3c/div\x3e\r\n            \x3cselect style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect"\r\n              data-dojo-attach-point\x3d"grgPointByRefSystemGridSize" aria-label\x3d"${nls.gridSize}"\x3e\r\n              \x3coption value\x3d"UTM" selected\x3d"selected"\x3e${nls.UTMZoneandBand}\x3c/option\x3e\r\n              \x3coption value\x3d"100000"\x3e${nls.100000m}\x3c/option\x3e\r\n              \x3coption value\x3d"10000"\x3e${nls.10000m}\x3c/option\x3e\r\n              \x3coption value\x3d"1000"\x3e${nls.1000m}\x3c/option\x3e\r\n              \x3coption value\x3d"100"\x3e${nls.100m}\x3c/option\x3e\r\n              \x3coption value\x3d"10"\x3e${nls.10m}\x3c/option\x3e\r\n            \x3c/select\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Nummber of Cells Horizontal and Vertical --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsHorizontal}"\x3e\r\n                ${nls.numberOfCellsHorizontal}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\'\r\n                data-dojo-attach-point\x3d"grgPointByRefCellHorizontal" value\x3d"5"\r\n                aria-label\x3d"${nls.numberOfCellsHorizontal}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsVertical}"\x3e\r\n                ${nls.numberOfCellsVertical}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgPointByRefCellVertical"\r\n                value\x3d"5" aria-label\x3d"${nls.numberOfCellsVertical}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Label Format--\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"grgPointByRefSystemLabelFormat"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.labelFormat}"\x3e${nls.labelFormat}\x3c/div\x3e\r\n            \x3cinput class\x3d"jimu-input textInput" style\x3d"width: calc(100% - 20px)"\r\n              data-dojo-attach-point\x3d"grgPointByRefLabelFormat" value\x3d"Z" aria-label\x3d"${nls.labelFormat}"\x3e\x3c/input\x3e\r\n            \x3cdiv class\x3d"jimu-icon helpBtn" data-dojo-attach-point\x3d"helpBtnForPt"\r\n              tabindex\x3d"0" role\x3d"button"\x3e\x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Create \x26 Clear GRG Buttons --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthLeft"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn jimu-state-disabled\' data-dojo-attach-point\x3d\'grgPointByRefSystemCreateGRGButton\'\r\n                tabindex\x3d"-1" role\x3d"button" aria-label\x3d"${nls.createGRGBtn}"\x3e${nls.createGRGBtn}\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthRight"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgPointByRefSystemClearGRGButton\' tabindex\x3d"0"\r\n                role\x3d"button" aria-label\x3d"${nls.clearGRGBtn}"\x3e${nls.clearGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!---------------------------------\r\n      GRG From Point By Time and Speed\r\n    -----------------------------------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterFullHeight GRGDrafterHidden" data-dojo-attach-point\x3d"grgPointByTimePageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterNewGRGHeader"\x3e\r\n        \x3c!-- Back to Main Menu Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"grgPointByTimeBackButton" tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.common.back}"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Panel Title --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.newGRGPointByTimeTitle}"\x3e\r\n          ${nls.newGRGPointByTimeTitle}\r\n        \x3c/div\x3e\r\n        \x3c!-- Settings Icon --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterSettingsIcon GRGDrafterPointer" title\x3d"${nls.settingsTitle}"\r\n          data-dojo-attach-point\x3d"grgPointByTimeSettingsButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.settingsTitle}"\x3e\x3c/div\x3e\r\n        \x3c!-- GRG Point Form --\x3e\r\n        \x3cdiv class\x3d"GRGDrafterPanelRow"\x3e\r\n          \x3c!-- Draw GRG Point Coordinate Input --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"newGRGPointByTimeOriginCoordsContainer"\x3e\x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Time --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer" data-dojo-attach-point\x3d"timeContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.time}"\x3e${nls.time}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:2},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgPointByTimeTime"\r\n                value\x3d"1" disabled\x3d\'false\' aria-label\x3d"${nls.time}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d""\x3e\x26nbsp;\x3c/div\x3e\r\n              \x3cselect style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect"\r\n                data-dojo-attach-point\x3d"grgPointByTimeTimeUnits"\x3e\r\n                \x3coption value\x3d"3600" selected\x3d"selected"\x3e${nls.hours}\x3c/option\x3e\r\n                \x3coption value\x3d"60"\x3e${nls.minutes}\x3c/option\x3e\r\n                \x3coption value\x3d"1"\x3e${nls.seconds}\x3c/option\x3e\r\n              \x3c/select\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Rate --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer" data-dojo-attach-point\x3d"rateContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.rate}"\x3e${nls.rate}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:2},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgPointByTimeRate"\r\n                value\x3d"10" disabled\x3d\'false\' aria-label\x3d"${nls.rate}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d""\x3e\x26nbsp;\x3c/div\x3e\r\n              \x3cselect style\x3d"width: 100%" data-dojo-type\x3d"jimu/dijit/formSelect"\r\n                data-dojo-attach-point\x3d"grgPointByTimeRateUnits"\x3e\r\n                \x3coption value\x3d"0.3048;1"\x3e${nls.ftPerSec}\x3c/option\x3e\r\n                \x3coption value\x3d"0.3048;3600"\x3e${nls.ftPerHour}\x3c/option\x3e\r\n                \x3coption value\x3d"1000;1"\x3e${nls.kmPerSec}\x3c/option\x3e\r\n                \x3coption value\x3d"1000;3600" selected\x3d"selected"\x3e${nls.kmPerHour}\x3c/option\x3e\r\n                \x3coption value\x3d"1;1"\x3e${nls.mPerSec}\x3c/option\x3e\r\n                \x3coption value\x3d"1;3600"\x3e${nls.mPerHour}\x3c/option\x3e\r\n                \x3coption value\x3d"1609.344;1"\x3e${nls.miPerSec}\x3c/option\x3e\r\n                \x3coption value\x3d"1609.344;3600"\x3e${nls.miPerHour}\x3c/option\x3e\r\n                \x3coption value\x3d"1852;1"\x3e${nls.nMPerSec}\x3c/option\x3e\r\n                \x3coption value\x3d"1852;3600"\x3e${nls.nMPerHour}\x3c/option\x3e\r\n              \x3c/select\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Set number of cells checkbox --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidthAndPadding"\x3e\r\n            \x3cinput class\x3d"switch-toggle" data-dojo-type\x3d"dijit/form/CheckBox"\r\n              data-dojo-attach-point\x3d"setNumberRowsColumnsTime" checked\x3d"true"\r\n              aria-label\x3d"${nls.numberRowsColumnsLabel}" /\x3e\r\n            \x3clabel class\x3d"GRGCellsLabel" data-dojo-attach-point\x3d"interactiveLabel"\x3e${nls.numberRowsColumnsLabel}\x3c/label\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Number of Cells Horizontal and Vertical --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer" data-dojo-attach-point\x3d"numberOfCellsContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsHorizontal}"\x3e\r\n                ${nls.numberOfCellsHorizontal}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\'\r\n                data-dojo-attach-point\x3d"grgPointByTimeCellHorizontal" value\x3d"10" disabled\x3d\'false\'\r\n                aria-label\x3d"${nls.numberOfCellsHorizontal}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.numberOfCellsVertical}"\x3e\r\n                ${nls.numberOfCellsVertical}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:1,places:0},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\'\r\n                data-dojo-attach-point\x3d"grgPointByTimeCellVertical" value\x3d"10" disabled\x3d\'false\'\r\n                aria-label\x3d"${nls.numberOfCellsVertical}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- GRG Cell Width \x26 Height --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3c!-- GRG Cell Width --\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.cellWidth}"\x3e${nls.cellWidth}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input dijitNumberTextBox" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:0,places:2},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          required: true,\r\n                          rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgPointByTimeCellWidth"\r\n                value\x3d"1000" disabled\x3d\'true\' aria-label\x3d"${nls.cellWidth}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n            \x3c!-- GRG Cell Height --\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthRight GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.cellHeight}"\x3e${nls.cellHeight}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input dijitNumberTextBox" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:0,places:2},\r\n                        invalidMessage:"${nls.invalidNumberMessage}",\r\n                        required: true,\r\n                        rangeMessage:"${nls.invalidRangeMessage}"\' data-dojo-attach-point\x3d"grgPointByTimeCellHeight"\r\n                value\x3d"1000" disabled\x3d\'true\' aria-label\x3d"${nls.cellHeight}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Rotation --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterHalfWidthLeft GRGDrafterSettingRow"\x3e\r\n              \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.rotation}"\x3e${nls.rotation}\x3c/div\x3e\r\n              \x3cinput class\x3d"jimu-input textInput" style\x3d"width: 100%" data-dojo-type\x3d"dijit/form/NumberTextBox"\r\n                data-dojo-props\x3d\'constraints:{min:-89.9,max:89.9,places:1},\r\n                          invalidMessage:"${nls.invalidNumberMessage}",\r\n                          required: true,\r\n                          rangeMessage:"${nls.gridAngleInvalidRangeMessage}"\'\r\n                data-dojo-attach-point\x3d"grgPointByTimeRotation" value\x3d"0" disabled\x3d\'false\'\r\n                aria-label\x3d"${nls.rotation}"\x3e\x3c/input\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n\r\n          \x3c!-- Create \x26 Clear GRG Buttons --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterHalfWidthContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthLeft"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn jimu-state-disabled\' data-dojo-attach-point\x3d\'grgPointByTimeCreateGRGButton\'\r\n                tabindex\x3d"-1" role\x3d"button" aria-label\x3d"${nls.createGRGBtn}"\x3e${nls.createGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"GRGDrafterBtnContainer GRGDrafterHalfWidthRight"\x3e\r\n              \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgPointByTimeClearGRGButton\' tabindex\x3d"0" role\x3d"button"\r\n                aria-label\x3d"${nls.clearGRGBtn}"\x3e${nls.clearGRGBtn}\x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!---------\r\n      Settings\r\n    -----------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterHidden GRGDrafterFullHeight" data-dojo-attach-point\x3d"settingsPageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingHeader"\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"gridSettingsPanelBackButton" tabindex\x3d"0" role\x3d"button"\r\n          aria-label\x3d"${nls.common.back}"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.settingsTitle}"\x3e\r\n          ${nls.settingsTitle}\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"GRGDrafterSettingsNode" data-dojo-attach-point\x3d"gridSettingsNode"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!--------\r\n      Publish\r\n    ----------\x3e\r\n    \x3cdiv class\x3d"GRGDrafterHidden GRGDrafterFullHeight" data-dojo-attach-point\x3d"publishPageNode"\x3e\r\n      \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingHeader"\x3e\r\n        \x3cdiv class\x3d"GRGDrafterBackButton GRGDrafterPointer" title\x3d"${nls.common.back}"\r\n          data-dojo-attach-point\x3d"publishPanelBackButton" tabindex\x3d"0" role\x3d"button" aria-label\x3d"${nls.common.back}"\x3e\r\n          \x3cdiv class\x3d"GRGDrafterItemLeftArrow"\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3cdiv class\x3d"GRGDrafterTitleDiv GRGDrafterEllipsis" title\x3d"${nls.publishTitle}"\x3e\r\n          ${nls.publishTitle}\r\n        \x3c/div\x3e\r\n        \x3cdiv class\x3d"GRGDrafterPanelRow"\x3e\r\n          \x3c!-- GRG Layer Name --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterInputLabel GRGDrafterEllipsis" title\x3d"${nls.GRGLayerName}"\x3e${nls.GRGLayerName}\x3c/div\x3e\r\n            \x3cinput class\x3d"jimu-input textInput controlGroupHidden" style\x3d"width: 100%;"\r\n              data-dojo-type\x3d"dijit/form/ValidationTextBox" data-dojo-attach-point\x3d"addGRGNameArea"\r\n              data-dojo-props\x3d"regExp:\'[a-zA-Z0-9_ -]*\', missingMessage:\'${nls.missingLayerNameMessage}\'"\r\n              required\x3d"true" aria-label\x3d"${nls.GRGLayerName}" trim\x3d"true"\x3e\x3c/input\x3e\r\n            \x3cselect class\x3d"SelectStyle" aria-label\x3d"${nls.GRGLayerName}" data-dojo-type\x3d"jimu/dijit/formSelect"\r\n              tabindex\x3d"0" data-dojo-attach-point\x3d"featureLayerList"\x3e\x3c/select\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Publish to new layer --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow" data-dojo-attach-point\x3d"checkBoxParentContainer"\x3e\r\n            \x3cdiv class\x3d"GRGDrafterToggleLabel GRGDrafterEllipsis" title\x3d"${nls.publishToNewLayer}"\x3e\r\n              ${nls.publishToNewLayer}\x3c/div\x3e\r\n            \x3cinput class\x3d"switch-toggle" data-dojo-type\x3d"dijit/form/CheckBox" data-dojo-attach-point\x3d"publishNewLayer"\r\n              aria-label\x3d"${nls.publishToNewLayer}" /\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Show Labels Toggle --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterFullWidth GRGDrafterSettingRow"\x3e\r\n            \x3cdiv\x3e\r\n              \x3cdiv class\x3d"GRGDrafterToggleLabel GRGDrafterEllipsis" title\x3d"${nls.gridSettings.showLabels}"\x3e\r\n                ${nls.gridSettings.showLabels}\x3c/div\x3e\r\n              \x3cinput class\x3d"switch-toggle" data-dojo-type\x3d"dijit/form/CheckBox"\r\n                data-dojo-attach-point\x3d"settingsShowLabelsToggle" checked\x3d"true"\r\n                aria-label\x3d"${nls.gridSettings.showLabels}" /\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Publish GRG Button --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterBtnContainer"\x3e\r\n            \x3cdiv class\x3d\'jimu-btn\' data-dojo-attach-point\x3d\'grgAreaBySizePublishGRGButton\' tabindex\x3d"0" role\x3d"button"\r\n              aria-label\x3d"${nls.publishGRGBtn}"\x3e${nls.publishGRGBtn}\x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3c!-- Publishing Message --\x3e\r\n          \x3cdiv class\x3d"GRGDrafterPublishMessage" data-dojo-attach-point\x3d"publishMessage"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/GriddedReferenceGraphic/css/style.css":'.GRGDrafterMainContainer {min-width: 222px;}.jimu-widget-GRGDrafter .GRGDrafterFullHeight {height: 100%;}.jimu-widget-GRGDrafter .GRGDrafterFullWidth {width: 100%;}.jimu-widget-GRGDrafter .GRGDrafterFullWidthAndPadding {width: 100%; padding-top: 12px; padding-bottom: 8px;}.jimu-widget-GRGDrafter .GRGDrafterHalfWidthLeft {width: 50%;}.jimu-widget-GRGDrafter .GRGDrafterHalfWidthRight {padding-left: 10px; width: 50%;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterHalfWidthRight {padding-left: 0px;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterHalfWidthRight {padding-right: 2px;}.jimu-widget-GRGDrafter .GRGDrafterHalfWidthContainer {display: flex;}.jimu-widget-GRGDrafter .GRGDrafterEllipsis {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-GRGDrafter .GRGDrafterPointer {cursor: pointer;}.jimu-widget-GRGDrafter .GRGDrafterMainPageRowBlock {display: block;}.jimu-widget-GRGDrafter .GRGDrafterMainPageRow {margin: 10px 10px 10px 10px; display: inline-flex;}.jimu-widget-GRGDrafter .GRGDrafterMainButtonIcon {margin-top: 6px; height: 16px; width: 16px;}.jimu-widget-GRGDrafter .GRGDrafterSubButtonIcon {margin-top: 8px;}.jimu-widget-GRGDrafter .GRGDrafterButtonIcon {height: 24px; width: 24px; float: left; margin-top: 5px;}.jimu-widget-GRGDrafter .GRGFloatRight {float: right;}.jimu-rtl .jimu-widget-GRGDrafter .GRGFloatRight {float: left;}.jimu-widget-GRGDrafter .GRGPadRight {padding-right: 10px;}.jimu-rtl .jimu-widget-GRGDrafter .GRGPadRight {padding-left: 10px;}.jimu-widget-GRGDrafter .GRGDrafterMainPageRowItem {width: calc(100% - 40px); margin: 5px 25px 5px 25px; display: grid; grid-template-columns: 1fr 10fr 1fr;}.jimu-widget-GRGDrafter .GRGDrafterButtonLabel {float: left; width: calc(100% - 30px); padding: 5px 5px 0px 0;}.jimu-widget-GRGDrafter .SelectStyle {height: 30px; color: #7d7d7d; padding-left: 5px; font-size: 13px; width: 100%; font-family: \'Avenir Medium\'; margin: 0 0 8px 0;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterButtonLabel {float: right;}.jimu-widget-GRGDrafter .GRGDrafterDoubleButtonLabel {float: left; width: calc(100% - 65px); padding: 5px 5px 0px 0;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterDoubleButtonLabel {float: right;}.jimu-widget-GRGDrafter .GRGDrafterToggleLabel {float: left; width: calc(100% - 35px); padding: 0;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterToggleLabel {float: right; padding: 1px 0 0 0;}.jimu-widget-GRGDrafter .GRGDrafterInputLabel {padding: 3px 5px 0px 0; font-size: 1.03em;}.jimu-widget-GRGDrafter .GRGNewRightButton {background: url("./images/arrow-right_black.png") no-repeat;}.jimu-rtl .jimu-widget-GRGDrafter .GRGNewRightButton {transform: rotate(180deg); float: left;}.jimu-widget-GRGDrafter .GRGNewRightButton:hover {background: url("./images/arrow-right_black_hover.png") no-repeat;}.jimu-widget-GRGDrafter .GRGNewDownButton {background: url("./images/arrow-down_black.png") no-repeat; margin-top: 9px;}.jimu-widget-GRGDrafter .GRGNewDownButton:hover {background: url("./images/arrow-down_black_hover.png") no-repeat;}.jimu-widget-GRGDrafter .GRGDrafterNewGRGByDimension {background: url("./images/byDimension.png") no-repeat;}.jimu-widget-GRGDrafter .GRGDrafterNewGRGByRefSystemButton {background: url("./images/byReferenceSystem.png") no-repeat;}.jimu-widget-GRGDrafter .GRGDrafterNewGRGByTimeButton {background: url("./images/byTime.png") no-repeat;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterButtonIcon {float: right;}.jimu-widget-GRGDrafter .GRGDrafterPublishMessage {float: left; line-height: 16px; padding: 18px 0px 0px 0; font-weight: bold; display: inline-block; word-break: break-all;}.jimu-widget-GRGDrafter .GRGDrafterPanelRow {margin: 10px 10px 10px 10px; display: block;}.jimu-widget-GRGDrafter .claro .dijitSelect,.claro .dijitSelect .dijitButtonContents,.claro .dijitTextBox {width: calc(100% - 60px); overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px;}.jimu-widget-GRGDrafter .GRGDrafterNewGRGHeader {float: left; height: 30px; border-bottom: 1px solid #464646; padding: 0px 10px;}.jimu-widget-GRGDrafter .GRGDrafterSettingsIcon {background-image: url(\'./images/settings_black.png\'); height: 16px; width: 16px; background-size: 16px; float: right; background-repeat: no-repeat;}.jimu-widget-GRGDrafter .GRGDrafterSettingsIcon:Hover {background-image: url(\'./images/settings_black_hover.png\'); height: 16px; width: 16px; background-size: 16px; float: right; background-repeat: no-repeat;}.jimu-widget-GRGDrafter .settingsLocked {background-image: url(\'./images/settings_locked.png\'); height: 16px; width: 16px; background-size: 16px; float: right; background-repeat: no-repeat;}.jimu-widget-GRGDrafter .dijitTextBox .dijitInputInner {height: 18px !important; text-align: left; line-height: 0px !important; font-size: 12px;}.jimu-rtl .jimu-widget-GRGDrafter .dijitTextBox .dijitInputInner {text-align: right;}.jimu-widget-GRGDrafter .dijitTextBoxFocused .dijitInputContainer {background: transparent;}.jimu-widget-GRGDrafter .GRGDrafterHidden {display: none;}.jimu-rtl .jimu-widget-GRGDrafter .GRGCellsLabel {float: right;}.jimu-widget-GRGDrafter .GRGDrafterSettingsRow {width: 100%; display: inline-block;}.jimu-widget-GRGDrafter .GRGDrafterSettingsButtonIcon {margin-top: 10px; height: 20px; width: 25px; float: right; background-size: 45px;}.jimu-widget-GRGDrafter .GRGDrafterLabelSettingsDownButton {background: url("../images/down-arrow.png") no-repeat;}.jimu-widget-GRGDrafter .GRGDrafterLabelSettingsUpButton {background: url("../images/up-arrow.png") no-repeat;}.jimu-widget-GRGDrafter .GRGDrafterSettingsNode {width: 100%; height: calc(100% - 30px); display: inline-block;}.jimu-widget-GRGDrafter .GRGDrafterSettingsContainer {margin: 10px; display: inline-block; width: calc(100% - 20px);}.jimu-widget-GRGDrafter .GRGDrafterSettingRow {padding-bottom: 6px; padding-top: 6px;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterSettingRow {padding-right: 2px;}.jimu-widget-GRGDrafter .GRGDrafterSettingRowPaddingTop20 {padding-top: 20px;}.jimu-widget-GRGDrafter .GRGDrafterDropdownLabel {padding-bottom: 5px;}.jimu-widget-GRGDrafter .GRGDrafterSettingHeader {float: left; height: 30px; border-bottom: 1px solid #464646; padding: 0px 10px;}.jimu-widget-GRGDrafter .GRGDrafterBackButton {overflow: hidden; width: 15px; float: left;}.jimu-widget-GRGDrafter .GRGDrafterTitleDiv {line-height: 10px; font-weight: bold; text-align: center; width: calc(100% - 50px); padding: 5px; display: inline-block;}.jimu-widget-GRGDrafter .GRGDrafterItemLeftArrow {background-image: url(\'./images/left-arrow_black.png\'); float: left; width: 15px; height: 20px; background-repeat: no-repeat; background-position: center center;}.jimu-widget-GRGDrafter .GRGDrafterItemLeftArrow:hover {background-image: url(\'./images/left-arrow_black_hover.png\');}.jimu-widget-GRGDrafter .dijitSelect .dijitButtonContents {border-style: none none none none; background-color: #fafafc;}.jimu-widget-GRGDrafter .dijitSelect .dijitButtonContentsDartTheme {background-color: inherit;}.jimu-widget-GRGDrafter .dijitSelect .dijitArrowButton {background-color: #fafafc; background-image: none; border-color: #fafafc;}.jimu-widget-GRGDrafter .dijitSelect .dijitArrowButtonDartTheme {background-color: rgba(0, 0, 0, 0.5) !important;}.jimu-widget-GRGDrafter .dijitMenuItem {color: #7989a0;}.jimu-widget-GRGDrafter .dijitSelect .dijitInputField {margin-right: 2px;}.jimu-widget-GRGDrafter .switch-toggle-group {padding: 5px;}.jimu-widget-GRGDrafter .switch-toggle-group .checkbox-inline {padding-left: 36px; vertical-align: top;}.jimu-widget-GRGDrafter .switch-toggle-group .switch-toggle.dijitCheckBox {margin-left: -36px;}.jimu-widget-GRGDrafter .switch-toggle.dijitCheckBox {height: 16px; width: 28px; border: 0 none; background: #adadad; position: relative; display: inline-block; cursor: pointer; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px;}.jimu-widget-GRGDrafter .switch-toggle.dijitCheckBox:before {content: ""; background: #f8f8f8; position: absolute; padding: 0; height: 12px; width: 12px; left: auto; right: 14px; top: 2px; z-index: 1; -webkit-transition: right 0.3s; -moz-transition: right 0.3s; -o-transition: right 0.3s; transition: right 0.3s; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%;}.jimu-widget-GRGDrafter .switch-toggle.dijitCheckBox input {width: 100%; height: 100%; position: absolute; left: 0; z-index: 2;}.jimu-widget-GRGDrafter .switch-toggle.dijitCheckBox.dijitCheckBoxChecked {background: #50ad4e;}.jimu-widget-GRGDrafter .switch-toggle.dijitCheckBox.dijitCheckBoxChecked:before {right: 2px;}.jimu-widget-GRGDrafter .jimu-tab3 .tab-item-td.jimu-state-active {border-bottom: 3px solid #000; font-family: "Avenir Heavy"; color: #000000;}.jimu-widget-GRGDrafter .jimu-tab3 .tab-item-td {font-size: 12px;}.jimu-widget-GRGDrafter .tabs .titles {font-weight: bold; font-family: "Avenir Medium"; font-size: 12px; margin: 20px 0 10px 0;}.jimu-widget-GRGDrafter .tabs .unit-item {margin: 15px 5px 5px 5px; line-height: 18px; height: 18px; vertical-align: middle;}.jimu-widget-GRGDrafter .dijitTextBox .dijitPlaceHolder {font-size: 12px;}.jimu-widget-GRGDrafter .dijitTextBoxError {border-color: #d9dde0 !important; box-shadow: inset 0 0 0 2px #d46464;}.jimu-widget-GRGDrafter .GRGlabelStartPositionSelect:focus,.jimu-widget-GRGDrafter .GRGcellShapeSelect:focus,.jimu-widget-GRGDrafter .style-selector .jimu-color-picker:focus,.jimu-widget-GRGDrafter .GRGGridSizeSelect:focus,.jimu-widget-GRGDrafter .GRGDrafterMainButtonIcon:focus,.jimu-widget-GRGDrafter .GRGDrafterBackButton:focus,.jimu-widget-GRGDrafter .referenceSystemSelect:focus {outline: 2px solid #24B5CC !important; outline-offset: -2px;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterInputLabel {float: right; padding: 7px 5px 0px 0px;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterItemLeftArrow {float: right; margin: 0px 0px 00px 10px;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterBackButton {float: right;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterSettingsIcon {float: left;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterItemLeftArrow {transform: rotate(180deg);}.jimu-rtl .jimu-widget-GRGDrafter .dijitSelect .dijitInputField {margin-left: 8px; margin-right: 0;}.SubTitle {font-weight: bold;}.jimu-widget-GRGDrafter .helpBtn {float: right; background: url(./images/help_black.png); background-repeat: no-repeat; background-color: transparent; width: 16px; height: 16px; margin-top: 6px;}.jimu-rtl .jimu-widget-GRGDrafter .helpBtn {float: left; transform: rotateY(180deg);}.jimu-widget-GRGDrafter .helpBtn:hover {float: right; background: url(./images/help_black_hover.png); background-repeat: no-repeat; background-color: transparent; width: 16px; height: 16px; margin-top: 6px;}.jimu-rtl .jimu-widget-GRGDrafter .helpBtn:hover {float: left;}.jimu-widget-GRGDrafter .polygonBtn {display: inline-block; background: url(./images/polygon_default.png); background-repeat: no-repeat; background-color: transparent; width: 30px; height: 30px;}.jimu-widget-GRGDrafter .polygonBtn:hover {background: url(\'./images/polygon_gray_hover.png\'); background-repeat: no-repeat;}.jimu-widget-GRGDrafter .jimu-polygon-active {background: url(\'./images/polygon_gray_hover.png\'); background-repeat: no-repeat; border: none;}.jimu-widget-GRGDrafter .extentBtn {display: inline-block; background: url(./images/extent_default.png); background-repeat: no-repeat; background-color: transparent; width: 30px; height: 30px;}.jimu-widget-GRGDrafter .extentBtn:hover {background: url(\'./images/extent_gray_hover.png\'); background-repeat: no-repeat;}.jimu-widget-GRGDrafter .jimu-extent-active {background: url(\'./images/extent_gray_hover.png\'); background-repeat: no-repeat; border: none;}.btnContainer {text-align: right; margin-top: 15px;}.jimu-widget-GRGDrafter .GRGDrafterBtnContainer {text-align: right; margin-top: 15px; display: grid;}.jimu-rtl .jimu-widget-GRGDrafter .GRGDrafterBtnContainer {padding-right: 2px;}.jimu-widget-GRGDrafter .controlGroupHidden {display: none;}.jimu-widget-GRGDrafter .controlItem {display: flex;}.jimu-widget-GRGDrafter .jimu-btn {margin-bottom: 6px;}.jimu-widget-GRGDrafter .jimu-coordinate-control .coordLabel {font-size: 12px;}.jimu-widget-GRGDrafter .jimu-coordinate-control textarea {width: 100%;}.jimu-widget-GRGDrafter .jimu-coordinate-control .add-with-icon.coordInput {width: calc(100% - 60px);}.jimu-widget-GRGDrafter .dijitSlider {margin-left: 10px; margin-right: auto; margin-top: 14px; width: calc(100% - 212px); width: -moz-calc(100% - 212px);}.jimu-widget-GRGDrafter .dijitSliderH {display: none !important;}.jimu-rtl .jimu-widget-GRGDrafter .dijitSlider {margin-left: auto; margin-right: 10px;}.jimu-widget-GRGDrafter .dijitSlider .dijitSliderImageHandleH {top: -10px; width: 20px; height: 20px;}.jimu-widget-GRGDrafter .colorPickerEditor {display: inline-flex; width: 100%;}.jimu-widget-GRGDrafter .percent-display {padding: 7px 0 0 2px;}.jimu-widget-GRGDrafter .colorPickerEditor .jimu-color-picker {display: inline-block; width: 25px; height: 25px;}.jimu-widget-GRGDrafter .colorPickerEditor .dijitSpinner.dijitNumberTextBox.dijitValidationTextBox {width: 65px; height: 30px;}.jimu-widget-GRGDrafter .dijitSliderImageHandleH {top: -7px;}.jimu-widget-GRGDrafter .dijitSliderThumbHover {background-image: url("./images/sliderball.svg"); background-position: 0 0;}.jimu-widget-GRGDrafter .dijitSliderImageHandle.dijitSliderImageHandleH {background-image: url("./images/sliderball.svg"); background-position: 0 0;}.jimu-widget-GRGDrafter .dijitSliderImageHandle.dijitSliderImageHandleH.dojoMoveItem {background-image: url("./images/sliderball.svg"); background-position: 0 0;}.jimu-widget-GRGDrafter .dijitSlider .dijitSliderProgressBarH,.jimu-widget-GRGDrafter .dijitSlider .dijitSliderLeftBumper {border-color: #000; background-color: #000; background-image: -webkit-linear-gradient(top, #000 0px, #000 1px, rgba(255, 255, 255, 0) 2px); background-image: -o-linear-gradient(top, #000 0px, #000 1px, rgba(255, 255, 255, 0) 2px); background-image: linear-gradient(top, #000 0px, #000 1px, rgba(255, 255, 255, 0) 2px);}.jimu-widget-GRGDrafter .dijitSlider .dijitSliderRemainingBarH,.jimu-widget-GRGDrafter .dijitSlider .dijitSliderRightBumper {border-color: #d7d7d7; background-color: #d7d7d7;}.jimu-widget-GRGDrafter .colorPickerEditor .trans {font-family: "Avenir Light"; font-size: 12px; padding: 5px 5px 0 15px; letter-spacing: 0.33px;}.jimu-rtl .jimu-widget-GRGDrafter .colorPickerEditor .trans {padding: 5px 15px 0 5px;}.jimu-widget-GRGDrafter .sliderbar {width: 60px;}.jimu-widget-GRGDrafter .style-selector .clearFix {*overflow: hidden; *zoom: 1}.jimu-widget-GRGDrafter .style-selector .clearFix:after {display: table; content: ""; width: 0; clear: both}.jimu-widget-GRGDrafter .style-selector .hide {display: none}.jimu-widget-GRGDrafter .settings-container .title {font-size: 14px; color: #000000; letter-spacing: 0.39px; margin-bottom: 20px;}.jimu-widget-GRGDrafter .settings-container .label {font-size: 12px; color: #282828; letter-spacing: 0.33px; line-height: 30px;}.jimu-widget-GRGDrafter .style-selector .label {margin: 0 0; max-width: 160px; line-height: 30px; font-size: 12px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis;}.jimu-widget-GRGDrafter .style-selector .dijitTextBox,.jimu-widget-GRGDrafter .style-selector .dijitSelect {width: 100%; height: 30px; border: 1px solid #D7D7D7;}.jimu-widget-GRGDrafter .style-selector .jimu-color-picker {width: 40px !important; height: 30px !important; border: 1px solid #D7D7D7 !important;}.jimu-widget-GRGDrafter .style-selector .dijitSelect .dijitArrowButtonContainer {border: none;}.jimu-widget-GRGDrafter .style-selector .dijitDownArrowButton .dijitButtonContents,.jimu-widget-GRGDrafter .style-selector .dijitComboBox .dijitDownArrowButton,.jimu-widget-GRGDrafter .style-selector .dijitSelect .dijitDownArrowButton {border: none;}.jimu-widget-GRGDrafter .style-selector .dijitTextBox .dijitInputInner {padding: 1px 0 0 0; font-size: 12px; font-style: normal; height: 28px; line-height: 28px;}.jimu-widget-GRGDrafter .style-selector .dijitSelectLabel {font-size: 12px;}.jimu-widget-GRGDrafter .SelectStyle .dijitSelectLabel {overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 288px; text-align: left;}.jimu-widget-GRGDrafter .dijitSelect .dijitArrowButton {background-color: #ffffff; border: 0.75px solid #e2e5e9; border-left-style: none;}.jimu-widget-GRGDrafter .style-selector .dijitSelect,.jimu-widget-GRGDrafter .style-selector .dijitSelect .dijitButtonContents,.jimu-widget-GRGDrafter .style-selector .dijitTextBox,.jimu-widget-GRGDrafter .style-selector .dijitTextBox .dijitButtonNode {background-color: transparent;}.jimu-widget-GRGDrafter .style-selector .dijitSelect .dijitArrowButton {background-color: transparent;}.jimu-widget-GRGDrafter .style-selector .dijitSelect .dijitInputField {padding: 0px 10px;}.jimu-widget-GRGDrafter .jimu-image-chooser .display-text {width: 100%; font-size: 12px; color: #4A4A4A; letter-spacing: 0.33px; background-color: #FFF; text-align: center;}.jimu-image-chooser:hover .hint .display-text {color: #FFF;}.jimu-widget-GRGDrafter .dijitTextBoxFocused {border: 1px solid #D7D7D7 !important; box-shadow: 0 0 0 0 !important; outline: 2px solid #24B5CC !important; outline-offset: -2px !important;}.jimu-widget-GRGDrafter .dijitTextBox .dijitInputField {padding: 5px 10px;}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none) {.jimu-widget-GRGDrafter .dijitTextBox .dijitInputField {padding: 0px;}}.jimu-widget-GRGDrafter .dijitSelectFocused .dijitArrowButton .dijitArrowButtonInner {background-position: -35px 53%;}.jimu-widget-GRGDrafter .text-size .text-size-group\x3e.dijitComboBox.dijitValidationTextBox,.jimu-widget-GRGDrafter .text-size .text-size-group\x3e.dijitSelect.dijitValidationTextBox {width: 80px;}.jimu-widget-GRGDrafter .text-size .text-size-group\x3etable {width: 140px;}.jimu-widget-GRGDrafter .halo-size .halo-size-group\x3e.dijitSelect.dijitValidationTextBox {width: 60px;}.jimu-widget-GRGDrafter .style-selector .setting-items {height: 30px; width: 100%; margin: 10px 0; vertical-align: middle; white-space: nowrap;}.jimu-widget-GRGDrafter .style-selector .setting-wapper {width: calc(100% - 107px);}.jimu-widget-GRGDrafter .style-selector .background-btn,.jimu-widget-GRGDrafter .style-selector .text-color-btn {width: 40px; height: 30px; overflow: hidden;}.jimu-widget-GRGDrafter .style-selector .halo-color-btn {width: 50px; height: 30px; overflow: hidden; padding-left: 5px; padding-right: 5px;}.jimu-widget-GRGDrafter .style-selector .align-group {margin-right: 8px; margin-left: -3px;}.jimu-rtl .jimu-widget-GRGDrafter .style-selector .align-group {margin-right: -3px; margin-left: 8px;}.jimu-widget-GRGDrafter .style-selector .font-group-btns {margin-left: 6px; margin-right: 6px;}.jimu-widget-GRGDrafter .style-selector .align-btn,.jimu-widget-GRGDrafter .style-selector .font-btn {height: 30px; margin: 0 3px;}.jimu-widget-GRGDrafter .style-selector .font-btn {width: 30px;}.jimu-widget-GRGDrafter .style-selector .align-btn {width: 30px;}.jimu-widget-GRGDrafter .style-selector .image-btn {width: 120px; height: 30px; border: 1px solid #D7D7D7;}.jimu-widget-GRGDrafter .style-selector .bold {background: url("./images/font_B.svg") no-repeat;}.jimu-widget-GRGDrafter .style-selector .bold.selected {background: url("./images/font_B_selected.svg") no-repeat;}.jimu-widget-GRGDrafter .style-selector .italic {background: url("./images/font_I.svg") no-repeat;}.jimu-widget-GRGDrafter .style-selector .italic.selected {background: url("./images/font_I_selected.svg") no-repeat;}.jimu-widget-GRGDrafter .style-selector .underline {background: url("./images/font_U.svg") no-repeat;}.jimu-widget-GRGDrafter .style-selector .underline.selected {background: url("./images/font_U_selected.svg") no-repeat;}.jimu-widget-GRGDrafter .halo-toggle-group {padding: 5px;}.jimu-widget-GRGDrafter .halo-toggle-group .checkbox-inline {padding-left: 36px; vertical-align: top;}.jimu-widget-GRGDrafter .halo-toggle-group .halo-toggle.dijitCheckBox {margin-left: -36px;}.jimu-widget-GRGDrafter .halo-toggle.dijitCheckBox {height: 16px; width: 28px; border: 0 none; background: #adadad; position: relative; display: inline-block; cursor: pointer; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; margin-top: 6px; margin-left: 5px;}.jimu-widget-GRGDrafter .halo-toggle.dijitCheckBox:before {content: ""; background: #f8f8f8; position: absolute; padding: 0; height: 12px; width: 12px; left: auto; right: 14px; top: 2px; z-index: 1; -webkit-transition: right 0.3s; -moz-transition: right 0.3s; -o-transition: right 0.3s; transition: right 0.3s; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%;}.jimu-widget-GRGDrafter .halo-toggle.dijitCheckBox input {width: 100%; height: 100%; position: absolute; left: 0; z-index: 2;}.jimu-widget-GRGDrafter .halo-toggle.dijitCheckBox.dijitCheckBoxChecked {background: #50ad4e;}.jimu-widget-GRGDrafter .halo-toggle.dijitCheckBox.dijitCheckBoxChecked:before {right: 2px;}.DartTheme .jimu-widget-GRGDrafter .dijitSelectDisabled,.DartTheme .jimu-widget-GRGDrafter .dijitTextBoxDisabled,.DartTheme .jimu-widget-GRGDrafter .dijitTextBoxDisabled .dijitInputContainer,.DartTheme .jimu-widget-GRGDrafter .dijitTextBoxDisabled {background-color: #4c4c4c;}.claro .dartThemeClaroDijitTooltipContainerOverride .dijitTooltipContainer {background-color: #4c4c4c; background-image: -webkit-linear-gradient(bottom, rgb(76, 76, 76) 0px, #4c4c4c 10px); border: 1px solid #ffffff; color: #ffffff;}.claro .dartThemeClaroDijitTooltipContainerOverride .jimu-widget-subtitle {color: #ffffff;}.claro .dartThemeClaroDijitTooltipContainerOverride .dijitTooltipConnector {background-image: url(images/tooltip.png);}.claro .dijitPopup.dijitTooltipDialogPopup .jimu-input {vertical-align: bottom;}.claro .dijitPopup.dijitTooltipDialogPopup .settingsContainer {margin-top: 6px;}.claro .dijitPopup.dijitTooltipDialogPopup .checkbox.jimu-float-leading.jimu-icon.jimu-icon-checkbox {margin-right: 6px;}.claro .dijitPopup.dijitTooltipDialogPopup span.jimu-widget-subtitle {display: inline-block; margin-bottom: 6px;}.jimu-widget-GRGDrafter .jimu-coordinate-control .settingBtn,.jimu-widget-GRGDrafter .jimu-coordinate-control .drawPointBtn {margin-left: 2px;}',
"*now":function(L){L(['dojo/i18n!*preload*widgets/GriddedReferenceGraphic/nls/Widget*["ar","bs","ca","cs","da","de","en","el","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","zh-cn","uk","vi","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
define("dojo dojo/_base/declare jimu/BaseWidget dojo/_base/array dojo/_base/lang dojo/_base/kernel dojo/dom-style dojo/dom-class dojo/dom-construct dojo/on dojo/_base/html dojo/query dojo/topic dojo/json dijit/_WidgetBase dijit/_WidgetsInTemplateMixin dijit/popup dijit/Menu dijit/MenuItem jimu/dijit/Message jimu/dijit/LoadingIndicator jimu/LayerInfos/LayerInfos jimu/LayerStructure jimu/utils jimu/dijit/CoordinateControl esri/arcgis/Portal esri/Color esri/dijit/util/busyIndicator esri/graphic esri/geometry/geometryEngine esri/geometry/Extent esri/geometry/Point esri/geometry/Polyline esri/geometry/webMercatorUtils esri/layers/FeatureLayer esri/layers/GraphicsLayer esri/layers/LabelClass esri/symbols/SimpleMarkerSymbol esri/symbols/SimpleFillSymbol esri/symbols/TextSymbol esri/toolbars/draw esri/toolbars/edit esri/renderers/SimpleRenderer ./js/GridSettings ./js/drawGRG ./js/geometry-utils ./js/geometryUtils ./js/mgrs-utils ./js/mgrs ./js/util dijit/focus dojo/keys dojo/dom-attr esri/geometry/projection esri/SpatialReference dojo/string dijit/form/NumberTextBox dijit/form/RadioButton dijit/form/NumberSpinner jimu/dijit/formSelect".split(" "),function(L,
f,t,H,b,g,l,v,B,A,z,c,p,a,r,w,k,d,e,n,q,m,x,y,E,I,J,O,Q,T,X,Y,W,U,ha,pa,ca,h,F,G,D,V,Z,da,aa,ba,ja,la,ia,sa,fa,P,ma,ea,ua,xa){return f([t,r,w],{baseClass:"jimu-widget-GRGDrafter",_lastOpenPanel:"mainPage",_currentOpenPanel:"mainPage",_gridSettingsInstance:null,_cellShape:"default",_labelStartPosition:"lowerLeft",_cellUnits:"meters",_labelType:"alphaNumeric",_labelTypeWithRefSys:"gridReferenceSystem",_labelDirection:"horizontal",_gridOrigin:"center",_referenceSystem:"MGRS",_showLabels:!0,_GRGAreaFillSymbol:null,
_cellTextSymbol:null,angle:0,featureLayerInfo:null,centerPoint:[],geodesicGrid:!0,postMixInProperties:function(){this.nls.common={};b.mixin(this.nls.common,window.jimuNls.common)},constructor:function(u){f.safeMixin(this,u)},postCreate:function(){ea.isSupported()?ea.load():new n({message:this.nls.projectionNotSupported});String.prototype.format||(String.prototype.format=function(){var K=arguments;return this.replace(/{(\d+)}/g,function(N,M){return"undefined"!==typeof K[M]?K[M]:N})});var u=xa.substitute(this.nls.helpIconTooltip,
{number:y.localizeNumber(1E5)});ma.set(this.helpBtnForArea,"title",u);ma.set(this.helpBtnForPt,"title",u);ma.set(this.helpBtnForArea,"aria-label",u);ma.set(this.helpBtnForPt,"aria-label",u);window.isRTL&&"he"===g.locale?(l.set(this.helpBtnForArea,"transform","rotateY(0deg)"),l.set(this.helpBtnForPt,"transform","rotateY(0deg)")):(l.set(this.helpBtnForArea,"transform",""),l.set(this.helpBtnForPt,"transform",""));this.inherited(arguments);this.extentAreaFillSymbol={type:"esriSFS",style:"esriSFSSolid",
color:[155,155,155,0],outline:{color:[0,0,255,255],width:1.25,type:"esriSLS",style:"esriSLSSolid"}};this.pointSymbol={color:[255,0,0,255],size:8,type:"esriSMS",style:"esriSMSCircle",outline:{color:[255,0,0,255],width:1,type:"esriSLS",style:"esriSLSSolid"}};this.pointSymbol={color:[255,0,0,255],size:8,type:"esriSMS",style:"esriSMSCircle",outline:{color:[255,0,0,255],width:1,type:"esriSLS",style:"esriSLSSolid"}};u=new Z(new h(this.pointSymbol));this._coordinatesLayer=new pa;this._coordinatesLayer.spatialReference=
this.map.spatialReference;this._coordinatesLayer.setRenderer(u);this._graphicsLayerGRGExtent=new pa({id:"graphicsLayerGRGExtent"});this._graphicsLayerGRGTimeExtent=new pa({id:"graphicsLayerGRGTimeExtent"});this._extentSym=new F(this.extentAreaFillSymbol);this._ptSym=new h(this.pointSymbol);this.GRGArea=new ha({layerDefinition:{geometryType:"esriGeometryPolygon",objectIdField:"ObjectID",fields:[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"grid",alias:"grid",type:"esriFieldTypeString"}],
drawingInfo:{renderer:{type:"simple",symbol:this.gridSymbol},transparency:0,labelingInfo:[{labelExpression:"[grid]",labelExpressionInfo:{value:"{grid}"},format:null,fieldInfos:null,useCodedValues:!1,maxScale:0,minScale:0,where:null,sizeInfo:null,labelPlacement:"esriServerPolygonPlacementAlwaysHorizontal",symbol:this._cellTextSymbol}]},extent:{xmin:-1.8746028312877923E7,ymin:-6027547.894280539,xmax:1.882429982984192E7,ymax:1.2561937384669386E7,spatialReference:{wkid:102100}}}},{id:"Gridded-Reference-Graphic",
outFields:["*"],showLabels:!0});this.createGraphicDeleteMenu();this.map.addLayers([this._graphicsLayerGRGTimeExtent,this.GRGArea,this._graphicsLayerGRGExtent,this._coordinatesLayer]);if(this.GRGArea.loaded){var C=m.getInstanceSync().getLayerInfoById("Gridded-Reference-Graphic");C.enablePopup();this._showLabels&&C.showLabels()}else this.GRGArea.on("load",b.hitch(this,function(){C=m.getInstanceSync().getLayerInfoById("Gridded-Reference-Graphic");C.enablePopup();this._showLabels&&C.showLabels()}));this.grgPointBySizeCoordTool=
new E({parentWidget:this,label:this.nls.coordInputLabel,input:!0,showCopyButton:!1,showFormatButton:!0,showDrawPoint:!0,drawButtonLabel:this.nls.addPointToolTip,graphicsLayer:this._coordinatesLayer});this.grgPointBySizeCoordTool.placeAt(this.newGRGPointBySizeOriginCoordsContainer);this.grgPointBySizeCoordTool.startup();this.own(A(this.grgPointBySizeCoordTool,"coordinates-deleted",b.hitch(this,function(){this._toggleGrgPointCreateGRGButton()})));this.own(A(this.grgPointBySizeCoordTool,"get-coordinate-complete",
b.hitch(this,function(){this._toggleGrgPointCreateGRGButton()})));this.grgPointByRefSystemCoordTool=new E({parentWidget:this,label:this.nls.coordInputLabel,input:!0,showCopyButton:!1,showFormatButton:!0,showDrawPoint:!0,drawButtonLabel:this.nls.addPointToolTip,graphicsLayer:this._coordinatesLayer});this.grgPointByRefSystemCoordTool.placeAt(this.newGRGPointByRefSystemOriginCoordsContainer);this.grgPointByRefSystemCoordTool.startup();this.own(A(this.grgPointByRefSystemCoordTool,"coordinates-deleted",
b.hitch(this,function(){this._toggleGrgPointCreateGRGButton()})));this.own(A(this.grgPointByRefSystemCoordTool,"get-coordinate-complete",b.hitch(this,function(){this._toggleGrgPointCreateGRGButton()})));this.grgPointByTimeCoordTool=new E({parentWidget:this,label:this.nls.coordInputLabel,input:!0,showCopyButton:!1,showFormatButton:!0,showDrawPoint:!0,drawButtonLabel:this.nls.addPointToolTip,graphicsLayer:this._coordinatesLayer});this.grgPointByTimeCoordTool.placeAt(this.newGRGPointByTimeOriginCoordsContainer);
this.grgPointByTimeCoordTool.startup();this.own(A(this.grgPointByTimeCoordTool,"coordinates-deleted",b.hitch(this,function(){this._toggleGrgPointCreateGRGButton()})));this.own(A(this.grgPointByTimeCoordTool,"get-coordinate-complete",b.hitch(this,function(){this._toggleGrgPointCreateGRGButton()})));this.dt_AreaBySize=new D(this.map);this.dt_AreaByRefSystem=new D(this.map);this.editToolbar=new V(this.map,{uniformScaling:!0,allowAddVertices:!0,allowDeleteVertices:!0});this._initLoading();this._handleClickEvents();
this._createGridSettings();this.util=new sa({appConfig:this.appConfig,nls:this.nls});this.restrictedCharlist="'\"\x3c\x3e{}[]#$%^\x26;:/\\";""===this.config.grg.operationalLayer.name&&(v.add(this.publishNewLayer,"controlGroupHidden"),v.add(this.featureLayerList.domNode,"controlGroupHidden"),this.publishNewLayer.setValue(!0),v.remove(this.addGRGNameArea.domNode,"controlGroupHidden"));this._layerList=this._getAllMapLayers();this._populateSelectList(this.featureLayerList,this._layerList,this.config.grg.operationalLayer.name,
!0);0===this.featureLayerList.options.length&&(this.publishNewLayer.setValue(!0),v.add(this.checkBoxParentContainer,"controlGroupHidden"));this._supportAccessibility();y.isAutoFocusFirstNodeWidget(this)&&fa.focus(this.newGRGAreaButton)},startup:function(){this.inherited(arguments);this.busyIndicator=O.create({target:this.domNode.parentNode.parentNode.parentNode,backgroundOpacity:0});this._setTheme();ma.set(this.grgPointByTimeTimeUnits,"aria-label",this.nls.time+""+this.nls.common.unit);ma.set(this.grgPointByTimeRateUnits,
"aria-label",this.nls.rate+""+this.nls.common.unit);"UTM"===this._referenceSystem&&(this.grgAreaByRefLabelFormat.value="ZS")},resize:function(){var u=c(".dijitValidationTextBoxLabel",this.featureLayerList.domNode);0<u.length&&l.set(u[0],"width",this.grgAreaBySizePublishGRGButton.clientWidth-44+"px")},onOpen:function(){},onClose:function(){this.grgPointBySizeCoordinateFormat&&this.grgPointBySizeCoordinateFormat.domNode.offsetParent&&k.close(this.grgPointBySizeCoordinateFormat);this.grgPointByRefSystemCoordinateFormat&&
this.grgPointByRefSystemCoordinateFormat.domNode.offsetParent&&k.close(this.grgPointByRefSystemCoordinateFormat);this.grgPointByTimeCoordinateFormat&&this.grgPointByTimeCoordinateFormat.domNode.offsetParent&&k.close(this.grgPointByTimeCoordinateFormat)},_initLoading:function(){this.loading=new q({hidden:!0});this.loading.placeAt(this.domNode);this.loading.startup()},_newGRGAreaButtonClicked:function(){v.contains(this.newGRGAreaButton,"GRGNewRightButton")?(z.removeClass(this.fromAreaContainer,"controlGroupHidden"),
z.removeClass(this.newGRGAreaButton,"GRGNewRightButton"),z.addClass(this.newGRGAreaButton,"GRGNewDownButton"),z.addClass(this.fromPointContainer,"controlGroupHidden"),z.removeClass(this.newGRGPointButton,"GRGNewDownButton"),z.addClass(this.newGRGPointButton,"GRGNewRightButton"),this._supportAccessibility(),fa.focus(this.newGRGAreaButton)):(z.addClass(this.fromAreaContainer,"controlGroupHidden"),z.addClass(this.newGRGAreaButton,"GRGNewRightButton"),z.removeClass(this.newGRGAreaButton,"GRGNewDownButton"))},
_newGRGPointButtonClicked:function(){v.contains(this.newGRGPointButton,"GRGNewRightButton")?(z.removeClass(this.fromPointContainer,"controlGroupHidden"),z.removeClass(this.newGRGPointButton,"GRGNewRightButton"),z.addClass(this.newGRGPointButton,"GRGNewDownButton"),z.addClass(this.fromAreaContainer,"controlGroupHidden"),z.removeClass(this.newGRGAreaButton,"GRGNewDownButton"),z.addClass(this.newGRGAreaButton,"GRGNewRightButton"),this._updateLastFocusNode()):(z.addClass(this.fromPointContainer,"controlGroupHidden"),
z.addClass(this.newGRGPointButton,"GRGNewRightButton"),z.removeClass(this.newGRGPointButton,"GRGNewDownButton"),this._supportAccessibility())},_publishPanelBackButtonClicked:function(){this.publishMessage.innerHTML="";this.addGRGNameArea.setValue("");this.addGRGNameArea.reset();this._graphicsLayerGRGExtent.show();this._graphicsLayerGRGTimeExtent.clear();this._showPanel(this._lastOpenPanel)},_grgAreaBySizePublishGRGButtonClicked:function(){var u={name:this.publishNewLayer.checked?this.addGRGNameArea.value:
this.featureLayerList.getValue(),url:"",itemId:"",serviceItemId:""};if(this.publishNewLayer.checked)this._isValidGRGLayerName(u.name)?this.publishMessage.innerHTML="":(v.contains(this.addGRGNameArea.domNode,"controlGroupHidden")||fa.focus(this.addGRGNameArea.domNode),this.addGRGNameArea.set("state","Error"),this.addGRGNameArea.displayMessage(this.nls.missingLayerNameMessage),this.publishMessage.innerHTML=this.nls.missingLayerNameMessage);else{var C=this._layerList.filter(function(K){return K.name===
u.name},this);1===C.length&&(u.url=C[0].url,u.itemId=C[0].id,u.serviceItemId=a.parse(C[0]._json).serviceItemId)}this._initSaveToPortal(u)},_settingsShowLabelsToggleClicked:function(){var u=m.getInstanceSync().getLayerInfoById("Gridded-Reference-Graphic");(this._showLabels=this.settingsShowLabelsToggle.checked)?u.showLabels():u.hideLabels()},_handleClickEvents:function(){this.own(A(this.newGRGAreaButton,"click",b.hitch(this,this._newGRGAreaButtonClicked)));this.own(A(this.newGRGAreaButton,"keydown",
b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._newGRGAreaButtonClicked()})));this.own(A(this.newGRGPointButton,"click",b.hitch(this,this._newGRGPointButtonClicked)));this.own(A(this.newGRGPointButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._newGRGPointButtonClicked()})));this.own(A(this.newAreaGRGBySizeButton,"click",b.hitch(this,function(){this._showPanel("grgAreaBySize")})));this.own(A(this.newAreaGRGBySizeButton,"keydown",b.hitch(this,
function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._showPanel("grgAreaBySize")})));this.own(A(this.newAreaGRGFromRefSystemButton,"click",b.hitch(this,function(){this._showPanel("grgAreaByRefSystem")})));this.own(A(this.newAreaGRGFromRefSystemButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._showPanel("grgAreaByRefSystem")})));this.own(A(this.newPointGRGBySizeButton,"click",b.hitch(this,function(){this._showPanel("grgPointBySize");this._toggleGrgPointCreateGRGButton()})));
this.own(A(this.newPointGRGBySizeButton,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._showPanel("grgPointBySize"),this._toggleGrgPointCreateGRGButton()})));this.own(A(this.newPointGRGFromRefSystemButton,"click",b.hitch(this,function(){this._showPanel("grgPointByRefSystem");this._toggleGrgPointCreateGRGButton()})));this.own(A(this.newPointGRGFromRefSystemButton,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._showPanel("grgPointByRefSystem"),
this._toggleGrgPointCreateGRGButton()})));this.own(A(this.newPointGRGFromTimeButton,"click",b.hitch(this,function(){this._showPanel("grgPointByTime");this._toggleGrgPointCreateGRGButton()})));this.own(A(this.newPointGRGFromTimeButton,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._showPanel("grgPointByTime"),this._toggleGrgPointCreateGRGButton()})));this.own(A(this.grgAreaBySizePanelBackButton,"click",b.hitch(this,function(){this._resetOnBackToMainPage()})));this.own(A(this.grgAreaBySizePanelBackButton,
"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._resetOnBackToMainPage()})));this.config.grg.lockSettings?(this.grgAreaBySizeSettingsButton.title=this.nls.lockSettings,z.addClass(this.grgAreaBySizeSettingsButton,"settingsLocked"),z.removeClass(this.grgAreaBySizeSettingsButton,"GRGDrafterSettingsIcon")):(this.own(A(this.grgAreaBySizeSettingsButton,"click",b.hitch(this,function(){this._updateSettingsPage(this._currentOpenPanel);this._showPanel("settingsPage")}))),this.own(A(this.grgAreaBySizeSettingsButton,
"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._updateSettingsPage(this._currentOpenPanel),this._showPanel("settingsPage")}))));this.own(A(this.grgAreaBySizeDrawPolygonIcon,"click",b.hitch(this,this._grgAreaBySizeDrawPolygonIconClicked)));this.own(A(this.grgAreaBySizeDrawPolygonIcon,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgAreaBySizeDrawPolygonIconClicked()})));this.own(A(this.grgAreaBySizeDrawExtentIcon,"click",b.hitch(this,
this._grgAreaBySizeDrawExtentIconClicked)));this.own(A(this.grgAreaBySizeDrawExtentIcon,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgAreaBySizeDrawExtentIconClicked()})));this.own(A(this.dt_AreaBySize,"draw-complete",b.hitch(this,this._dt_AreaBySizeComplete)));this.own(A(this.grgAreaBySizeCreateGRGButton,"click",b.hitch(this,this._grgAreaBySizeCreateGRGButtonClicked)));this.own(A(this.grgAreaBySizeCreateGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==
P.ENTER&&u.keyCode!==P.SPACE||this._grgAreaBySizeCreateGRGButtonClicked()})));this.own(A(this.grgAreaBySizeClearGRGButton,"click",b.hitch(this,function(){this._clearLayers(!0)})));this.own(A(this.grgAreaBySizeClearGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._clearLayers(!0)})));this.own(A(this.setNumberRowsColumns,"click",b.hitch(this,this._setNumberRowsColumnsCheckBoxChanged)));this.own(A(this.setNumberRowsColumns,"keydown",b.hitch(this,function(u){u.keyCode!==
P.ENTER&&u.keyCode!==P.SPACE||this._setNumberRowsColumnsCheckBoxChanged()})));this.own(A(this.cellHorizontal,"blur",b.hitch(this,function(){this.cellHorizontal.isValid()&&this._graphicsLayerGRGExtent.graphics[0]&&(0===this.angle?this._calculateCellWidthAndHeight(ba.extentToPolygon(this._graphicsLayerGRGExtent.graphics[0].geometry.getExtent())):this._calculateCellWidthAndHeight(this._graphicsLayerGRGExtent.graphics[0].geometry))})));this.own(A(this.cellVertical,"blur",b.hitch(this,function(){this.cellVertical.isValid()&&
this._graphicsLayerGRGExtent.graphics[0]&&(0===this.angle?this._calculateCellWidthAndHeight(ba.extentToPolygon(this._graphicsLayerGRGExtent.graphics[0].geometry.getExtent())):this._calculateCellWidthAndHeight(this._graphicsLayerGRGExtent.graphics[0].geometry))})));this.own(A(this.grgAreaBySizeRotation,"keyup",b.hitch(this,function(){setTimeout(b.hitch(this,function(){if(this.grgAreaBySizeRotation.isValid()&&!isNaN(this.grgAreaBySizeRotation.value)&&this._graphicsLayerGRGExtent.graphics[0]){var u=
this.grgAreaBySizeRotation.getValue()-this.angle;u=T.rotate(this._graphicsLayerGRGExtent.graphics[0].geometry,-1*u);this._graphicsLayerGRGExtent.clear();u=new Q(u,this._extentSym);this._graphicsLayerGRGExtent.add(u);this.angle=this.grgAreaBySizeRotation.getValue();this.editToolbar.deactivate()}}),1E3)})));this.own(A(this.grgAreaByRefSystemPanelBackButton,"click",b.hitch(this,function(){this._resetOnBackToMainPage()})));this.own(A(this.grgAreaByRefSystemPanelBackButton,"keydown",b.hitch(this,function(u){u.keyCode!==
P.ENTER&&u.keyCode!==P.SPACE||this._resetOnBackToMainPage()})));this.config.grg.lockSettings?(this.grgAreaByRefSystemSettingsButton.title=this.nls.lockSettings,z.addClass(this.grgAreaByRefSystemSettingsButton,"settingsLocked"),z.removeClass(this.grgAreaByRefSystemSettingsButton,"GRGDrafterSettingsIcon")):(this.own(A(this.grgAreaByRefSystemSettingsButton,"click",b.hitch(this,function(){this._updateSettingsPage(this._currentOpenPanel);this._showPanel("settingsPage")}))),this.own(A(this.grgAreaByRefSystemSettingsButton,
"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._updateSettingsPage(this._currentOpenPanel),this._showPanel("settingsPage")}))));this.own(A(this.grgAreaByRefSystemDrawIcon,"click",b.hitch(this,this._grgAreaByRefSystemDrawIconClicked)));this.own(A(this.grgAreaByRefSystemDrawIcon,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgAreaByRefSystemDrawIconClicked()})));this.own(A(this.grgAreaByRefSystemCreateGRGButton,"click",b.hitch(this,
this._grgAreaByRefSystemCreateGRGButtonClicked)));this.own(A(this.grgAreaByRefSystemCreateGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgAreaByRefSystemCreateGRGButtonClicked()})));this.own(A(this.grgAreaByRefSystemClearGRGButton,"click",b.hitch(this,function(){this._clearLayers(!0)})));this.own(A(this.grgAreaByRefSystemClearGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._clearLayers(!0)})));this.own(A(this.dt_AreaByRefSystem,
"draw-complete",b.hitch(this,function(u){this._dt_AreaByRefSystemComplete(u);fa.focus(this.grgAreaByRefSystemGridSize.domNode)})));this.own(A(this.grgAreaByRefSystemGridSize,"change",b.hitch(this,function(){this._updateLabelFormat(this.grgAreaByRefSystemGridSize,this.grgAreaByRefLabelFormat)})));this.own(A(this.grgPointBySizePanelBackButton,"click",b.hitch(this,function(){this.onClose();this._resetOnBackToMainPage()})));this.own(A(this.grgPointBySizePanelBackButton,"keydown",b.hitch(this,function(u){if(u.keyCode===
P.ENTER||u.keyCode===P.SPACE)this.onClose(),this._resetOnBackToMainPage()})));this.config.grg.lockSettings?(this.grgPointBySizeSettingsButton.title=this.nls.lockSettings,z.addClass(this.grgPointBySizeSettingsButton,"settingsLocked"),z.removeClass(this.grgPointBySizeSettingsButton,"GRGDrafterSettingsIcon")):(this.own(A(this.grgPointBySizeSettingsButton,"click",b.hitch(this,function(){this._updateSettingsPage(this._currentOpenPanel);this._showPanel("settingsPage")}))),this.own(A(this.grgPointBySizeSettingsButton,
"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._updateSettingsPage(this._currentOpenPanel),this._showPanel("settingsPage")}))));this.own(A(this.grgPointBySizeCreateGRGButton,"click",b.hitch(this,this._grgPointBySizeCreateGRGButtonClicked)));this.own(A(this.grgPointBySizeCreateGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgPointBySizeCreateGRGButtonClicked()})));this.own(A(this.grgPointBySizeClearGRGButton,"click",
b.hitch(this,function(){this._clearLayers(!0)})));this.own(A(this.grgPointBySizeClearGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._clearLayers(!0)})));this.own(A(this.grgPointBySizeCoordTool.dt,"DrawComplete",b.hitch(this,function(){this._dt_Complete();this._onDrawCompleteToggleCreateGRGButton();fa.focus(this.grgPointBySizeCellHorizontal.domNode)})));this.own(A(this.grgPointByRefSystemCoordTool.dt,"DrawComplete",b.hitch(this,function(){this._dt_Complete();
this._onDrawCompleteToggleCreateGRGButton();fa.focus(this.grgPointByRefSystemGridSize.domNode)})));this.own(A(this.grgPointByTimeCoordTool.dt,"DrawComplete",b.hitch(this,function(){this._dt_Complete();this._onDrawCompleteToggleCreateGRGButton();fa.focus(this.grgPointByTimeTime.domNode)})));this.own(A(this.grgPointByRefSystemPanelBackButton,"click",b.hitch(this,function(){this.onClose();this._resetOnBackToMainPage()})));this.own(A(this.grgPointByRefSystemPanelBackButton,"keydown",b.hitch(this,function(u){if(u.keyCode===
P.ENTER||u.keyCode===P.SPACE)this.onClose(),this._resetOnBackToMainPage()})));this.config.grg.lockSettings?(this.grgPointByRefSystemSettingsButton.title=this.nls.lockSettings,z.addClass(this.grgPointByRefSystemSettingsButton,"settingsLocked"),z.removeClass(this.grgPointByRefSystemSettingsButton,"GRGDrafterSettingsIcon")):(this.own(A(this.grgPointByRefSystemSettingsButton,"click",b.hitch(this,function(){this._updateSettingsPage(this._currentOpenPanel);this._showPanel("settingsPage")}))),this.own(A(this.grgPointByRefSystemSettingsButton,
"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._updateSettingsPage(this._currentOpenPanel),this._showPanel("settingsPage")}))));this.own(A(this.grgPointByRefSystemCreateGRGButton,"click",b.hitch(this,this._grgPointByRefSystemCreateGRGButtonClicked)));this.own(A(this.grgPointByRefSystemCreateGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgPointByRefSystemCreateGRGButtonClicked()})));this.own(A(this.grgPointByRefSystemClearGRGButton,
"click",b.hitch(this,function(){this._clearLayers(!0)})));this.own(A(this.grgPointByRefSystemClearGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._clearLayers(!0)})));this.own(A(this.grgPointByRefSystemGridSize,"change",b.hitch(this,function(){this._updateLabelFormat(this.grgPointByRefSystemGridSize,this.grgPointByRefLabelFormat);this._toggleGrgPointCreateGRGButton()})));this.own(A(this.grgPointByTimeBackButton,"click",b.hitch(this,function(){this.onClose();
this._resetOnBackToMainPage()})));this.own(A(this.grgPointByTimeBackButton,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this.onClose(),this._resetOnBackToMainPage()})));this.config.grg.lockSettings?(this.grgPointByTimeSettingsButton.title=this.nls.lockSettings,z.addClass(this.grgPointByTimeSettingsButton,"settingsLocked"),z.removeClass(this.grgPointByTimeSettingsButton,"GRGDrafterSettingsIcon")):(this.own(A(this.grgPointByTimeSettingsButton,"click",b.hitch(this,function(){this._updateSettingsPage(this._currentOpenPanel);
this._showPanel("settingsPage")}))),this.own(A(this.grgPointByTimeSettingsButton,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._updateSettingsPage(this._currentOpenPanel),this._showPanel("settingsPage")}))));this.own(A(this.grgPointByTimeCreateGRGButton,"click",b.hitch(this,this._grgPointByTimeCreateGRGButtonClicked)));this.own(A(this.grgPointByTimeCreateGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgPointByTimeCreateGRGButtonClicked()})));
this.own(A(this.grgPointByTimeClearGRGButton,"click",b.hitch(this,function(){this._clearLayers(!0)})));this.own(A(this.grgPointByTimeClearGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._clearLayers(!0)})));this.own(A(this.setNumberRowsColumnsTime,"click",b.hitch(this,this._setNumberRowsColumnsTimeCheckBoxChanged)));this.own(A(this.setNumberRowsColumnsTime,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._setNumberRowsColumnsTimeCheckBoxChanged()})));
this.own(A(this.gridSettingsPanelBackButton,"click",b.hitch(this,function(){this._gridSettingsInstance.onClose();this._showPanel(this._lastOpenPanel)})));this.own(A(this.gridSettingsPanelBackButton,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this._gridSettingsInstance.onClose(),this._showPanel(this._lastOpenPanel)})));this.own(A(this.publishPanelBackButton,"click",b.hitch(this,this._publishPanelBackButtonClicked)));this.own(A(this.publishPanelBackButton,"keydown",
b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._publishPanelBackButtonClicked()})));this.own(A(this.grgAreaBySizePublishGRGButton,"click",b.hitch(this,this._grgAreaBySizePublishGRGButtonClicked)));this.own(A(this.grgAreaBySizePublishGRGButton,"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._grgAreaBySizePublishGRGButtonClicked()})));this.own(A(this.settingsShowLabelsToggle,"click",b.hitch(this,this._settingsShowLabelsToggleClicked)));this.own(A(this.settingsShowLabelsToggle,
"keydown",b.hitch(this,function(u){u.keyCode!==P.ENTER&&u.keyCode!==P.SPACE||this._settingsShowLabelsToggleClicked()})));this.own(A(this.featureLayerList,"change",b.hitch(this,function(){this.resize()})));this.own(A(this.editToolbar,"graphic-move-stop",b.hitch(this,function(u){this.centerPoint=u.graphic.geometry.getCentroid()})));this.own(A(this.editToolbar,"rotate-stop",b.hitch(this,function(u){this.angle+=parseFloat(u.info.angle.toFixed(1));this.grgAreaBySizeRotation.setValue(this.angle)})));this.own(A(this.editToolbar,
"vertex-move-stop",b.hitch(this,function(u){this.centerPoint=u.graphic.geometry.getCentroid();this._calculateCellWidthAndHeight(ba.extentToPolygon(this._graphicsLayerGRGExtent.graphics[0].geometry.getExtent()))})));this.own(A(this.editToolbar,"scale-stop",b.hitch(this,function(u){this.centerPoint=u.graphic.geometry.getCentroid();this._calculateCellWidthAndHeight(u.graphic.geometry)})));this.own(A(this.publishNewLayer,"change",b.hitch(this,this._onCheckboxClicked)));p.subscribe("moveMap",b.hitch(this,
function(){setTimeout(b.hitch(this,function(){this._moveMap()}),1E3)}))},_containsSupportedCapabilities:function(u){var C=!0;["create","delete","query","update","editing"].forEach(function(K){-1===u.toLowerCase().split(",").indexOf(K)&&(C=!1)});return C},_populateSelectList:function(u,C,K,N){var M=[];N&&(M=H.filter(C,function(R){return"esriGeometryPolygon"===R.geometryType},this));C=0<M.length?M:C;H.forEach(C,b.hitch(this,function(R){R.url&&"Feature Layer"===R.type&&this._containsSupportedCapabilities(R.capabilities)&&
u.addOption({value:R.name,label:y.sanitizeHTML(R.name),selected:!1})}),this);""!==K&&u.set("displayedValue",K)},_getAllMapLayers:function(){var u=[];x.getInstance().traversal(function(C){"undefined"!==typeof C._layerInfo.layerObject.type&&-1===C._layerInfo.layerObject.type.indexOf("tile")&&u.push(C._layerInfo.layerObject)});return u},_onCheckboxClicked:function(){this.publishNewLayer.checked?(v.add(this.featureLayerList.domNode,"controlGroupHidden"),v.remove(this.addGRGNameArea.domNode,"controlGroupHidden"),
this.addGRGNameArea.reset(),this.addGRGNameArea.focus()):(v.add(this.addGRGNameArea.domNode,"controlGroupHidden"),v.remove(this.featureLayerList.domNode,"controlGroupHidden"));this._addLayerToMap=this.publishNewLayer.checked},_isValidGRGLayerName:function(u){var C=!1,K=this._findRestrictedChars(u,this.restrictedCharlist);K&&0<K.length?C=!1:this._isLayerNameValid(u)?u&&0<u.length&&(C=!0):C=!1;return C},_findRestrictedChars:function(u,C){var K="",N;if(u&&C)for(N=0;N<C.length;N++){var M=C.charAt(N);
-1!==u.indexOf(M)&&(" "===M&&(M="spaces"),K=0===K.length?M:K+(" "+M))}return K},_isLayerNameValid:function(u){var C=/^\./,K=/^(nul|prn|con|lpt[0-9]|com[0-9])(\.|$)/i;return/^[^\\/:\*\?"<>\|()]+$/.test(u)&&!C.test(u)&&!K.test(u)},_updateSettingsPage:function(u){z.removeClass(this._gridSettingsInstance.gridShapeContainer,"controlGroupHidden");z.removeClass(this._gridSettingsInstance.gridUnitsContainer,"controlGroupHidden");z.removeClass(this._gridSettingsInstance.labelStyleContainer,"controlGroupHidden");
z.removeClass(this._gridSettingsInstance.labelStartPositionContainer,"controlGroupHidden");z.removeClass(this._gridSettingsInstance.labelDirectionContainer,"controlGroupHidden");z.addClass(this._gridSettingsInstance.gridOriginContainer,"controlGroupHidden");z.addClass(this._gridSettingsInstance.gridRefSystemContainer,"controlGroupHidden");z.addClass(this._gridSettingsInstance.labelStyleWithRefSysContainer,"controlGroupHidden");switch(u){case "grgPointBySize":z.removeClass(this._gridSettingsInstance.gridOriginContainer,
"controlGroupHidden");break;case "grgAreaByRefSystem":case "grgPointByRefSystem":z.addClass(this._gridSettingsInstance.gridShapeContainer,"controlGroupHidden"),z.addClass(this._gridSettingsInstance.gridUnitsContainer,"controlGroupHidden"),z.addClass(this._gridSettingsInstance.labelStyleContainer,"controlGroupHidden"),z.addClass(this._gridSettingsInstance.labelDirectionContainer,"controlGroupHidden"),z.removeClass(this._gridSettingsInstance.gridRefSystemContainer,"controlGroupHidden"),z.removeClass(this._gridSettingsInstance.labelStyleWithRefSysContainer,
"controlGroupHidden")}},_getNodeByName:function(u){switch(u){case "mainPage":var C=this.mainPageNode;break;case "grgAreaBySize":C=this.grgAreaBySizePageNode;break;case "grgAreaByRefSystem":C=this.grgAreaByRefSystemPageNode;break;case "grgAreaFromNonStandard":C=this.grgAreaFromNonStandardPageNode;break;case "grgPointBySize":C=this.grgPointBySizePageNode;break;case "grgPointByRefSystem":C=this.grgPointByRefSystemPageNode;break;case "grgPointByTime":C=this.grgPointByTimePageNode;this._gridSettingsInstance.gridOrigin.set("value",
"center");this._gridOrigin="center";break;case "settingsPage":C=this.settingsPageNode;break;case "publishPage":C=this.publishPageNode}return C},_resetOnBackToMainPage:function(){this._showPanel("mainPage");this._reset();fa.focus(this.newGRGAreaButton)},_reset:function(){this._clearLayers(!0);this.dt_AreaBySize.deactivate();this.dt_AreaByRefSystem.deactivate();this.map.enableMapNavigation();L.removeClass(this.grgAreaBySizeDrawPolygonIcon,"jimu-polygon-active");L.removeClass(this.grgAreaBySizeDrawExtentIcon,
"jimu-extent-active");z.addClass(this.fromAreaContainer,"controlGroupHidden");z.addClass(this.newGRGAreaButton,"GRGNewRightButton");z.removeClass(this.newGRGAreaButton,"GRGNewDownButton");z.addClass(this.fromPointContainer,"controlGroupHidden");z.addClass(this.newGRGPointButton,"GRGNewRightButton");z.removeClass(this.newGRGPointButton,"GRGNewDownButton")},_clearLayers:function(u){this.GRGArea.clear();this.GRGArea.refresh();this.editToolbar.deactivate();this.grgPointBySizeCoordTool.clear();this.grgPointByRefSystemCoordTool.clear();
this.grgPointByTimeCoordTool.clear();this._toggleGrgPointCreateGRGButton();u&&(this._graphicsLayerGRGExtent.clear(),this.angle=0,this.grgAreaBySizeRotation.setValue(this.angle),this.grgAreaBySizeRotation.set("disabled",!0),this.grgAreaBySizeCellHeight.set("disabled",!0),this.grgAreaBySizeCellWidth.set("disabled",!0))},_createGridSettings:function(){this._gridSettingsInstance=new da({nls:this.nls,config:this.config,appConfig:this.appConfig},B.create("div",{},this.gridSettingsNode));this.own(this._gridSettingsInstance.on("gridSettingsChanged",
b.hitch(this,function(u){this._cellShape=u.cellShape;this._labelStartPosition=u.labelStartPosition;this._cellUnits=u.cellUnits;this._labelType=u.labelType;this._labelTypeWithRefSys=u.labelTypeWithRefSys;this._labelDirection=u.labelDirection;this._gridOrigin=u.gridOrigin;this._referenceSystem=u.referenceSystem;"default"===this._cellShape?(this.grgAreaBySizeCellHeight.setValue(this.grgAreaBySizeCellWidth.value),this.grgPointBySizeCellHeight.set("disabled",!1),this.grgPointBySizeCellHeight.setValue(this.grgPointBySizeCellWidth.value)):
(this.grgAreaBySizeCellHeight.set("disabled",!0),this.grgAreaBySizeCellHeight.setValue(0),this.grgPointBySizeCellHeight.set("disabled",!0),this.grgPointBySizeCellHeight.setValue(0));"gridReferenceSystem"!==this._labelTypeWithRefSys?(z.addClass(this.grgAreaByRefSystemLabelFormat,"controlGroupHidden"),z.addClass(this.grgPointByRefSystemLabelFormat,"controlGroupHidden")):(z.removeClass(this.grgAreaByRefSystemLabelFormat,"controlGroupHidden"),z.removeClass(this.grgPointByRefSystemLabelFormat,"controlGroupHidden"));
var C=new J(u.gridFillColor);C.a=1-u.gridFillTransparency;var K=new J(u.gridOutlineColor);K.a=1-u.gridOutlineTransparency;this._GRGAreaFillSymbol={type:"esriSFS",style:"esriSFSSolid",color:C,outline:{color:K,width:2,type:"esriSLS",style:"esriSLSSolid"}};C=new F(this._GRGAreaFillSymbol);C=new Z(C);this.GRGArea.setRenderer(C);C=new J(u.fontSettings.textColor);K=255*(1-u.fontSettings.labelTransparency);var N=0;u.fontSettings.haloOn&&(N=parseInt(u.fontSettings.haloSize,10));var M=new J(u.fontSettings.haloColor);
this._cellTextSymbol={type:"esriTS",color:[C.r,C.g,C.b,K],haloSize:N,haloColor:[M.r,M.g,M.b,K],horizontalAlignment:"center",font:{size:parseInt(u.fontSettings.fontSize,10),style:u.fontSettings.font.italic?"italic":"normal",weight:u.fontSettings.font.bold?"bold":"normal",family:u.fontSettings.font.fontFamily,decoration:u.fontSettings.font.underline?"underline":"none"}};u=new ca({labelExpressionInfo:{value:"{grid}"}});u.symbol=new G(this._cellTextSymbol);this.GRGArea.setLabelingInfo([u]);this.GRGArea.refresh();
this._updateLabelFormat(this.grgAreaByRefSystemGridSize,this.grgAreaByRefLabelFormat);this._updateLabelFormat(this.grgPointByRefSystemGridSize,this.grgPointByRefLabelFormat)})));this._gridSettingsInstance.startup();this.own(A(this._gridSettingsInstance.tab,"tabChanged",b.hitch(this,function(){setTimeout(b.hitch(this,function(){this._updateLastFocusNode()}),200)})))},_showPanel:function(u){if(this._currentOpenPanel){var C=this._getNodeByName(this._currentOpenPanel);v.add(C,"GRGDrafterHidden")}C=this._getNodeByName(u);
v.remove(C,"GRGDrafterHidden");this._lastOpenPanel=this._currentOpenPanel;this._currentOpenPanel=u;this._supportAccessibility();"publishPage"!==u||this.isOnScreen||this.resize()},_grgAreaBySizeDrawPolygonIconClicked:function(){this._clearLayers(!0);v.contains(this.grgAreaBySizeDrawExtentIcon,"jimu-extent-active")&&(this.dt_AreaBySize.deactivate(),v.toggle(this.grgAreaBySizeDrawExtentIcon,"jimu-extent-active"));v.contains(this.grgAreaBySizeDrawPolygonIcon,"jimu-polygon-active")?(this.dt_AreaBySize.deactivate(),
this.map.enableMapNavigation()):(this.map.disableMapNavigation(),this.dt_AreaBySize.activate("polygon"),this.own(A(this._graphicsLayerGRGExtent,"click",b.hitch(this,function(u){this.editToolbar._defaultOptions.uniformScaling=!0;this.editToolbar.activate(V.MOVE|V.EDIT_VERTICES,u.graphic)}))),this.own(A(this._graphicsLayerGRGExtent,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this.editToolbar._defaultOptions.uniformScaling=!0,this.editToolbar.activate(V.MOVE|V.EDIT_VERTICES,
u.graphic)}))));v.toggle(this.grgAreaBySizeDrawPolygonIcon,"jimu-polygon-active")},_grgAreaBySizeDrawExtentIconClicked:function(){this._clearLayers(!0);v.contains(this.grgAreaBySizeDrawPolygonIcon,"jimu-polygon-active")&&(this.dt_AreaBySize.deactivate(),v.toggle(this.grgAreaBySizeDrawPolygonIcon,"jimu-polygon-active"));v.contains(this.grgAreaBySizeDrawExtentIcon,"jimu-extent-active")?(this.dt_AreaBySize.deactivate(),this.map.enableMapNavigation()):(this.map.disableMapNavigation(),this.dt_AreaBySize.activate("extent"),
this.own(A(this._graphicsLayerGRGExtent,"click",b.hitch(this,function(u){this.editToolbar._defaultOptions.uniformScaling=!0;this.editToolbar.activate(V.MOVE|V.ROTATE|V.SCALE,u.graphic)}))),this.own(A(this._graphicsLayerGRGExtent,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this.editToolbar._defaultOptions.uniformScaling=!0,this.editToolbar.activate(V.MOVE|V.ROTATE|V.SCALE,u.graphic)}))));v.toggle(this.grgAreaBySizeDrawExtentIcon,"jimu-extent-active")},_grgPointBySizeDrawButtonClicked:function(){v.contains(this.grgPointBySizeAddPointBtn,
"jimu-edit-active")?this.map.enableMapNavigation():(this._clearLayers(!0),this.grgPointBySizeCoordTool.manualInput=!1,this.map.disableMapNavigation());v.toggle(this.grgPointBySizeAddPointBtn,"jimu-edit-active")},_grgAreaByRefSystemDrawIconClicked:function(){v.contains(this.grgAreaByRefSystemDrawIcon,"jimu-extent-active")?(this.dt_AreaByRefSystem.deactivate(),this.map.enableMapNavigation()):(this._graphicsLayerGRGExtent.clear(),this.grgPointBySizeCoordTool.manualInput=!1,this.map.disableMapNavigation(),
this.dt_AreaByRefSystem.activate("extent"),this.editToolbar.deactivate(),this.own(A(this._graphicsLayerGRGExtent,"click",b.hitch(this,function(u){this.editToolbar._defaultOptions.uniformScaling=!1;this.editToolbar.activate(V.MOVE|V.SCALE,u.graphic)}))),this.own(A(this._graphicsLayerGRGExtent,"keydown",b.hitch(this,function(u){if(u.keyCode===P.ENTER||u.keyCode===P.SPACE)this.editToolbar._defaultOptions.uniformScaling=!1,this.editToolbar.activate(V.MOVE|V.SCALE,u.graphic)}))));v.toggle(this.grgAreaByRefSystemDrawIcon,
"jimu-extent-active")},_dt_AreaBySizeComplete:function(u){this.map.enableMapNavigation();this.dt_AreaBySize.deactivate();if("extent"===u.geometry.type){u.geometry=ba.extentToPolygon(u.geometry);var C=new Q(u.geometry,this._extentSym);this.grgAreaBySizeRotation.set("disabled",!1);v.toggle(this.grgAreaBySizeDrawExtentIcon,"jimu-extent-active")}else C=new Q(u.geometry,this._extentSym),u.geometry=ba.extentToPolygon(u.geometry.getExtent()),v.toggle(this.grgAreaBySizeDrawPolygonIcon,"jimu-polygon-active");
"default"===this._cellShape&&this.grgAreaBySizeCellHeight.set("disabled",!1);this.grgAreaBySizeCellWidth.set("disabled",!1);fa.focus(this.grgAreaBySizeCellWidth.domNode);this._graphicsLayerGRGExtent.add(C);this.centerPoint=u.geometry.getCentroid();this._calculateCellWidthAndHeight(u.geometry)},_calculateCellWidthAndHeight:function(u){4326===u.spatialReference.wkid&&(u=U.geographicToWebMercator(u));var C=T.geodesicLength(new W({paths:[[[u.getPoint(0,0).x,u.getPoint(0,0).y],[u.getPoint(0,1).x,u.getPoint(0,
1).y]]],spatialReference:u.spatialReference}),this._cellUnits)/this.cellHorizontal.value,K=T.geodesicLength(new W({paths:[[[u.getPoint(0,0).x,u.getPoint(0,0).y],[u.getPoint(0,3).x,u.getPoint(0,3).y]]],spatialReference:u.spatialReference}),this._cellUnits)/this.cellVertical.value,N=this.util.convertToMeters(C,this._cellUnits),M=this.util.convertToMeters(K,this._cellUnits);2E4>N&&(2E4>M&&"hexagon"!==this._cellShape||"hexagon"===this._cellShape)?(this.geodesicGrid=!0,this.grgAreaBySizeCellWidth.setValue(C),
"default"===this._cellShape?this.grgAreaBySizeCellHeight.setValue(K):this.grgAreaBySizeCellHeight.setValue(0)):(this.geodesicGrid=!1,this.grgAreaBySizeCellWidth.setValue(T.distance(u.getPoint(0,0),u.getPoint(0,1),this._cellUnits)/this.cellHorizontal.value),"default"===this._cellShape?this.grgAreaBySizeCellHeight.setValue(T.distance(u.getPoint(0,0),u.getPoint(0,3),this._cellUnits)/this.cellVertical.value):this.grgAreaBySizeCellHeight.setValue(0))},_dt_Complete:function(){this.grgPointBySizeCoordTool.deactivateDrawTool();
this.grgPointByRefSystemCoordTool.deactivateDrawTool();this.grgPointByTimeCoordTool.deactivateDrawTool();this.map.enableMapNavigation()},_dt_AreaByRefSystemComplete:function(u){v.remove(this.grgAreaByRefSystemDrawIcon,"jimu-extent-active");u=new Q(ba.extentToPolygon(u.geometry),this._extentSym);this._graphicsLayerGRGExtent.add(u);this.dt_AreaByRefSystem.deactivate();this.map.enableMapNavigation()},_grgPointBySizeCoordFormatPopupApplyButtonClicked:function(){var u=this.grgPointBySizeCoordinateFormat.content.formats[this.grgPointBySizeCoordinateFormat.content.ct],
C=u.defaultFormat,K=this.grgPointBySizeCoordinateFormat.content.frmtSelect.get("value");u.useCustom&&(C=u.customFormat);this.grgPointBySizeCoordTool.inputCoordinate.set("formatPrefix",this.grgPointBySizeCoordinateFormat.content.addSignChkBox.checked);this.grgPointBySizeCoordTool.inputCoordinate.set("formatString",C);this.grgPointBySizeCoordTool.inputCoordinate.set("formatType",K);this._grgPointBySizeSetCoordLabel(K);k.close(this.grgPointBySizeCoordinateFormat)},_setNumberRowsColumnsCheckBoxChanged:function(){this.setNumberRowsColumns.checked?
(this.grgAreaBySizeCellWidth.set("disabled",!0),this.grgAreaBySizeCellHeight.set("disabled",!0),this.cellHorizontal.set("disabled",!1),this.cellVertical.set("disabled",!1)):(this.cellHorizontal.set("disabled",!0),this.cellVertical.set("disabled",!0));this._clearLayers(!0)},_setNumberRowsColumnsTimeCheckBoxChanged:function(){this.setNumberRowsColumnsTime.checked?(this.grgPointByTimeCellWidth.set("disabled",!0),this.grgPointByTimeCellHeight.set("disabled",!0),this.grgPointByTimeCellHorizontal.set("disabled",
!1),this.grgPointByTimeCellVertical.set("disabled",!1)):(this.grgPointByTimeCellHorizontal.set("disabled",!0),this.grgPointByTimeCellVertical.set("disabled",!0),this.grgPointByTimeCellWidth.set("disabled",!1),this.grgPointByTimeCellHeight.set("disabled",!1));this._clearLayers(!0)},_grgAreaBySizeCreateGRGButtonClicked:function(){var u=new ua(4326);if(this._graphicsLayerGRGExtent.graphics[0]&&this.grgAreaBySizeCellWidth.isValid()&&this.grgAreaBySizeCellHeight.isValid()&&this.grgAreaBySizeRotation.isValid()){this._clearLayers(!1);
u=ea.isLoaded()?ea.project(this._graphicsLayerGRGExtent.graphics[0].geometry,u):this._graphicsLayerGRGExtent.graphics[0].geometry;var C=0===this.angle?ba.extentToPolygon(u.getExtent()):u;4326===C.spatialReference.wkid&&(C=U.geographicToWebMercator(C));if(this.geodesicGrid){var K=T.geodesicLength(new W({paths:[[[C.getPoint(0,0).x,C.getPoint(0,0).y],[C.getPoint(0,1).x,C.getPoint(0,1).y]]],spatialReference:C.spatialReference}),"meters");var N=T.geodesicLength(new W({paths:[[[C.getPoint(0,0).x,C.getPoint(0,
0).y],[C.getPoint(0,3).x,C.getPoint(0,3).y]]],spatialReference:C.spatialReference}),"meters")}else K=T.distance(C.getPoint(0,0),C.getPoint(0,1),"meters"),N=T.distance(C.getPoint(0,0),C.getPoint(0,3),"meters");u=this.util.convertToMeters(this.grgAreaBySizeCellWidth.value,this._cellUnits);var M=this.util.convertToMeters(this.grgAreaBySizeCellHeight.value,this._cellUnits);K=Math.round(K/u);N="default"===this._cellShape?Math.round(N/M):Math.round(N/u/Math.cos(30*Math.PI/180))+1;aa.checkGridSize(K,N)?
(C=C.getCentroid(),u=aa.createGRG(K,N,C,u,M,this.angle,this._labelStartPosition,this._labelType,this._labelDirection,this._cellShape,"center",this.geodesicGrid,this.map,ea),this.GRGArea.applyEdits(u,null,null),this.map.setExtent(this._graphicsLayerGRGExtent.graphics[0].geometry.getExtent().expand(2),!1),this._graphicsLayerGRGExtent.clear(),this._showPanel("publishPage")):new n({message:this.nls.tooManyCellsErrorMessage})}},_grgPointBySizeCreateGRGButtonClicked:function(){if(!v.contains(this.grgPointBySizeCreateGRGButton,
"jimu-state-disabled"))if(this.grgPointBySizeCellWidth.isValid()&&this.grgPointBySizeCellHeight.isValid()&&this.gridAnglePoint.isValid()){var u=U.geographicToWebMercator(this.grgPointBySizeCoordTool.getMapCoordinateDD()),C=this.util.convertToMeters(this.grgPointBySizeCellWidth.value,this._cellUnits),K=this.util.convertToMeters(this.grgPointBySizeCellHeight.value,this._cellUnits);this.geodesicGrid=2E4>C&&(2E4>K&&"hexagon"!==this._cellShape||"hexagon"===this._cellShape)?!0:!1;if(aa.checkGridSize(this.grgPointBySizeCellHorizontal.value,
this.grgPointBySizeCellVertical.value)){u=aa.createGRG(this.grgPointBySizeCellHorizontal.value,this.grgPointBySizeCellVertical.value,u,C,K,this.gridAnglePoint.value,this._labelStartPosition,this._labelType,this._labelDirection,this._cellShape,this._gridOrigin,this.geodesicGrid,this.map,ea);this.GRGArea.applyEdits(u,null,null);C=[];for(K=0;K<u.length;K++)C.push(u[K].geometry);u=T.union(C);this.map.setExtent(u.getExtent().expand(2),!1);this._showPanel("publishPage")}else new n({message:this.nls.tooManyCellsErrorMessage})}else new n({message:this.nls.missingParametersMessage})},
_grgPointByTimeCreateGRGButtonClicked:function(){if(!v.contains(this.grgPointByTimeCreateGRGButton,"jimu-state-disabled"))if(this.grgPointByTimeTime.isValid()&&this.grgPointByTimeRate.isValid()&&this.grgPointByTimeRotation.isValid()){var u=this.grgPointByTimeTime.get("value")*this.grgPointByTimeTimeUnits.get("value");var C=this.grgPointByTimeRate.get("value")*this.grgPointByTimeRateUnits.value.split(";")[0]/this.grgPointByTimeRateUnits.value.split(";")[1];C*=u;u=U.geographicToWebMercator(this.grgPointByTimeCoordTool.getMapCoordinateDD());
if(2E5>C){this.geodesicGrid=!0;var K=T.geodesicBuffer(u,C,9001);C=ba.extentToPolygon(K.getExtent());C=T.geodesicLength(new W({paths:[[[C.getPoint(0,0).x,C.getPoint(0,0).y],[C.getPoint(0,1).x,C.getPoint(0,1).y]]],spatialReference:C.spatialReference}),"meters")}else this.geodesicGrid=!1,K=T.buffer(u,C,9001),C=ba.extentToPolygon(K.getExtent()),C=T.distance(C.getPoint(0,0),C.getPoint(0,1),"meters");K=new Q(K,this._extentSym);this._graphicsLayerGRGTimeExtent.add(K);if(this.setNumberRowsColumnsTime.checked)if(this.grgPointByTimeCellHorizontal.isValid()&&
this.grgPointByTimeCellVertical.isValid()){K=C/this.grgPointByTimeCellHorizontal.value;var N=C/this.grgPointByTimeCellVertical.value}else{new n({message:this.nls.invalidHorizontalVerticalParametersMessage});return}else if(this.grgPointByTimeCellWidth.isValid()&&this.grgPointByTimeCellHeight.isValid())K=this.util.convertToMeters(this.grgPointByTimeCellWidth.value,this._cellUnits),N=this.util.convertToMeters(this.grgPointByTimeCellHeight.value,this._cellUnits);else{new n({message:this.nls.invalidWidthHeightParametersMessage});
return}var M=Math.round(C/K);C="default"===this._cellShape?Math.round(C/N):Math.round(C/K/Math.cos(30*Math.PI/180))+1;1>M&&(M=1);1>C&&(C=1);if(aa.checkGridSize(M,C)){u=aa.createGRG(M,C,u,K,N,this.grgPointByTimeRotation.value,this._labelStartPosition,this._labelType,this._labelDirection,this._cellShape,this._gridOrigin,this.geodesicGrid,this.map,ea);this.GRGArea.applyEdits(u,null,null);C=[];for(K=0;K<u.length;K++)C.push(u[K].geometry);u=T.union(C);this.map.setExtent(u.getExtent().expand(2),!1);this._showPanel("publishPage")}else new n({message:this.nls.tooManyCellsErrorMessage})}else new n({message:this.nls.missingOriginParametersMessage})},
_grgPointByRefSystemCreateGRGButtonClicked:function(){if(!v.contains(this.grgPointByRefSystemCreateGRGButton,"jimu-state-disabled")){var u=[];var C=this.grgPointByRefSystemCoordTool.getMapCoordinateDD();this._clearLayers(!1);if(aa.checkGridSize(this.grgPointByRefCellHorizontal.getValue(),this.grgPointByRefCellVertical.getValue())){if(this.grgPointByRefCellHorizontal.isValid()&&this.grgPointByRefCellVertical.isValid()){switch(this.grgPointByRefSystemGridSize.getValue()){case "UTM":var K=0>C.x?C.x-
C.x%6-6:C.x-C.x%6;var N=0>C.y?C.y-C.y%8-8:C.y-C.y%8;break;case "100000":var M=ia.LLtoMGRS(C.y,C.x,5);M=M.substring(0,M.length-10);M+="0000000000";break;case "10000":M=ia.LLtoMGRS(C.y,C.x,1);break;case "1000":M=ia.LLtoMGRS(C.y,C.x,2);break;case "100":M=ia.LLtoMGRS(C.y,C.x,3);break;case "10":M=ia.LLtoMGRS(C.y,C.x,4)}if("UTM"===this.grgPointByRefSystemGridSize.getValue())M=new Y(K,N),K=6*this.grgPointByRefCellHorizontal.getValue(),C=8*this.grgPointByRefCellVertical.getValue(),N=new X({xmin:M.x,ymin:M.y,
xmax:M.x+K,ymax:M.y+C,spatialReference:{wkid:4326}});else{M=ia.USNGtoPoint(M);if(isNaN(M.x)||isNaN(M.y)){new n({message:this.nls.grgPolarOriginError});return}K=this.util.convertToMeters(this.grgPointByRefSystemGridSize.getValue(),this._cellUnits)*this.grgPointByRefCellHorizontal.getValue();C=this.util.convertToMeters(this.grgPointByRefSystemGridSize.getValue(),this._cellUnits)*this.grgPointByRefCellVertical.getValue();K=ja.getDestinationPoint(M,90,K);K=ja.getDestinationPoint(K,0,C);C=this.util.convertToMeters(this.grgPointByRefSystemGridSize.getValue(),
this._cellUnits)/5;M=ja.getDestinationPoint(M,45,C);K=ja.getDestinationPoint(K,225,C);N=new X({xmin:M.x,ymin:M.y,xmax:K.x,ymax:K.y,spatialReference:{wkid:4326}})}aa.checkPolarRegion(N)&&new n({message:this.nls.grgPolarRegionError});N=U.geographicToWebMercator(N);K=la.zonesFromExtent(N,this.map);M=[];switch(this.grgPointByRefSystemGridSize.getValue()){case "UTM":for(C=0;C<K.length;C++){N=ea.isLoaded()?new Q(ea.project(K[C].gridPolygon.unclippedPolygon,this.map.spatialReference)):4326!==this.map.spatialReference.wkid?
new Q(U.geographicToWebMercator(K[C].gridPolygon.unclippedPolygon)):new Q(K[C].gridPolygon.unclippedPolygon);var R=this.grgPointByRefLabelFormat.value;if("UTM"===this._referenceSystem){var S=ia.LLtoUTM(K[C].nonPolarGridZone.extent.ymin,K[C].nonPolarGridZone.extent.xmin,K[C].utmZone)[3];S.s=S.s.trim();R=R.replace(/S/,S.s[S.s.length-1]);R=R.replace(/Z/,S.z)}else R=R.replace(/Z/,K[C].gridPolygon.text);N.setAttributes({grid:R});M.push(N);u.push(N.geometry)}break;default:K=la.processZonePolygons(K,this.map,
N);for(R=1E4;R>=this.grgPointByRefSystemGridSize.getValue();){S=[];for(C=0;C<K.length;C++)S=S.concat(la.handleGridSquares(K[C],this.map,R,N));K=[];K=S;R/=10}for(C=0;C<K.length;C++)N=ea.isLoaded()?new Q(ea.project(K[C].clippedPolyToUTMZone,this.map.spatialReference)):this.grgAreaByRefSystemClipToggle.checked?4326!==this.map.spatialReference.wkid?new Q(K[C].clippedPolygon):new Q(U.webMercatorToGeographic(K[C].clippedPolygon)):4326!==this.map.spatialReference.wkid?new Q(K[C].clippedPolyToUTMZone):new Q(U.webMercatorToGeographic(K[C].clippedPolyToUTMZone)),
"gridReferenceSystem"===this._labelTypeWithRefSys&&(R=this.grgPointByRefLabelFormat.value,"UTM"===this._referenceSystem?(S=ea.project(N.geometry.getExtent(),new ua(4326)),S=ia.LLtoUTM(S.ymin,S.xmin,K[C].utmZone)[3],S.s=S.s.trim(),R=R.replace(/Y/,S.y),R=R.replace(/X/,S.x),R=R.replace(/S/,S.s[S.s.length-1]),R=R.replace(/Z/,S.z)):(R=R.replace(/Y/,K[C].y),R=R.replace(/X/,K[C].x),R=R.replace(/S/,K[C].GZD),R=R.replace(/Z/,K[C].utmZone+K[C].latitudeZone)),N.setAttributes({grid:R}),M.push(N)),u.push(N.geometry)}M=
this._trimProcessZonesPolygons(M,this.grgPointByRefCellHorizontal.getValue(),this.grgPointByRefCellVertical.getValue());0<u.length&&(C=T.union(u),this.map.setExtent(C.getExtent().expand(2),!1));"gridReferenceSystem"!==this._labelTypeWithRefSys&&(M=aa.labelReferenceGrid(u,this._labelTypeWithRefSys,this._labelStartPosition,this.grgPointByRefSystemGridSize.getValue()));this.GRGArea.applyEdits(M,null,null);this._graphicsLayerGRGExtent.hide();this._showPanel("publishPage")}}else new n({message:this.nls.tooManyCellsErrorMessage})}},
_trimProcessZonesPolygons:function(u,C,K){function N(oa,ra){for(var ta=null,ka=0;ka<u.length;ka++)if(!T.equals(oa.geometry,u[ka].geometry)&&T.intersects(oa.geometry,u[ka].geometry)){var qa=ja.getRotationAngleBetweenPoints(oa.geometry.getCentroid(),u[ka].geometry.getCentroid());if(ra){if(80<=qa&&100>=qa){ta=u[ka];break}}else if(350<=qa||10>=qa){ta=u[ka];break}}return ta}for(var M=u[0],R=N(M,!0),S=1,na=[];R;)S===C&&na.push(R),R=N(R,!0),S++;S=1;H.forEach(na,function(oa){for(R=N(oa,!1);R;)na.push(R),
R=N(R,!1),S++},this);R=N(M,!1);S=1;for(C=na.length;R;)S===K&&na.push(R),R=N(R,!1),S++;na.length>C&&H.forEach(na.slice(C,na.length),function(oa){for(R=N(oa,!0);R;)na.push(R),R=N(R,!0)},this);K=[];for(C=u.length-1;0<=C;C--)for(M=0;M<na.length;M++)u[C]&&u[C].hasOwnProperty("geometry")&&na[M]&&na[M].hasOwnProperty("geometry")&&T.equals(u[C].geometry,na[M].geometry)&&K.push(C);K.forEach(function(oa){u.splice(oa,1)});return u},_grgAreaByRefSystemCreateGRGButtonClicked:function(){if(this._graphicsLayerGRGExtent.graphics[0]){var u=
ea.isLoaded()?ea.project(this._graphicsLayerGRGExtent.graphics[0].geometry,new ua(4326)):this._graphicsLayerGRGExtent.graphics[0].geometry;var C=parseInt(this._graphicsLayerGRGExtent.graphics[0].geometry.getExtent().getWidth(),10)/this.grgAreaByRefSystemGridSize.getValue(),K=parseInt(this._graphicsLayerGRGExtent.graphics[0].geometry.getExtent().getHeight(),10)/this.grgAreaByRefSystemGridSize.getValue();if(aa.checkGridSize(C,K)||"UTM"===this.grgAreaByRefSystemGridSize.getValue()){4326!==this.map.spatialReference.wkid?
aa.checkPolarRegion(U.webMercatorToGeographic(this._graphicsLayerGRGExtent.graphics[0].geometry))&&new n({message:this.nls.grgPolarRegionError}):aa.checkPolarRegion(this._graphicsLayerGRGExtent.graphics[0].geometry)&&new n({message:this.nls.grgPolarRegionError});C=[];this._clearLayers(!1);var N=la.zonesFromExtent(u.getExtent(),this.map);K=[];switch(this.grgAreaByRefSystemGridSize.getValue()){case "UTM":for(S=0;S<N.length;S++){u=this.grgAreaByRefSystemClipToggle.checked?new Q(ea.isLoaded()?ea.project(N[S].gridPolygon.clippedPolygon,
this.map.spatialReference):N[S].gridPolygon.clippedPolygon):new Q(ea.isLoaded()?ea.project(N[S].gridPolygon.unclippedPolygon,this.map.spatialReference):N[S].gridPolygon.unclippedPolygon);C.push(u.geometry);var M=this.grgAreaByRefLabelFormat.value;if("UTM"===this._referenceSystem){var R=ia.LLtoUTM(N[S].nonPolarGridZone.extent.ymin,N[S].nonPolarGridZone.extent.xmin,N[S].utmZone)[3];R.s=R.s.trim();M=M.replace(/S/,R.s[R.s.length-1]);M=M.replace(/Z/,R.z)}else M=M.replace(/Z/,N[S].gridPolygon.text);u.setAttributes({grid:M});
K.push(u)}break;default:N=la.processZonePolygons(N,this.map,u.getExtent());for(M=1E4;M>=this.grgAreaByRefSystemGridSize.getValue();){R=[];for(S=0;S<N.length;S++)R=R.concat(la.handleGridSquares(N[S],this.map,M,u.getExtent()));N=[];N=R;M/=10}for(var S=0;S<N.length;S++)u=this.grgAreaByRefSystemClipToggle.checked?ea.isLoaded()?new Q(ea.project(N[S].clippedPolygon,this.map.spatialReference)):new Q(4326!==this.map.spatialReference.wkid?N[S].clippedPolygon:U.webMercatorToGeographic(N[S].clippedPolygon)):
ea.isLoaded()?new Q(ea.project(N[S].clippedPolyToUTMZone,this.map.spatialReference)):new Q(4326!==this.map.spatialReference.wkid?N[S].clippedPolyToUTMZone:U.webMercatorToGeographic(N[S].clippedPolyToUTMZone)),C.push(u.geometry),"gridReferenceSystem"===this._labelTypeWithRefSys&&(M=this.grgAreaByRefLabelFormat.value,"UTM"===this._referenceSystem?(R=ea.project(u.geometry.getExtent(),new ua(4326)),R=ia.LLtoUTM(R.ymin,R.xmin,N[S].utmZone)[3],R.s=R.s.trim(),M=M.replace(/Y/,R.y),M=M.replace(/X/,R.x),M=
M.replace(/S/,R.s[R.s.length-1]),M=M.replace(/Z/,R.z)):(M=M.replace(/Y/,N[S].y),M=M.replace(/X/,N[S].x),M=M.replace(/S/,N[S].GZD),M=M.replace(/Z/,N[S].utmZone+N[S].latitudeZone)),u.setAttributes({grid:M}),K.push(u))}0<C.length&&(S=T.union(C),this.map.setExtent(S.getExtent().expand(2),!1));"gridReferenceSystem"!==this._labelTypeWithRefSys&&(K=aa.labelReferenceGrid(C,this._labelTypeWithRefSys,this._labelStartPosition,this.grgAreaByRefSystemGridSize.getValue()));this.GRGArea.applyEdits(K,null,null);
this._graphicsLayerGRGExtent.hide();this._showPanel("publishPage")}else new n({message:this.nls.tooManyCellsErrorMessage})}},createGraphicDeleteMenu:function(){var u,C=new d({});C.addChild(new e({label:this.nls.deleteBtn,onClick:b.hitch(this,function(){this.GRGArea.remove(u);this.GRGArea.refresh()})}));C.startup();this.own(this.GRGArea.on("mouse-over",function(K){u=K.graphic;C.bindDomNode(K.graphic.getDojoShape().getNode())}));this.own(this.GRGArea.on("mouse-out",function(K){C.unBindDomNode(K.graphic.getDojoShape().getNode())}))},
_removeStyleFile:function(u,C){var K=null;K="js"===C?"src":"css"===C?"href":"none";C=document.getElementsByTagName("js"===C?"script":"css"===C?"link":"none");for(var N=C.length;0<=N;N--)C[N]&&null!==C[N].getAttribute(K)&&-1!==C[N].getAttribute(K).indexOf(u)&&C[N].parentNode.removeChild(C[N])},_setTheme:function(){"DartTheme"===this.appConfig.theme.name?y.loadStyleLink("darkOverrideCSS",this.folderUrl+"css/dartTheme.css",null):this._removeStyleFile(this.folderUrl+"css/dartTheme.css","css");"DashboardTheme"===
this.appConfig.theme.name&&"default"===this.appConfig.theme.styles[0]?y.loadStyleLink("darkDashboardOverrideCSS",this.folderUrl+"css/dashboardTheme.css",null):this._removeStyleFile(this.folderUrl+"css/dashboardTheme.css","css")},destroy:function(){this.inherited(arguments);this.map.removeLayer(this._graphicsLayerGRGExtent);this.map.removeLayer(this.GRGArea)},_initSaveToPortal:function(u){var C=u.name;(new I.Portal(this.appConfig.portalUrl)).signIn().then(b.hitch(this,function(K){var N=K.credential.token,
M=K.orgId,R=K.username;if("org_user"===K.role)this.publishMessage.innerHTML=y.sanitizeHTML(this.nls.createService.format(this.nls.userRole)),this._updateLastFocusNode();else if(u.url){K=new ha(u.url+"?token\x3d"+N,{id:u.name,outFields:["*"]});K._wabProperties={itemLayerInfo:{portalUrl:this.appConfig.portalUrl,itemId:u.itemId}};var S=[];H.forEach(this.GRGArea.graphics,function(oa){S.push(new Q(oa.geometry,null,{grid:oa.attributes.grid}))},this);K.applyEdits(S,null,null).then(b.hitch(this,function(){this._reset()})).otherwise(b.hitch(this,
function(){this._reset()}));p.publish("moveMap",!1);this.publishMessage.innerHTML=this.nls.successfullyPublished.format('\x3cbr /\x3e\x3ca role\x3d"link" tabindex\x3d"0" aria-label\x3d"'+this.nls.successfullyPublished+'" href\x3d"'+this.appConfig.portalUrl+"home/item.html?id\x3d"+u.serviceItemId+'" target\x3d"_blank"\x3e')+"\x3c/a\x3e";this._updateLastFocusNode()}else{var na=this.appConfig.portalUrl+"sharing/content/users/"+R+"/createService";aa.isNameAvailable(this.appConfig.portalUrl+"sharing/rest/portals/"+
M+"/isServiceNameAvailable",N,C).then(b.hitch(this,function(oa){oa.available?(this.busyIndicator.show(),aa.createFeatureService(na,N,aa.getFeatureServiceParams(C,this.map)).then(b.hitch(this,function(ra){if(ra.success){var ta=ra.serviceurl.replace(/rest/g,"rest/admin")+"/addToDefinition";aa.addDefinitionToService(ta,N,aa.getLayerParams(C,this.map,this._cellTextSymbol,this._GRGAreaFillSymbol)).then(b.hitch(this,function(ka){if(ka.success){ka=new ha(ra.serviceurl+"/0?token\x3d"+N,{id:C,outFields:["*"]});
ka._wabProperties={itemLayerInfo:{portalUrl:this.appConfig.portalUrl,itemId:ra.itemId}};this.map.addLayer(ka);if(ka.loaded){var qa=m.getInstanceSync().getLayerInfoById(C);qa.enablePopup();this._showLabels&&qa.showLabels()}else ka.on("load",b.hitch(this,function(){qa=m.getInstanceSync().getLayerInfoById(C);qa.enablePopup();this._showLabels&&qa.showLabels()}));var va=[];H.forEach(this.GRGArea.graphics,function(wa){va.push(new Q(wa.geometry,null,{grid:wa.attributes.grid}))},this);ka.applyEdits(va,null,
null).then(b.hitch(this,function(){this._reset()})).otherwise(b.hitch(this,function(){this._reset()}));this.busyIndicator.hide();this.publishMessage.innerHTML=this.nls.successfullyPublished.format('\x3cbr /\x3e\x3ca role\x3d"link" tabindex\x3d"0" aria-label\x3d"'+this.nls.successfullyPublished+'" href\x3d"'+this.appConfig.portalUrl+"home/item.html?id\x3d"+ra.itemId+'" target\x3d"_blank"\x3e')+"\x3c/a\x3e";this._updateLastFocusNode()}}),b.hitch(this,function(ka){this.busyIndicator.hide();this.publishMessage.innerHTML=
y.sanitizeHTML(this.nls.addToDefinition.format(ka.message));this._updateLastFocusNode()}))}else this.busyIndicator.hide(),this.publishMessage.innerHTML=y.sanitizeHTML(this.nls.unableToCreate.format(C)),this._updateLastFocusNode()}),b.hitch(this,function(ra){this.busyIndicator.hide();this.publishMessage.innerHTML=y.sanitizeHTML(this.nls.createService.format(ra.message));this._updateLastFocusNode()}))):(this.busyIndicator.hide(),this.publishMessage.innerHTML=this.nls.layerNameExists);this._updateLastFocusNode()}))}}),
b.hitch(this,function(K){this.publishMessage.innerHTML="ERROR: Error in opening workspace"===K.message?this.nls.publishWorskpaceError:K.message;this._updateLastFocusNode()}))},_supportAccessibility:function(){"mainPage"===this._currentOpenPanel?(y.initFirstFocusNode(this.domNode,this.newGRGAreaButton),y.initLastFocusNode(this.domNode,this.newGRGPointButton)):"grgAreaBySize"===this._currentOpenPanel?this._setFirstAndLastFocusNode(this.grgAreaBySizePanelBackButton,this.grgAreaBySizeClearGRGButton):
"grgAreaByRefSystem"===this._currentOpenPanel?this._setFirstAndLastFocusNode(this.grgAreaByRefSystemPanelBackButton,this.grgAreaByRefSystemClearGRGButton):"grgPointBySize"===this._currentOpenPanel?this._setFirstAndLastFocusNode(this.grgPointBySizePanelBackButton,this.grgPointBySizeClearGRGButton):"grgPointByRefSystem"===this._currentOpenPanel?this._setFirstAndLastFocusNode(this.grgPointByRefSystemPanelBackButton,this.grgPointByRefSystemClearGRGButton):"grgPointByTime"===this._currentOpenPanel?this._setFirstAndLastFocusNode(this.grgPointByTimeBackButton,
this.grgPointByTimeClearGRGButton):"publishPage"===this._currentOpenPanel?this._setFirstAndLastFocusNode(this.publishPanelBackButton,this.grgAreaBySizePublishGRGButton):"settingsPage"===this._currentOpenPanel&&(y.initFirstFocusNode(this.domNode,this.gridSettingsPanelBackButton),this._checkGridSettingTabSelected(),this._updateLastFocusNode())},_updateLastFocusNode:function(){if("publishPage"===this._currentOpenPanel){y.initLastFocusNode(this.domNode,this.grgAreaBySizePublishGRGButton);var u=c("a",
this.publishMessage)[0];""!==this.publishMessage.innerHTML&&u&&(y.initLastFocusNode(this.domNode,this.publishMessage),fa.focus(u))}else"settingsPage"===this._currentOpenPanel?this._checkGridSettingTabSelected()?("grgPointByRefSystem"===this._lastOpenPanel||"grgAreaByRefSystem"===this._lastOpenPanel?fa.focus(this._gridSettingsInstance.referenceSystem.domNode):fa.focus(this._gridSettingsInstance.cellShape.domNode),y.initLastFocusNode(this.domNode,this._gridSettingsInstance.gridFillColorPicker.spinner.domNode)):
(fa.focus(this._gridSettingsInstance.labelStartPosition.domNode),y.initLastFocusNode(this.domNode,this._gridSettingsInstance.fontSetting.showHalo.domNode)):"mainPage"===this._currentOpenPanel&&y.initLastFocusNode(this.domNode,this.newPointGRGFromTimeButton)},_checkGridSettingTabSelected:function(){return"none"===l.get(this._gridSettingsInstance.gridTab,"display")?!1:!0},_moveMap:function(){var u=this.map.spatialReference,C=new X;C.xmin=this.map.extent.xmin+1E-4;C.ymin=this.map.extent.ymin;C.xmax=
this.map.extent.xmax;C.ymax=this.map.extent.ymax;C.spatialReference=u;this.map.setExtent(C)},_setFirstAndLastFocusNode:function(u,C){y.initFirstFocusNode(this.domNode,u);fa.focus(u);y.initLastFocusNode(this.domNode,C)},_toggleGrgPointCreateGRGButton:function(){"grgPointBySize"===this._currentOpenPanel&&(this.grgPointBySizeCoordTool.getMapCoordinateDD()?(v.remove(this.grgPointBySizeCreateGRGButton,"jimu-state-disabled"),ma.set(this.grgPointBySizeCreateGRGButton,"tabindex",0)):(v.add(this.grgPointBySizeCreateGRGButton,
"jimu-state-disabled"),ma.set(this.grgPointBySizeCreateGRGButton,"tabindex",-1)));"grgPointByRefSystem"===this._currentOpenPanel&&(this.grgPointByRefSystemCoordTool.getMapCoordinateDD()?(v.remove(this.grgPointByRefSystemCreateGRGButton,"jimu-state-disabled"),ma.set(this.grgPointByRefSystemCreateGRGButton,"tabindex",0)):(v.add(this.grgPointByRefSystemCreateGRGButton,"jimu-state-disabled"),ma.set(this.grgPointByRefSystemCreateGRGButton,"tabindex",-1)));"grgPointByTime"===this._currentOpenPanel&&(this.grgPointByTimeCoordTool.getMapCoordinateDD()?
(v.remove(this.grgPointByTimeCreateGRGButton,"jimu-state-disabled"),ma.set(this.grgPointByTimeCreateGRGButton,"tabindex",0)):(v.add(this.grgPointByTimeCreateGRGButton,"jimu-state-disabled"),ma.set(this.grgPointByTimeCreateGRGButton,"tabindex",-1)))},_onDrawCompleteToggleCreateGRGButton:function(){setTimeout(b.hitch(this,function(){this._toggleGrgPointCreateGRGButton()}),500)},_updateLabelFormat:function(u,C){switch(u.getValue()){case "UTM":C.value="UTM"===this._referenceSystem?"ZS":"Z";break;case "100000":C.value=
"UTM"===this._referenceSystem?"ZSXY":"ZS";break;default:C.value="ZSXY"}}})});