// 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/GpSource":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./templates/GpSource.html dojo/_base/lang dojo/_base/html dojo/on dojo/Evented jimu/dijit/GpChooserFromPortal jimu/dijit/_GpServiceChooserContent jimu/portalUrlUtils dijit/form/RadioButton".split(" "),function(w,F,L,I,E,a,b,d,g,f,m,h){var p=0;return w([F,L,I,g],{templateString:E,baseClass:"jimu-gp-source",declaredClass:"jimu.dijit.GpSource",nls:null,
multiple:!1,portalUrl:null,uniqueID:null,mode:null,constructor:function(){this.inherited(arguments);this.uniqueID=++p},postMixInProperties:function(){this.nls=window.jimuNls.gpSource;this.portalUrl=h.getStandardPortalUrl(this.portalUrl)},postCreate:function(){this.inherited(arguments);this._initSelf()},getSelectedItems:function(){var u=[];this.portalRadio.checked?u=this.gpcPortal.getSelectedItems():this.urlRadio.checked&&(u=this.gpcUrl.getSelectedItems());return u},startup:function(){this._started||
(this.inherited(arguments),this.gpcPortal.startup(),this.gpcUrl.startup());this._started=!0},_initSelf:function(){this._initRadios();this._createGpChooserFromPortal();this._createGpServiceChooserContent();this._onRadioClicked("url");this.own(d(this.urlRadio,"click",a.hitch(this,function(){this._onRadioClicked("url")})));this.own(d(this.portalRadio,"click",a.hitch(this,function(){this._onRadioClicked("portal")})))},_createGpChooserFromPortal:function(){this.gpcPortal=new f({multiple:this.multiple,
portalUrl:this.portalUrl,style:{width:"100%",height:"100%"}});this.gpcPortal.operationTip=this.nls.chooseItem;this.gpcPortal.placeAt(this.hflcContainer);this.own(d(this.gpcPortal,"next",a.hitch(this,function(){this.gpcPortal.operationTip=this.nls.chooseItem+" -\x3e "+this.nls.chooseTask;this._updateOperationTip()})));this.own(d(this.gpcPortal,"back",a.hitch(this,function(){this.gpcPortal.operationTip=this.nls.chooseItem;this._updateOperationTip()})));this.own(d(this.gpcPortal,"ok",a.hitch(this,function(u){u&&
0<u.length&&this.emit("ok",u)})));this.own(d(this.gpcPortal,"cancel",a.hitch(this,function(){this.emit("cancel")})));0<=(this.portalUrl||"").toLowerCase().indexOf(".arcgis.com")?this.portalLabel.innerHTML=this.nls.selectFromOnline:this.portalLabel.innerHTML=this.nls.selectFromPortal},_createGpServiceChooserContent:function(){this.gpcUrl=new m({multiple:this.multiple,style:{width:"100%",height:"100%"}});this.gpcUrl.operationTip=this.nls.setServiceUrl;this.gpcUrl.placeAt(this.flscContainer);this.own(d(this.gpcUrl,
"ok",a.hitch(this,function(u){u&&0<u.length&&this.emit("ok",u)})));this.own(d(this.gpcUrl,"cancel",a.hitch(this,function(){this.emit("cancel")})))},_initRadios:function(){var u="gpSourceRadios_"+this._getRandomString();this.portalRadio.name=u;b.setAttr(this.portalRadio,"id","portalRadio_"+this._getRandomString());b.setAttr(this.portalLabel,"for",this.portalRadio.id);this.urlRadio.name=u;b.setAttr(this.urlRadio,"id","urlRadio_"+this._getRandomString());b.setAttr(this.urlLabel,"for",this.urlRadio.id)},
_getRandomString:function(){var u=Math.random().toString();return u=u.slice(2,u.length)},_onRadioClicked:function(u){this.mode!==u&&(this.mode=u,"portal"===u?(this.portalRadio.set("checked",!0),this.urlRadio.set("checked",!1),b.setStyle(this.hflcContainer,"display","block"),b.setStyle(this.flscContainer,"display","none"),this.operationTip.innerHTML=this.nls.chooseItem):"url"===u&&(this.portalRadio.set("checked",!1),this.urlRadio.set("checked",!0),b.setStyle(this.hflcContainer,"display","none"),b.setStyle(this.flscContainer,
"display","block"),this.operationTip.innerHTML=this.nls.setServiceUrl,setTimeout(a.hitch(this,function(){this.gpcUrl.focusInput()}),50)),this._updateOperationTip())},_updateOperationTip:function(){if(this.portalRadio.checked){this.operationTip.innerHTML=this.gpcPortal.operationTip;var u=this.gpcPortal.browserContainer;u.style.top=0;var G=this.operationTip.clientHeight;19<=G&&(u.style.top=G-19+"px")}else this.urlRadio.checked&&(this.operationTip.innerHTML=this.gpcUrl.operationTip)}})})},"jimu/dijit/GpChooserFromPortal":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./templates/GpChooserFromPortal.html dojo/_base/lang dojo/_base/html dojo/_base/array dojo/on dojo/query dojo/Deferred dojo/Evented dojo/promise/all jimu/dijit/ItemSelector jimu/dijit/GpServiceBrowser jimu/portalUrlUtils esri/request".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l){return w([F,L,I,h],{templateString:E,declaredClass:"jimu.dijit.GpChooserFromPortal",baseClass:"jimu-gp-chooser-from-portal",_serviceDef:null,portalUrl:null,multiple:!1,postMixInProperties:function(){this.nls=a.mixin({},window.jimuNls.common);this.portalUrl=e.getStandardPortalUrl(this.portalUrl)},postCreate:function(){this.inherited(arguments);this._initSelf()},getSelectedItems:function(){return this.gpServiceBrowser.getSelectedItems()},_initSelf:function(){this.selector=
new u({portalUrl:this.portalUrl,itemTypes:["Geoprocessing Service"],onlyShowOnlineFeaturedItems:!1});this.own(g(this.selector,"item-selected",a.hitch(this,this._onItemSelected)));this.own(g(this.selector,"none-item-selected",a.hitch(this,this._onNoneItemSelected)));this.selector.placeAt(this.selectorContainer);this.selector.startup();this.gpServiceBrowser._onTreeClick=a.hitch(this,this._onBrowserClicked)},_onItemSelected:function(){b.removeClass(this.btnNext,"jimu-state-disabled")},_onNoneItemSelected:function(){b.addClass(this.btnNext,
"jimu-state-disabled")},_onBtnBackClicked:function(){this._serviceDef&&!this._serviceDef.isFulfilled()&&this._serviceDef.cancel();b.setStyle(this.btnOk,"display","none");b.setStyle(this.btnNext,"display","block");b.setStyle(this.btnBack,"display","none");b.addClass(this.btnOk,"jimu-state-disabled");b.setStyle(this.selectorContainer,"display","block");b.setStyle(this.browserContainer,"display","none");this._reset();this.emit("back")},_onBtnOkClicked:function(){var y=this.getSelectedItems();0<y.length&&
this.emit("ok",y)},_onBtnNextClicked:function(){var y=this.selector.getSelectedItem();y&&(this._reset(),b.setStyle(this.btnNext,"display","none"),b.setStyle(this.btnBack,"display","block"),b.setStyle(this.btnOk,"display","block"),b.addClass(this.btnOk,"jimu-state-disabled"),b.setStyle(this.selectorContainer,"display","none"),b.setStyle(this.browserContainer,"display","block"),this.gpServiceBrowser.setUrl(y.url||y.item).then(a.hitch(this,function(){0<this.getSelectedItems().length&&b.removeClass(this.btnOk,
"jimu-state-disabled")})),this.emit("next"))},_reset:function(){this.gpServiceBrowser.reset()},_onBrowserClicked:function(){0<this.gpServiceBrowser.getSelectedItems().length?b.removeClass(this.btnOk,"jimu-state-disabled"):b.addClass(this.btnOk,"jimu-state-disabled")},_onBtnCancelClicked:function(){this.emit("cancel")}})})},"jimu/dijit/ItemSelector":function(){define("dojo/_base/declare dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./templates/ItemSelector.html dojo/Evented dojo/_base/lang dojo/_base/config dojo/_base/array dojo/_base/html dojo/_base/Deferred dojo/promise/all dojo/query dojo/on dojo/dom-style jimu/utils jimu/portalUtils jimu/tokenUtils jimu/portalUrlUtils jimu/dijit/ViewStack jimu/dijit/Search jimu/dijit/TabContainer3 jimu/dijit/_ItemTable jimu/dijit/BindLabelPropsMixin dijit/form/RadioButton".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N,x){return w([L,I,E,x,b],{templateString:a,declaredClass:"jimu.dijit.ItemSelector",baseClass:"jimu-item-selector",tab:null,_user:null,_group:null,_allPublicPortalQuery:null,_filterPublicPortalQuery:null,_allPublicOnlineQuery:null,_filterPublicOnlineQuery:null,_allOrganizationQuery:null,_filterOrganizationQuery:null,_allMyContentQuery:null,_filterMyContentQuery:null,_allGroupQuery:null,_filterGroupQuery:null,_isPublicTabShow:!1,_signIn:!1,_itemTypeQueryString:"",
_typeKeywordQueryString:"",portalUrl:null,itemTypes:"",typeKeywords:"",showOnlineItems:!0,onlyShowOnlineFeaturedItems:!1,showMyContent:!0,showMyOrganization:!0,showMyGroups:!0,showPublic:!0,showOnlyEditableGroups:!1,postMixInProperties:function(){this.portalUrl=k.getStandardPortalUrl(this.portalUrl);this.showOnlineItems=!1===this.showOnlineItems?!1:!0;this.itemTypes&&0<this.itemTypes.length||(this.itemTypes=[]);this._itemTypes="";f.forEach(this.itemTypes,d.hitch(this,function(D,q){this._itemTypes+=
'"'+D+'"';q!==this.itemTypes.length-1&&(this._itemTypes+=",")}));this._itemTypes="["+this._itemTypes+"]";this.typeKeywords&&0<this.typeKeywords.length||(this.typeKeywords=[]);this._typeKeywords="";f.forEach(this.typeKeywords,d.hitch(this,function(D,q){this._typeKeywords+='"'+D+'"';q!==this.typeKeywords.length-1&&(this._typeKeywords+=",")}));this._typeKeywords="["+this._typeKeywords+"]";this.nls=window.jimuNls.itemSelector},postCreate:function(){this.inherited(arguments);var D=this._getPortalUrl();
this.portal=y.getPortal(D);this._initOptions();this._initSearchQuery();this._initTabs();this._initPortalRadio();this._initItemTables();this._initPublic();this._initPrivate();this._updateUIbySignIn()},_initOptions:function(){this._itemTypeQueryString=l.getItemQueryStringByTypes(this.itemTypes);this._typeKeywordQueryString=l.getItemQueryStringByTypeKeywords(this.typeKeywords)},_initTabs:function(){var D={title:this.nls.myContent,content:this.mycontentTabNode},q={title:this.nls.myOrganization,content:this.organizationTabNode},
z={title:this.nls.myGroup,content:this.groupTabNode},O={title:this.nls.publicMap,content:this.publicTabNode};e.set(this.mycontentTabNode,"display","none");e.set(this.organizationTabNode,"display","none");e.set(this.groupTabNode,"display","none");e.set(this.publicTabNode,"display","none");var v=[];this.showMyContent&&(v.push(D),e.set(this.mycontentTabNode,"display","block"));this.showMyOrganization&&(v.push(q),e.set(this.organizationTabNode,"display","block"));this.showMyGroups&&(v.push(z),e.set(this.groupTabNode,
"display","block"));this.showPublic&&(v.push(O),e.set(this.publicTabNode,"display","block"));this.tab=new r({tabs:v},this.tabNode);this.own(G(this.tab,"tabChanged",d.hitch(this,function(c){m.setStyle(this.signinSection,"display","none");c!==this.nls.publicMap?(this._isPublicTabShow=!1,this._updateUIbySignIn()):this._isPublicTabShow=!0})))},_updateUIbySignIn:function(){m.setStyle(this.signinSection,"display","none");var D=u(".organization-tab-content-main,.group-tab-content-main,.mycontent-tab-content-main",
this.domNode);B.userHaveSignInPortal(this._getPortalUrl())?D.style("display","block"):(D.style("display","none"),this._isPublicTabShow||m.setStyle(this.signinSection,"display","block"))},_initPortalRadio:function(){var D=this._getPortalUrl();D=k.getServerByUrl(D);this.portalPublicRaido.set("disabled",!1);this.onlinePublicRaido.set("disabled",!1);this.portalPublicRaido.set("checked",!0);var q=!1;k.isArcGIScom(D)?(q=!0,this.portalPublicLabel.innerHTML="ArcGIS.com"):(this.portalPublicLabel.innerHTML=
D,q=this.showOnlineItems?!1:!0);q&&(this.onlinePublicRaido.set("disabled",!0),m.setStyle(this.onlinePublicRaido,"display","none"),m.setStyle(this.onlinePublicLabel,"display","none"))},_initSearchQuery:function(){var D="esri_"+(g.locale&&g.locale.slice(0,2)||"en").toLowerCase(),q=f.filter("esri_he esri_fr esri_ja esri_nl esri_th esri_tr esri_nb esri_ro esri_it esri_pl esri_po esri_ru esri_pt esri_en esri_ar esri_et esri_es esri_ko esri_cs esri_da esri_zh esri_sv esri_lt esri_fi esri_lv esri_de esri_vi".split(" "),
d.hitch(this,function(O){return O!==D})),z="";f.forEach(q,d.hitch(this,function(O){z+=" -owner:"+O+" "}));q=" ";this.portal&&this.portal.user&&this.portal.user.orgId&&(q=" orgid:"+this.portal.user.orgId+" ");q=q+this._itemTypeQueryString+" AND access:public "+z+" "+this._typeKeywordQueryString;this._allPublicPortalQuery=this._getQuery({sortField:"numViews",sortOrder:"desc",q:q});this._filterPublicPortalQuery=this._getQuery({q:q,basicQ:q});this._allPublicOnlineQuery=this._getQuery({sortField:"numViews",
sortOrder:"desc",q:(this.onlyShowOnlineFeaturedItems?' (group:"c755678be14e4a0984af36a15f5b643e"  OR group:"b8787a74b4d74f7fb9b8fac918735153") ':" ")+this._itemTypeQueryString+" AND access:public "+this._typeKeywordQueryString});this._filterPublicOnlineQuery=this._getQuery({q:this._itemTypeQueryString+" AND access:public "+this._typeKeywordQueryString});this._allOrganizationQuery=this._getQuery();this._filterOrganizationQuery=this._getQuery();this._allMyContentQuery=this._getQuery();this._filterMyContentQuery=
this._getQuery();this._allGroupQuery=this._getQuery();this._filterGroupQuery=this._getQuery()},_getQuery:function(D){return d.mixin({start:1,num:16,f:"json"},D||{})},_getPortalUrl:function(){return k.getStandardPortalUrl(this.portalUrl)},_initItemTables:function(){"function"===typeof this.onCreateItemContent&&(this.mycontentItemTable.onCreateItemContent=this.onCreateItemContent,this.organizationItemTable.onCreateItemContent=this.onCreateItemContent,this.groupItemTable.onCreateItemContent=this.onCreateItemContent,
this.publicPortalItemTable.onCreateItemContent=this.onCreateItemContent,this.publicOnlineItemTable.onCreateItemContent=this.onCreateItemContent);this.own(G(this.publicPortalItemTable,"item-dom-clicked",d.hitch(this,this._onItemDomClicked)));this.own(G(this.publicOnlineItemTable,"item-dom-clicked",d.hitch(this,this._onItemDomClicked)));this.own(G(this.organizationItemTable,"item-dom-clicked",d.hitch(this,this._onItemDomClicked)));this.own(G(this.groupItemTable,"item-dom-clicked",d.hitch(this,this._onItemDomClicked)));
this.own(G(this.mycontentItemTable,"item-dom-clicked",d.hitch(this,this._onItemDomClicked)));this.own(G(this.publicPortalItemTable,"update",d.hitch(this,this._onItemTableUpdate)));this.own(G(this.publicOnlineItemTable,"update",d.hitch(this,this._onItemTableUpdate)));this.own(G(this.organizationItemTable,"update",d.hitch(this,this._onItemTableUpdate)));this.own(G(this.groupItemTable,"update",d.hitch(this,this._onItemTableUpdate)));this.own(G(this.mycontentItemTable,"update",d.hitch(this,this._onItemTableUpdate)));
var D=this._getPortalUrl();this.portalPublicRaido.get("disabled")||(this.publicPortalItemTable.set("portalUrl",D),this.publicPortalItemTable.searchAllItems(this._allPublicPortalQuery),this.publicPortalItemTable.set("filteredQuery",this._filterPublicPortalQuery));this.onlinePublicRaido.get("disabled")||(this.publicOnlineItemTable.set("portalUrl",window.location.protocol+"//www.arcgis.com"),this.publicOnlineItemTable.searchAllItems(this._allPublicOnlineQuery),this.publicOnlineItemTable.set("filteredQuery",
this._filterPublicOnlineQuery))},_initPublic:function(){this.own(G(this.portalPublicRaido,"click",d.hitch(this,this._onPublicRaidoClicked)));this.own(G(this.onlinePublicRaido,"click",d.hitch(this,this._onPublicRaidoClicked)));this._onPublicRaidoClicked()},_onPublicRaidoClicked:function(){this.portalPublicRaido.get("checked")?(this.publicPortalItemTable.show(),this.publicOnlineItemTable.hide()):this.onlinePublicRaido.get("checked")&&(this.publicPortalItemTable.hide(),this.publicOnlineItemTable.show())},
_onPublicSearch:function(D){(D=D&&d.trim(D))?(this.publicPortalItemTable.showFilterItemsSection(),this.publicOnlineItemTable.showFilterItemsSection(),this.portalPublicRaido.get("checked")?(this._filterPublicPortalQuery.q=D+" "+this._filterPublicPortalQuery.basicQ,this._filterPublicPortalQuery.start=1,this.publicPortalItemTable.searchFilteredItems(this._filterPublicPortalQuery)):this.onlinePublicRaido.get("checked")&&(this._filterPublicOnlineQuery.q=D+" "+this._itemTypeQueryString+" AND access:public "+
this._typeKeywordQueryString,this._filterPublicOnlineQuery.start=1,this.publicOnlineItemTable.searchFilteredItems(this._filterPublicOnlineQuery))):(this.publicPortalItemTable.showAllItemsSection(),this.publicOnlineItemTable.showAllItemsSection())},_initPrivate:function(){this._resetPortalMaps();this.own(G(this.groupsSelect,"change",d.hitch(this,this._onGroupsSelectChange)));var D=k.getServerByUrl(this._getPortalUrl());k.isArcGIScom(D)&&(D="ArcGIS.com");B.userHaveSignInPortal(this._getPortalUrl())&&
this._onSignIn()},_onOrganizationSearch:function(D){if(D=D&&d.trim(D)){if(this._allOrganizationQuery){var q=this._allOrganizationQuery.q;q&&(this._filterOrganizationQuery.q=D+" "+q,this._filterOrganizationQuery.start=1,this.organizationItemTable.searchFilteredItems(this._filterOrganizationQuery))}}else this.organizationItemTable.showAllItemsSection()},_onMyContentSearch:function(D){if(D=D&&d.trim(D)){if(this._allMyContentQuery){var q=this._allMyContentQuery.q;q&&(this._filterMyContentQuery.q=D+" "+
q,this._filterMyContentQuery.start=1,this.mycontentItemTable.searchFilteredItems(this._filterMyContentQuery))}}else this.mycontentItemTable.showAllItemsSection()},_onGroupSearch:function(D){if(D=D&&d.trim(D)){if(this._allGroupQuery){var q=this._allGroupQuery.q;q&&(this._filterGroupQuery.q=D+" "+q,this._filterGroupQuery.start=1,this.groupItemTable.searchFilteredItems(this._filterGroupQuery))}}else this.groupItemTable.showAllItemsSection()},_onSignIn:function(){this._updateUIbySignIn();if(!this._signIn){this._signIn=
!0;var D=this._getPortalUrl();y.getPortal(D).getUser().then(d.hitch(this,function(q){this.domNode&&(this._resetPortalMaps(),this._searchOrganization(q),this._searchMyContent(q),this._searchGroups(q))}))}},_onSignOut:function(){this._signIn=!1;this._resetPortalMaps();this._updateUIbySignIn()},_resetPortalMaps:function(){this.organizationItemTable.clear();this.mycontentItemTable.clear();this._resetGroupsSection()},_searchOrganization:function(D){this.organizationItemTable.clear();D=" orgid:"+D.orgId+
" AND "+this._itemTypeQueryString+" AND (access:org OR access:public) "+this._typeKeywordQueryString;var q=this._getPortalUrl();this._allOrganizationQuery=this._getQuery({q:D});this._filterOrganizationQuery=this._getQuery({q:D});this.organizationItemTable.set("portalUrl",q);this.organizationItemTable.searchAllItems(this._allOrganizationQuery)},_searchMyContent:function(D){this.mycontentItemTable.clear();var q=this._getPortalUrl();D="owner:"+D.username+" AND "+this._itemTypeQueryString+" "+this._typeKeywordQueryString;
this._allMyContentQuery=this._getQuery({q:D});this._filterMyContentQuery=this._getQuery({q:D});this.mycontentItemTable.set("portalUrl",q);this.mycontentItemTable.searchAllItems(this._allMyContentQuery)},_searchGroups:function(D){this._resetGroupsSection();m.setStyle(this.groupsSection,"display","flex");D=D.getGroups();if(0<D.length){m.setStyle(this.groupSearch.domNode,"display","block");this.groupItemTable.show();m.empty(this.groupsSelect);for(var q=0;q<D.length;q++){var z=D[q];m.create("option",
{value:z.id,innerHTML:z.title},this.groupsSelect)}this._onGroupsSelectChange()}this._updateUIbyGroups(D.length)},_resetGroupsSection:function(){m.setStyle(this.groupsSection,"display","none");m.empty(this.groupsSelect);m.create("option",{value:"nodata",innerHTML:this.nls.noneGroups},this.groupsSelect);this.groupItemTable.clear();m.setStyle(this.groupSearch.domNode,"display","none");this.groupItemTable.hide();this._updateUIbyGroups(0)},_updateUIbyGroups:function(D){0===D?m.setStyle(this.groupsSection,
"top","15px"):m.setStyle(this.groupsSection,"top","50px")},_onGroupsSelectChange:function(){var D=this.groupsSelect.value;this.groupItemTable.clear();if("nodata"===D)m.setStyle(this.groupSearch,"display","none"),this.groupItemTable.hide();else{m.setStyle(this.groupSearch,"display","block");this.groupItemTable.show();var q=this._getPortalUrl();D="group:"+D+" AND "+this._itemTypeQueryString+" "+this._typeKeywordQueryString;this._allGroupQuery=this._getQuery({q:D});this._filterGroupQuery=this._getQuery({q:D});
this.groupItemTable.set("portalUrl",q);this.groupItemTable.searchAllItems(this._allGroupQuery)}},_onItemTableUpdate:function(){this.emit("update")},_onItemDomClicked:function(D){var q=m.hasClass(D,"jimu-state-active");u(".item.jimu-state-active",this.domNode).removeClass("jimu-state-active");q&&m.addClass(D,"jimu-state-active");(D=this.getSelectedItem())?this.emit("item-selected",D):this.emit("none-item-selected")},getSelectedItem:function(){var D=null,q=u(".item.jimu-state-active",this.domNode);
0<q.length&&(D=d.mixin({},q[0].item));return D}})})},"jimu/dijit/_ItemTable":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./templates/_ItemTable.html dojo/Evented dojo/_base/lang dojo/_base/array dojo/_base/html dojo/_base/Deferred dojo/query dojo/on jimu/utils jimu/portalUtils jimu/portalUrlUtils jimu/dijit/LoadingIndicator".split(" "),function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e){return w([F,L,I,a],{templateString:E,declaredClass:"jimu.dijit.ItemTable",
baseClass:"jimu-item-table",query:null,filteredQuery:null,portalUrl:null,hidden:!1,nls:null,types:"",typeKeywords:"",_defaultThumbnail:{"Web Mapping Application":"desktopapp.png","Mobile Application":"mobileapp.png"},postMixInProperties:function(){this.nls=window.jimuNls.itemSelector},postCreate:function(){this.inherited(arguments);this._initSelf()},_initSelf:function(){this.types&&0<this.types.length||(this.types=[]);(this.hidden=!0===this.hidden)&&this.hide();this.portalUrl&&(this.portalUrl=G.getStandardPortalUrl(this.portalUrl));
this.showAllItemsSection();this.searchAllItems()},show:function(){g.setStyle(this.domNode,"display","block")},hide:function(){g.setStyle(this.domNode,"display","none")},searchAllItems:function(l){this.showAllItemsSection();l&&(this.query=b.mixin({},l),this.query.start=1,this.clearAllItemsSection());this.portalUrl&&this.query&&0<this.query.start&&(this.allItemsShelter.show(),u.getPortal(this.portalUrl).queryItems(this.query).then(b.hitch(this,function(y){this.domNode&&(this.allItemsShelter.hide(),
this.query.start=y.nextStart,this._createItems(y,this.allItemTbody))}),b.hitch(this,function(y){console.error(y);this.domNode&&this.allItemsShelter.hide()})))},searchFilteredItems:function(l){this.showFilterItemsSection();l&&(this.filteredQuery=b.clone(l),this.filteredQuery.start=1,this.clearFilteredItemsSection());this.portalUrl&&this.filteredQuery&&0<this.filteredQuery.start&&(this.filteredItemShelter.show(),u.getPortal(this.portalUrl).queryItems(this.filteredQuery).then(b.hitch(this,function(y){this.domNode&&
(this.showFilterItemsSection(),l&&this.clearFilteredItemsSection(),this.filteredQuery.start=y.nextStart,this._createItems(y,this.filteredItemsTbody),this._filterItemCallback())}),b.hitch(this,function(y){console.error(y);this.domNode&&this._filterItemCallback()})))},_filterItemCallback:function(){this.filteredItemShelter.hide();0<this._getItemCount(this.filteredItemsTbody)?(g.setStyle(this.filteredItemsTableDiv,"display","block"),g.setStyle(this.searchNoneTipSection,"display","none")):(g.setStyle(this.filteredItemsTableDiv,
"display","none"),g.setStyle(this.searchNoneTipSection,"display","block"))},clear:function(){this.clearAllItemsSection();this.clearFilteredItemsSection()},clearAllItemsSection:function(){g.empty(this.allItemTbody)},clearFilteredItemsSection:function(){g.empty(this.filteredItemsTbody)},showAllItemsSection:function(){g.setStyle(this.allItemsSection,"display","block");g.setStyle(this.filteredItemsSection,"display","none")},showFilterItemsSection:function(){g.setStyle(this.allItemsSection,"display","none");
g.setStyle(this.filteredItemsSection,"display","block");g.setStyle(this.filteredItemsTableDiv,"display","block");g.setStyle(this.searchNoneTipSection,"display","none")},_onAllItemsSectionScroll:function(){this._isScrollToBottom(this.allItemsTableDiv)&&this.searchAllItems()},_onFilteredItemsSectionScroll:function(){this._isScrollToBottom(this.filteredItemsTableDiv)&&this.searchFilteredItems()},_isScrollToBottom:function(l){return p.isScrollToBottom(l)},_createItems:function(l,y){l=l.results;var B=
d.map(this.types,b.hitch(this,function(D){return D.toLowerCase()}));l=d.filter(l,b.hitch(this,function(D){D=D.type&&D.type.toLowerCase()||"";return 0<=d.indexOf(B,D)}));if(0!==l.length){var k=m("td.empty",y),t;if(0<k.length){var H=Math.min(l.length,k.length),r=l.splice(0,H);for(t=0;t<H;t++){var N=k[t];var x=this._createItem(r[t]);g.place(x,N);g.removeClass(N,"empty")}}if(0!==l.length){k=Math.ceil(l.length/2);for(t=0;t<k;t++)for(x=g.toDom("\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e"),
g.place(x,y),H=m("td",x),r=0;r<H.length;r++)N=H[r],(x=l[2*t+r])?(x=this._createItem(x),g.place(x,N)):g.addClass(N,"empty");this.emit("update")}}},_getItemCount:function(l){return m(".item",l).length},_createItem:function(l){var y=g.toDom('\x3cdiv class\x3d"item"\x3e\x3cdiv class\x3d"item-border"\x3e\x3c/div\x3e\x3cdiv class\x3d"item-thumbnail jimu-auto-vertical"\x3e\x3cdiv class\x3d"none-thumbnail-tip jimu-auto-vertical-content"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"item-info"\x3e\x3cdiv class\x3d"item-name"\x3e\x3c/div\x3e\x3cdiv class\x3d"item-type-owner"\x3e\x3c/div\x3e\x3cdiv class\x3d"item-date"\x3e\x3c/div\x3e\x3ca class\x3d"item-details" target\x3d"_blank"\x3e\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e');
y.item=l;var B=m(".item-thumbnail",y)[0],k=m(".item-name",y)[0],t=m(".item-type-owner",y)[0],H=m(".item-date",y)[0],r=m(".item-details",y)[0],N=m(".none-thumbnail-tip",y)[0];if(!l.thumbnailUrl){var x=this._defaultThumbnail[l.type];x&&(l.thumbnailUrl=require.toUrl("jimu")+"/images/"+x)}l.thumbnailUrl?g.setStyle(B,"backgroundImage","url("+l.thumbnailUrl+")"):N.innerHTML=this.nls.noneThumbnail;"function"===typeof this.onCreateItemContent?(H=m(".item-info",y)[0],this.onCreateItemContent(l,H)):(k.innerHTML=
l.title,k.title=k.innerHTML,t.innerHTML=l.type+" by "+l.owner,t.title=t.innerHTML,B=new Date,B.setTime(l.modified),H.innerHTML=B.toLocaleString(),H.title=H.innerHTML,r.innerHTML=this.nls.moreDetails,r.href=l.detailsPageUrl||"#");return y},_onItemsTableClicked:function(l){var y=l.target||l.srcElement;l=null;g.hasClass(y,"item-thumbnail")?l=y.parentNode:g.hasClass(y,"none-thumbnail-tip")&&(l=y.parentNode.parentNode);l&&(y=g.hasClass(l,"jimu-state-active"),m(".item.jimu-state-active",this.domNode).removeClass("jimu-state-active"),
y?g.removeClass(l,"jimu-state-active"):g.addClass(l,"jimu-state-active"),this.emit("item-dom-clicked",l))},getSelectedItem:function(){var l=null,y=m(".item.jimu-state-active",this.domNode);0<y.length&&(l=b.mixin({},y[0].item));return l}})})},"jimu/dijit/GpServiceBrowser":function(){define(["dojo/_base/declare","./_BasicServiceBrowser","dojo/_base/lang","dojo/_base/array","jimu/serviceBrowserRuleUtils"],function(w,F,L,I,E){return w([F],{baseClass:"jimu-gp-service-browser",declaredClass:"jimu.dijit.GpServiceBrowser",
url:"",multiple:!1,postMixInProperties:function(){this.inherited(arguments);this.rule=E.getGpServiceBrowserRule()},getSelectedItems:function(){var a=this.inherited(arguments);return a=I.map(a,L.hitch(this,function(b){return{name:b.name,url:b.url}}))}})})},"jimu/dijit/_BasicServiceBrowser":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/Evented dojo/_base/lang dojo/_base/html dojo/_base/array dojo/Deferred dojo/promise/all dojo/store/Memory dojo/store/Observable dijit/tree/ObjectStoreModel jimu/utils jimu/dijit/_Tree jimu/dijit/LoadingIndicator".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G){return w([F,L,I,E],{templateString:'\x3cdiv style\x3d"width:100%;"\x3e\x3cdiv data-dojo-attach-point\x3d"shelter"  data-dojo-type\x3d"jimu/dijit/LoadingIndicator" data-dojo-props\x3d"hidden:true"\x3e\x3c/div\x3e\x3c/div\x3e',_store:null,_id:0,_currentUrl:"",_treeClass:"service-browser-tree",_def:null,url:"",multiple:!1,rule:null,postMixInProperties:function(){this.nls=window.jimuNls.basicServiceBrowser},postCreate:function(){this.inherited(arguments);b.addClass(this.domNode,
"jimu-basic-service-browser");this.multiple=!!this.multiple;this._createTree();this.url&&"string"===typeof this.url&&this.setUrl(this.url)},reset:function(){this.url="";this._clear()},getSelectedItems:function(){return this.tree.getSelectedItems()},setUrl:function(e){this._def&&(this._def.isFulfilled()||this._def.cancel(),this._def=null);this._def=new g;e&&"string"===typeof e&&e.replace(/\/*$/g,"")||this._def.reject();e=e.replace(/\/*$/g,"");e=a.trim(e);var l=e.match(/^http(s?):\/\//gi);l&&0<l.length||
(e="http://"+e);if(!(0>=e.search(/\/rest\/services/i))&&(this._clear(),this._currentUrl=e))return e=this._getRootItem(),e=u.isStringEndWith(this._currentUrl,"rest/services")?this._searchBaseServiceUrl(this._currentUrl,e):this._isUrlContainsServiceType(this._currentUrl)?this._searchServiceUrl(this._currentUrl,e):this._searchFolderServiceUrl(this._currentUrl,e),this.shelter.show(),e.then(a.hitch(this,function(y){this.domNode&&this.shelter.hide();var B=this.tree.getAllLeafTreeNodeWidgets();1===B.length&&
B[0].select();this._def.resolve(y)}),a.hitch(this,function(y){this.domNode&&this.shelter.hide();this._showRequestError();this._def.reject(y)})),this._def;this._def.reject()},_getItem:function(e){return this.rule.getItem(e)},_getSubItemUrls:function(e){return this.rule.getSubItemUrls(e)},_getSubItems:function(e){var l=new g;this._getSubItemUrls(e).then(a.hitch(this,function(y){y=d.map(y,a.hitch(this,function(B){return this._getItem(B)}));f(y).then(a.hitch(this,function(B){B=d.filter(B,a.hitch(this,
function(k){return k&&"object"===typeof k}));l.resolve(B)}),a.hitch(this,function(B){l.reject(B)}))}),a.hitch(this,function(y){l.reject(y)}));return l},_selectFirstLeafTreeNodeWidget:function(){var e=this.tree.getAllLeafTreeNodeWidgets();1===e.length&&e[0].select()},isLeafItem:function(e){return 0<=this.rule.leafTypes.indexOf(e.type)},isServiceTypeSupported:function(e){return this.rule.isServiceTypeSupported(e)},_getStringEndWith:function(e,l){var y="",B=e.indexOf(l);0<=B&&(y=e.slice(0,B+l.length));
return y},_isUrlContainsServiceType:function(e){return this.rule.isUrlContainsServiceType(e)},_getBaseServiceUrl:function(){return this._getStringEndWith(this._currentUrl,"rest/services")},_getServiceName:function(e){var l="";e=e.split("/");return l=e[e.length-1]},_searchBaseServiceUrl:function(e,l){var y=new g;this._getRestInfo(e).then(a.hitch(this,function(B){if(this.domNode){var k=[];d.map(B.folders,a.hitch(this,function(t){var H={name:t,type:"folder",url:e+"/"+t,parent:l.id};this._addItem(H);
var r=new g;this._doSearchFolderServiceUrl(H.url,H.id).then(a.hitch(this,function(N){0<N.length?d.forEach(N,a.hitch(this,function(x){x.parent=H.id;this._addItem(x)})):this._removeItem(H.id);r.resolve()}),a.hitch(this,function(N){r.reject(N)}));k.push(r);return r}));d.forEach(B.services,a.hitch(this,function(t){if(this.isServiceTypeSupported(t.type)){t=e+"/"+t.name+"/"+t.type;var H=new g;this.rule.getItem(t).then(a.hitch(this,function(r){r&&(r.parent=l.id,this._addItem(r));H.resolve()}),a.hitch(this,
function(r){console.error(r);H.reject(r)}));k.push(H)}}));f(k).then(a.hitch(this,function(){this.domNode&&y.resolve()}),a.hitch(this,function(t){console.error(t);this.domNode&&y.reject(t)}))}}),a.hitch(this,function(B){console.error(B);this.domNode&&y.reject({errorCode:"NETWORK_ERROR",error:B})}));return y},_searchFolderServiceUrl:function(e,l){var y=new g;this._doSearchFolderServiceUrl(e,l).then(a.hitch(this,function(B){this.domNode&&(d.forEach(B,a.hitch(this,function(k){k.parent=l.id;this._addItem(k)})),
y.resolve())}),a.hitch(this,function(B){console.error(B);this.domNode&&y.reject({errorCode:"NETWORK_ERROR",error:B})}));return y},_doSearchFolderServiceUrl:function(e){var l=new g,y=this._getBaseServiceUrl();this._getRestInfo(e).then(a.hitch(this,function(B){B=B.services;var k=[];B&&0<B.length&&d.forEach(B,a.hitch(this,function(t){this.isServiceTypeSupported(t.type)&&(t=this.rule.getItem(y+"/"+t.name+"/"+t.type),k.push(t))}));f(k).then(a.hitch(this,function(t){t=d.filter(t,a.hitch(this,function(H){return H}));
l.resolve(t)}),a.hitch(this,function(t){console.error(t);l.reject(t)}))}),a.hitch(this,function(B){console.error(B);l.reject(B)}));return l},_searchServiceUrl:function(e,l){var y=new g;this._getSubItems(e).then(a.hitch(this,function(B){B&&0<B.length?(d.forEach(B,a.hitch(this,function(k){k.parent=l.id;this._addItem(k)})),y.resolve()):this._getItem(e).then(a.hitch(this,function(k){k&&(k.parent=l.id,this._addItem(k));y.resolve()}),a.hitch(this,function(k){y.reject(k)}))}),a.hitch(this,function(B){y.reject(B)}));
return y},_getRestInfo:function(e){var l=new g;this.rule.getRestInfo(e).then(a.hitch(this,function(y){this.domNode&&l.resolve(y)}),a.hitch(this,function(y){this.domNode&&l.reject(y)}));return l},_clear:function(){var e=this._store.query({parent:"root"});d.forEach(e,a.hitch(this,function(l){l&&"root"!==l.id&&this._store.remove(l.id)}))},_showRequestError:function(){this.emit("error",this.nls.invalidUrlTip)},_addItem:function(e){this._id++;e.id=this._id.toString();this._store.add(e);return e},_removeItem:function(e){this._store.remove(e)},
_getRootItem:function(){return{id:"root",name:"Services Root",type:"root"}},_createTree:function(){var e=this._getRootItem();e=new m({data:[e],getChildren:function(l){return this.query({parent:l.id})}});this._store=new h(e);e=new p({store:this._store,query:{id:"root"},mayHaveChildren:a.hitch(this,this._mayHaveChildren)});this.tree=new G({multiple:this.multiple,model:e,showRoot:!1,style:{width:"100%"},isLeafItem:a.hitch(this,this.isLeafItem),onOpen:a.hitch(this,function(l,y){this._onTreeOpen(l,y);
this.emit("tree-open",l,y)}),onClick:a.hitch(this,function(l,y,B){this._onTreeClick(l,y,B);this.emit("tree-click",l,y,B)}),getIconStyle:a.hitch(this,function(l,y){var B=null;if(!l)return null;var k={width:"20px",height:"20px",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundImage:""},t=window.location.protocol+"//"+window.location.host+require.toUrl("jimu"),H=this._getIconImageName(l,y);H||("folder"===l.type?H=y?"folder_open_default.png":"folder_close_default.png":this.isServiceTypeSupported(l.type)&&
(H=y?"folder_open_default.png":"folder_close_default.png"));H&&(k.backgroundImage="url("+t+"/css/images/"+H+")",B=k);return B})});b.addClass(this.tree.domNode,this._treeClass);this.tree.placeAt(this.domNode)},_getIconImageName:function(e,l){var y="";"function"===typeof this.rule.getIconImageName&&(y=this.rule.getIconImageName(e,l));return y},_mayHaveChildren:function(e){return"root"===e.type?!0:!this.isLeafItem(e)},_onTreeOpen:function(e,l){"root"===e.id||0<this._store.query({parent:e.id}).length||
e.checking||e.checked||(e.checking=!0,this._getSubItems(e.url).then(a.hitch(this,function(y){d.forEach(y,a.hitch(this,function(B){B.parent=e.id;this._addItem(B)}));e.checking=!1;e.checked=!0}),a.hitch(this,function(y){console.error(y);e.checking=!1;e.checked=!0})))},_onTreeClick:function(e,l,y){},destroy:function(){this.shelter&&(this.shelter.destroy(),this.shelter=null);this.inherited(arguments)}})})},"dijit/tree/ObjectStoreModel":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/when ../Destroyable".split(" "),
function(w,F,L,I,E,a,b){return L("dijit.tree.ObjectStoreModel",b,{store:null,labelAttr:"name",labelType:"text",root:null,query:null,constructor:function(d){E.mixin(this,d);this.childrenCache={}},getRoot:function(d,g){if(this.root)d(this.root);else{var f=this.store.query(this.query);f.then&&this.own(f);a(f,E.hitch(this,function(m){if(1!=m.length)throw Error("dijit.tree.ObjectStoreModel: root query returned "+m.length+" items, but must return exactly one");this.root=m[0];d(this.root);f.observe&&f.observe(E.hitch(this,
function(h){this.onChange(h)}),!0)}),g)}},mayHaveChildren:function(){return!0},getChildren:function(d,g,f){var m=this.store.getIdentity(d);if(this.childrenCache[m])a(this.childrenCache[m],g,f);else{var h=this.childrenCache[m]=this.store.getChildren(d);h.then&&this.own(h);h.observe&&this.own(h.observe(E.hitch(this,function(p,u,G){this.onChange(p);u!=G&&a(h,E.hitch(this,"onChildrenChange",d))}),!0));a(h,g,f)}},isItem:function(){return!0},getIdentity:function(d){return this.store.getIdentity(d)},getLabel:function(d){return d[this.labelAttr]},
newItem:function(d,g,f,m){return this.store.put(d,{parent:g,before:m})},pasteItem:function(d,g,f,m,h,p){var u=new I;if(g===f&&!m&&!p)return u.resolve(!0),u;g&&!m?this.getChildren(g,E.hitch(this,function(G){G=[].concat(G);var e=w.indexOf(G,d);G.splice(e,1);this.onChildrenChange(g,G);u.resolve(this.store.put(d,{overwrite:!0,parent:f,oldParent:g,before:p,isCopy:!1}))})):u.resolve(this.store.put(d,{overwrite:!0,parent:f,oldParent:g,before:p,isCopy:!0}));return u},onChange:function(){},onChildrenChange:function(){},
onDelete:function(){}})})},"jimu/dijit/_Tree":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/_TreeNode.html dojo/_base/lang dojo/_base/html dojo/_base/array dojo/_base/event dojo/query dojo/aspect dojo/on dojo/keys dojo/Evented dijit/registry dijit/Tree jimu/utils".split(" "),function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e){var l=w([G._TreeNode,p],{templateString:I,declaredClass:"jimu._TreeNode",isLeaf:!1,groupId:"",postCreate:function(){this.inherited(arguments);
a.addClass(this.domNode,"jimu-tree-node");this.isLeaf=!!this.isLeaf;this.groupId?(this.checkNode=a.toDom('\x3cinput type\x3d"radio" /\x3e'),this.checkNode.name=this.groupId):this.checkNode=a.toDom('\x3cinput type\x3d"checkbox" /\x3e');a.addClass(this.checkNode,"jimu-tree-check-node");a.place(this.checkNode,this.contentNode,"first");this.own(m(this.checkNode,"click",E.hitch(this,this._onClick)));this.own(m(this.rowNode,"keydown",E.hitch(this,function(y,B){B.target=y;B.keyCode!==h.ENTER&&B.keyCode!==
h.SPACE||this._onClick(B)},this.checkNode)));this.isLeaf?this.groupId?a.setStyle(this.checkNode,"display","none"):a.setStyle(this.checkNode,"display","inline"):a.setStyle(this.checkNode,"display","none");this.isLeaf?a.addClass(this.domNode,"jimu-tree-leaf-node"):a.addClass(this.domNode,"jimu-tree-not-leaf-node")},select:function(){this.isLeaf&&(this.checkNode.checked=!0,a.addClass(this.domNode,"jimu-tree-selected-leaf-node"))},unselect:function(){this.isLeaf&&(this.checkNode.checked=!1,a.removeClass(this.domNode,
"jimu-tree-selected-leaf-node"))},toggleSelect:function(){this.isLeaf&&(this.checkNode.checked?this.unselect():this.select())},_onClick:function(y){(y.target||y.srcElement)===this.checkNode?this.tree._onCheckNodeClick(this,this.checkNode.checked,y):this.tree._onClick(this,y)},_onChange:function(){this.isLeaf&&setTimeout(E.hitch(this,function(){this.checkNode.checked?this.emit("tn-select",this):this.emit("tn-unselect",this)}),100)},destroy:function(){delete this.tree;this.inherited(arguments)}});return w([G,
p],{declaredClass:"jimu._Tree",openOnClick:!0,multiple:!0,uniqueId:"",showRoot:!1,postMixInProperties:function(){this.inherited(arguments);this.uniqueId="tree_"+e.getRandomString()},postCreate:function(){this.inherited(arguments);a.addClass(this.domNode,"jimu-tree");this.own(f.before(this,"onClick",E.hitch(this,this._jimuBeforeClick)));this.rootLoadingIndicator&&a.setStyle(this.rootLoadingIndicator,"display","none");this.dndController.singular=!0;a.setAttr(this.domNode,"tabindex",0)},removeItem:function(y){this.model.store.remove(y)},
getAllItems:function(){var y=this.getAllTreeNodeWidgets();return b.map(y,E.hitch(this,function(B){var k=B.item;k.selected=B.checkNode.checked;return k}))},getSelectedItems:function(){var y=this.getAllTreeNodeWidgets();y=b.filter(y,E.hitch(this,function(B){return B.checkNode.checked}));return b.map(y,E.hitch(this,function(B){return B.item}))},getFilteredItems:function(y){var B=this.getAllTreeNodeWidgets();B=b.map(B,E.hitch(this,function(k){var t=k.item;t.selected=k.checkNode.checked;return t}));return b.filter(B,
E.hitch(this,function(k){return y(k)}))},getTreeNodeByItemId:function(y){for(var B=this._getAllTreeNodeDoms(),k=0;k<B.length;k++){var t=u.byNode(B[k]);if(t.item.id.toString()===y.toString())return t}return null},selectItem:function(y){(y=this.getTreeNodeByItemId(y))&&y.isLeaf&&this.selectNodeWidget(y)},unselectItem:function(y){(y=this.getTreeNodeByItemId(y))&&y.isLeaf&&y.unselect()},getAllLeafTreeNodeWidgets:function(){var y=this.getAllTreeNodeWidgets();return b.filter(y,E.hitch(this,function(B){return B.isLeaf}))},
getAllTreeNodeWidgets:function(){var y=this._getAllTreeNodeDoms();return b.map(y,E.hitch(this,function(B){return u.byNode(B)}))},isLeafItem:function(y){return y&&y.isLeaf},_getAllTreeNodeDoms:function(){return g(".dijitTreeNode",this.domNode)},_createTreeNode:function(y){y.isLeaf=this.isLeafItem(y.item);this.multiple||(y.groupId=this.uniqueId);return new l(y)},_onTreeNodeSelect:function(y){this.emit("item-select",{item:y.item,treeNode:y})},_onTreeNodeUnselect:function(y){this.emit("item-unselect",
{item:y.item,treeNode:y})},selectNodeWidget:function(y){this.multiple||this.unselectAllLeafNodeWidgets();y.select()},_jimuBeforeClick:function(y,B,k){B.isLeaf&&(a.hasClass(k.target||k.srcElement,"jimu-tree-check-node")||(this.multiple?B.toggleSelect():this.selectNodeWidget(B)));return arguments},_onCheckNodeClick:function(y,B,k){!this.multiple&&B&&this.unselectAllLeafNodeWidgets();d.stop(k);this.focusNode(y);setTimeout(E.hitch(this,function(){B?this.selectNodeWidget(y):y.unselect();this.onClick(y.item,
y,k)}),0)},unselectAllLeafNodeWidgets:function(){var y=this.getAllLeafTreeNodeWidgets();b.forEach(y,E.hitch(this,function(B){B.unselect()}))}})})},"dijit/Tree":function(){define("dojo/_base/array dojo/aspect dojo/cookie dojo/_base/declare dojo/Deferred dojo/promise/all dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/errors/create dojo/fx dojo/has dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/topic dojo/touch dojo/when ./a11yclick ./focus ./registry ./_base/manager ./_Widget ./_TemplatedMixin ./_Container ./_Contained ./_CssStateMixin ./_KeyNavMixin dojo/text!./templates/TreeNode.html dojo/text!./templates/Tree.html ./tree/TreeStoreModel ./tree/ForestStoreModel ./tree/_dndSelector dojo/query!css2".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N,x,D,q,z,O,v,c,n,C,J,M){function P(A){return e.delegate(A.promise||A,{addCallback:function(K){this.then(K)},addErrback:function(K){this.otherwise(K)}})}var Q=I("dijit._TreeNode",[x,D,q,z,O],{item:null,isTreeNode:!0,label:"",_setLabelAttr:function(A){this.labelNode["html"==this.labelType?"innerHTML":"innerText"in this.labelNode?"innerText":"textContent"]=A;this._set("label",A);p("dojo-bidi")&&this.applyTextDir(this.labelNode)},labelType:"text",
isExpandable:null,isExpanded:!1,state:"NotLoaded",templateString:c,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&this.labelNode.setAttribute("aria-expanded",this.isExpanded);this.setSelected(!1)},_setIndentAttr:function(A){var K=Math.max(A,0)*this.tree._nodePixelIndent+"px";f.set(this.domNode,
"backgroundPosition",K+" 0px");f.set(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",K);w.forEach(this.getChildren(),function(R){R.set("indent",A+1)});this._set("indent",A)},markProcessing:function(){this.state="Loading";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},_updateItemClasses:function(A){var K=this.tree,R=K.model;K._v10Compat&&A===R.root&&(A=null);this._applyClassAndStyle(A,"icon","Icon");this._applyClassAndStyle(A,"label","Label");this._applyClassAndStyle(A,
"row","Row");this.tree._startPaint(!0)},_applyClassAndStyle:function(A,K,R){var T="_"+K+"Class";K+="Node";var U=this[T];this[T]=this.tree["get"+R+"Class"](A,this.isExpanded);d.replace(this[K],this[T]||"",U||"");f.set(this[K],this.tree["get"+R+"Style"](A,this.isExpanded)||{})},_updateLayout:function(){var A=this.getParent();A=!A||!A.rowNode||"none"==A.rowNode.style.display;d.toggle(this.domNode,"dijitTreeIsRoot",A);d.toggle(this.domNode,"dijitTreeIsLast",!A&&!this.getNextSibling())},_setExpando:function(A){var K=
["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];A=A?0:this.isExpandable?this.isExpanded?1:2:3;d.replace(this.expandoNode,K[A],K);this.expandoNodeText.innerHTML=["*","-","+","*"][A]},expand:function(){if(this._expandDeferred)return P(this._expandDeferred);this._collapseDeferred&&(this._collapseDeferred.cancel(),delete this._collapseDeferred);this.isExpanded=!0;this.labelNode.setAttribute("aria-expanded","true");(this.tree.showRoot||this!==this.tree.rootNode)&&
this.containerNode.setAttribute("role","group");d.add(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","true");var A=h.wipeIn({node:this.containerNode,duration:N.defaultDuration}),K=this._expandDeferred=new E(function(){A.stop()});F.after(A,"onEnd",function(){K.resolve(!0)},!0);A.play();return P(K)},collapse:function(){if(this._collapseDeferred)return P(this._collapseDeferred);
this._expandDeferred&&(this._expandDeferred.cancel(),delete this._expandDeferred);this.isExpanded=!1;this.labelNode.setAttribute("aria-expanded","false");this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","false");d.remove(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);var A=h.wipeOut({node:this.containerNode,duration:N.defaultDuration}),K=this._collapseDeferred=new E(function(){A.stop()});F.after(A,"onEnd",
function(){K.resolve(!0)},!0);A.play();return P(K)},indent:0,setChildItems:function(A){var K=this.tree,R=K.model,T=[],U=K.focusedChild,Z=this.getChildren();w.forEach(Z,function(V){q.prototype.removeChild.call(this,V)},this);this.defer(function(){w.forEach(Z,function(V){if(!V._destroyed&&!V.getParent()){K.dndController.removeTreeNode(V);(function da(W){var aa=R.getIdentity(W.item),ca=K._itemNodesMap[aa];1==ca.length?delete K._itemNodesMap[aa]:(aa=w.indexOf(ca,W),-1!=aa&&ca.splice(aa,1));w.forEach(W.getChildren(),
da)})(V);if(K.persist){var Y=w.map(V.getTreePath(),function(W){return K.model.getIdentity(W)}).join("/"),X;for(X in K._openedNodes)X.substr(0,Y.length)==Y&&delete K._openedNodes[X];K._saveExpandedNodes()}K.lastFocusedChild&&!b.isDescendant(K.lastFocusedChild.domNode,K.domNode)&&delete K.lastFocusedChild;U&&!b.isDescendant(U.domNode,K.domNode)&&K.focus();V.destroyRecursive()}})});this.state="Loaded";A&&0<A.length?(this.isExpandable=!0,w.forEach(A,function(V){var Y=R.getIdentity(V),X=K._itemNodesMap[Y];
if(X)for(var ba=0;ba<X.length;ba++)if(X[ba]&&!X[ba].getParent()){var W=X[ba];W.set("indent",this.indent+1);break}W||(W=this.tree._createTreeNode({item:V,tree:K,isExpandable:R.mayHaveChildren(V),label:K.getLabel(V),labelType:K.model&&K.model.labelType||"text",tooltip:K.getTooltip(V),ownerDocument:K.ownerDocument,dir:K.dir,lang:K.lang,textDir:K.textDir,indent:this.indent+1}),X?X.push(W):K._itemNodesMap[Y]=[W]);this.addChild(W);(this.tree.autoExpand||this.tree._state(W))&&T.push(K._expandNode(W))},this),
w.forEach(this.getChildren(),function(V){V._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);A=a(T);this.tree._startPaint(A);return P(A)},getTreePath:function(){for(var A=this,K=[];A&&A!==this.tree.rootNode;)K.unshift(A.item),A=A.getParent();K.unshift(this.tree.rootNode.item);return K},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(A){this.inherited(arguments);var K=this.getChildren();0==K.length&&
(this.isExpandable=!1,this.collapse());w.forEach(K,function(R){R._updateLayout()})},makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},setSelected:function(A){this.labelNode.setAttribute("aria-selected",A?"true":"false");d.toggle(this.rowNode,"dijitTreeRowSelected",A)},focus:function(){H.focus(this.focusNode)}});p("dojo-bidi")&&Q.extend({_setTextDirAttr:function(A){!A||this.textDir==A&&this._created||(this._set("textDir",A),this.applyTextDir(this.labelNode),w.forEach(this.getChildren(),
function(K){K.set("textDir",A)},this))}});var S=I("dijit.Tree",[x,v,D,O],{baseClass:"dijitTree",store:null,model:null,query:null,label:"",showRoot:!0,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:n,persist:!1,autoExpand:!1,dndController:M,dndParams:"onDndDrop itemCreator onDndCancel checkAcceptance checkItemAcceptance dragThreshold betweenThreshold".split(" "),onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,
checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(A,K){y.publish(this.id,e.mixin({tree:this,event:A},K||{}))},postMixInProperties:function(){this.tree=this;this.autoExpand&&(this.persist=!1);this._itemNodesMap={};!this.cookieName&&this.id&&(this.cookieName=this.id+"SaveStateCookie");this.expandChildrenDeferred=new E;this.pendingCommandsPromise=this.expandChildrenDeferred.promise;this.inherited(arguments)},postCreate:function(){this._initState();var A=
this;this.own(l(this.containerNode,l.selector(".dijitTreeNode",B.enter),function(T){A._onNodeMouseEnter(r.byNode(this),T)}),l(this.containerNode,l.selector(".dijitTreeNode",B.leave),function(T){A._onNodeMouseLeave(r.byNode(this),T)}),l(this.containerNode,l.selector(".dijitTreeRow",t.press),function(T){A._onNodePress(r.getEnclosingWidget(this),T)}),l(this.containerNode,l.selector(".dijitTreeRow",t),function(T){A._onClick(r.getEnclosingWidget(this),T)}),l(this.containerNode,l.selector(".dijitTreeRow",
"dblclick"),function(T){A._onDblClick(r.getEnclosingWidget(this),T)}));this.model||this._store2model();this.own(F.after(this.model,"onChange",e.hitch(this,"_onItemChange"),!0),F.after(this.model,"onChildrenChange",e.hitch(this,"_onItemChildrenChange"),!0),F.after(this.model,"onDelete",e.hitch(this,"_onItemDelete"),!0));this.inherited(arguments);if(this.dndController){e.isString(this.dndController)&&(this.dndController=e.getObject(this.dndController));for(var K={},R=0;R<this.dndParams.length;R++)this[this.dndParams[R]]&&
(K[this.dndParams[R]]=this[this.dndParams[R]]);this.dndController=new this.dndController(this,K)}this._load();this.onLoadDeferred=P(this.pendingCommandsPromise);this.onLoadDeferred.then(e.hitch(this,"onLoad"))},_store2model:function(){this._v10Compat=!0;u.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var A={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};this.params.mayHaveChildren&&(A.mayHaveChildren=
e.hitch(this,"mayHaveChildren"));this.params.getItemChildren&&(A.getChildren=e.hitch(this,function(K,R,T){this.getItemChildren(this._v10Compat&&K===this.model.root?null:K,R,T)}));this.model=new J(A);this.showRoot=!!this.label},onLoad:function(){},_load:function(){this.model.getRoot(e.hitch(this,function(A){var K=this.rootNode=this.tree._createTreeNode({item:A,tree:this,isExpandable:!0,label:this.label||this.getLabel(A),labelType:this.model.labelType||"text",textDir:this.textDir,indent:this.showRoot?
0:-1});this.showRoot?(this.domNode.setAttribute("aria-multiselectable",!this.dndController.singular),this.rootLoadingIndicator.style.display="none"):(K.rowNode.style.display="none",this.domNode.setAttribute("role","presentation"),this.domNode.removeAttribute("aria-expanded"),this.domNode.removeAttribute("aria-multiselectable"),this["aria-label"]?(K.containerNode.setAttribute("aria-label",this["aria-label"]),this.domNode.removeAttribute("aria-label")):this["aria-labelledby"]&&(K.containerNode.setAttribute("aria-labelledby",
this["aria-labelledby"]),this.domNode.removeAttribute("aria-labelledby")),K.labelNode.setAttribute("role","presentation"),K.labelNode.removeAttribute("aria-selected"),K.containerNode.setAttribute("role","tree"),K.containerNode.setAttribute("aria-expanded","true"),K.containerNode.setAttribute("aria-multiselectable",!this.dndController.singular));this.containerNode.appendChild(K.domNode);A=this.model.getIdentity(A);this._itemNodesMap[A]?this._itemNodesMap[A].push(K):this._itemNodesMap[A]=[K];K._updateLayout();
this._expandNode(K).then(e.hitch(this,function(){this._destroyed||(this.rootLoadingIndicator.style.display="none",this.expandChildrenDeferred.resolve(!0))}))}),e.hitch(this,function(A){console.error(this,": error loading root: ",A)}))},getNodesByItem:function(A){if(!A)return[];A=e.isString(A)?A:this.model.getIdentity(A);return[].concat(this._itemNodesMap[A])},_setSelectedItemAttr:function(A){this.set("selectedItems",[A])},_setSelectedItemsAttr:function(A){var K=this;return this.pendingCommandsPromise=
this.pendingCommandsPromise.always(e.hitch(this,function(){var R=w.map(A,function(U){return!U||e.isString(U)?U:K.model.getIdentity(U)}),T=[];w.forEach(R,function(U){T=T.concat(K._itemNodesMap[U]||[])});this.set("selectedNodes",T)}))},_setPathAttr:function(A){return A.length?P(this.set("paths",[A]).then(function(K){return K[0]})):P(this.set("paths",[]).then(function(K){return K[0]}))},_setPathsAttr:function(A){function K(T,U){var Z=T.shift(),V=w.filter(U,function(Y){return Y.getIdentity()==Z})[0];
if(V)return T.length?R._expandNode(V).then(function(){return K(T,V.getChildren())}):V;throw new S.PathError("Could not expand path at "+Z);}var R=this;return P(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){return a(w.map(A,function(T){T=w.map(T,function(U){return U&&e.isObject(U)?R.model.getIdentity(U):U});if(T.length)return K(T,[R.rootNode]);throw new S.PathError("Empty path");}))}).then(function(T){R.set("selectedNodes",T);return R.paths}))},_setSelectedNodeAttr:function(A){this.set("selectedNodes",
[A])},_setSelectedNodesAttr:function(A){this.dndController.setSelection(A)},expandAll:function(){function A(R){return K._expandNode(R).then(function(){var T=w.filter(R.getChildren()||[],function(U){return U.isExpandable});return a(w.map(T,A))})}var K=this;return P(A(this.rootNode))},collapseAll:function(){function A(R){var T=w.filter(R.getChildren()||[],function(U){return U.isExpandable});T=a(w.map(T,A));return!R.isExpanded||R==K.rootNode&&!K.showRoot?T:T.then(function(){return K._collapseNode(R)})}
var K=this;return P(A(this.rootNode))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(A){return this.model.getLabel(A)},getIconClass:function(A,K){return!A||this.model.mayHaveChildren(A)?K?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onDownArrow:function(A,K){(A=this._getNext(K))&&A.isTreeNode&&this.focusNode(A)},
_onUpArrow:function(A,K){if(A=K.getPreviousSibling())for(K=A;K.isExpandable&&K.isExpanded&&K.hasChildren();)K=K.getChildren(),K=K[K.length-1];else if(A=K.getParent(),this.showRoot||A!==this.rootNode)K=A;K&&K.isTreeNode&&this.focusNode(K)},_onRightArrow:function(A,K){K.isExpandable&&!K.isExpanded?this._expandNode(K):K.hasChildren()&&(K=K.getChildren()[0])&&K.isTreeNode&&this.focusNode(K)},_onLeftArrow:function(A,K){K.isExpandable&&K.isExpanded?this._collapseNode(K):(A=K.getParent())&&A.isTreeNode&&
(this.showRoot||A!==this.rootNode)&&this.focusNode(A)},focusLastChild:function(){var A=this._getLast();A&&A.isTreeNode&&this.focusNode(A)},_getFirst:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_getLast:function(){for(var A=this.rootNode;A.isExpanded;){var K=A.getChildren();if(!K.length)break;A=K[K.length-1]}return A},_getNext:function(A){if(A.isExpandable&&A.isExpanded&&A.hasChildren())return A.getChildren()[0];for(;A&&A.isTreeNode;){var K=A.getNextSibling();if(K)return K;
A=A.getParent()}return null},childSelector:".dijitTreeRow",isExpandoNode:function(A,K){return b.isDescendant(A,K.expandoNode)||b.isDescendant(A,K.expandoNodeText)},_onNodePress:function(A,K){this.focusNode(A)},__click:function(A,K,R,T){var U=this.isExpandoNode(K.target,A);A.isExpandable&&(R||U)?this._onExpandoClick({node:A}):(this._publish("execute",{item:A.item,node:A,evt:K}),this[T](A.item,A,K),this.focusNode(A));K.stopPropagation();K.preventDefault()},_onClick:function(A,K){this.__click(A,K,this.openOnClick,
"onClick")},_onDblClick:function(A,K){this.__click(A,K,this.openOnDblClick,"onDblClick")},_onExpandoClick:function(A){A=A.node;this.focusNode(A);A.isExpanded?this._collapseNode(A):this._expandNode(A)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(A){u.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.","","2.0");return this._getNext(A)},_getRootOrFirstNode:function(){u.deprecated(this.declaredClass+
"::_getRootOrFirstNode() is deprecated. Use _getFirst() instead.","","2.0");return this._getFirst()},_collapseNode:function(A){A._expandNodeDeferred&&delete A._expandNodeDeferred;if("Loading"!=A.state&&A.isExpanded){var K=A.collapse();this.onClose(A.item,A);this._state(A,!1);this._startPaint(K);return K}},_expandNode:function(A){if(A._expandNodeDeferred)return A._expandNodeDeferred;var K=this.model,R=A.item,T=this;A._loadDeferred||(A.markProcessing(),A._loadDeferred=new E,K.getChildren(R,function(U){A.unmarkProcessing();
A.setChildItems(U).then(function(){A._loadDeferred.resolve(U)})},function(U){console.error(T,": error loading "+A.label+" children: ",U);A._loadDeferred.reject(U)}));K=A._loadDeferred.then(e.hitch(this,function(){var U=A.expand();this.onOpen(A.item,A);this._state(A,!0);return U}));this._startPaint(K);return K},focusNode:function(A){for(var K=[],R=this.domNode;R&&R.tagName&&"IFRAME"!==R.tagName.toUpperCase();R=R.parentNode)K.push({domNode:R.contentWindow||R,scrollLeft:R.scrollLeft||0,scrollTop:R.scrollTop||
0});this.focusChild(A);this.defer(function(){for(var T=0,U=K.length;T<U;T++)K[T].domNode.scrollLeft=K[T].scrollLeft,K[T].domNode.scrollTop=K[T].scrollTop},0)},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(A){var K=this.model.getIdentity(A);if(K=this._itemNodesMap[K]){var R=this.getLabel(A),T=this.getTooltip(A);w.forEach(K,function(U){U.set({item:A,label:R,tooltip:T});U._updateItemClasses(A)})}},_onItemChildrenChange:function(A,K){A=this.model.getIdentity(A);
(A=this._itemNodesMap[A])&&w.forEach(A,function(R){R.setChildItems(K)})},_onItemDelete:function(A){A=this.model.getIdentity(A);var K=this._itemNodesMap[A];K&&(w.forEach(K,function(R){this.dndController.removeTreeNode(R);var T=R.getParent();T&&T.removeChild(R);this.lastFocusedChild&&!b.isDescendant(this.lastFocusedChild.domNode,this.domNode)&&delete this.lastFocusedChild;this.focusedChild&&!b.isDescendant(this.focusedChild.domNode,this.domNode)&&this.focus();R.destroyRecursive()},this),delete this._itemNodesMap[A])},
_initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var A=L(this.cookieName);A&&w.forEach(A.split(","),function(K){this._openedNodes[K]=!0},this)}},_state:function(A,K){if(!this.persist)return!1;var R=w.map(A.getTreePath(),function(T){return this.model.getIdentity(T)},this).join("/");if(1===arguments.length)return this._openedNodes[R];K?this._openedNodes[R]=!0:delete this._openedNodes[R];this._saveExpandedNodes()},_saveExpandedNodes:function(){if(this.persist&&this.cookieName){var A=
[],K;for(K in this._openedNodes)A.push(K);L(this.cookieName,A.join(","),{expires:365})}},destroy:function(){this._curSearch&&(this._curSearch.timer.remove(),delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!e.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},destroyRecursive:function(){this.destroy()},resize:function(A){A&&g.setMarginBox(this.domNode,A);this._nodePixelIndent=g.position(this.tree.indentDetector).w||
this._nodePixelIndent;this.expandChildrenDeferred.then(e.hitch(this,function(){this.rootNode.set("indent",this.showRoot?0:-1);this._adjustWidths()}))},_outstandingPaintOperations:0,_startPaint:function(A){this._outstandingPaintOperations++;this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer);var K=e.hitch(this,function(){this._outstandingPaintOperations--;0>=this._outstandingPaintOperations&&!this._adjustWidthsTimer&&this._started&&(this._adjustWidthsTimer=this.defer("_adjustWidths"))});
k(A,K,K)},_adjustWidths:function(){this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer);this.containerNode.style.width="auto";this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%"},_createTreeNode:function(A){return new Q(A)},focus:function(){this.lastFocusedChild?this.focusNode(this.lastFocusedChild):this.focusFirstChild()}});p("dojo-bidi")&&S.extend({_setTextDirAttr:function(A){A&&this.textDir!=A&&(this._set("textDir",
A),this.rootNode.set("textDir",A))}});S.PathError=m("TreePathError");S._TreeNode=Q;return S})},"dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang"],function(w,F,L,I){return L("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(E){I.mixin(this,E);this.connects=[];E=this.store;if(!E.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");
E.getFeatures()["dojo.data.api.Notification"]&&(this.connects=this.connects.concat([F.after(E,"onNew",I.hitch(this,"onNewItem"),!0),F.after(E,"onDelete",I.hitch(this,"onDeleteItem"),!0),F.after(E,"onSet",I.hitch(this,"onSetItem"),!0)]))},destroy:function(){for(var E;E=this.connects.pop();)E.remove()},getRoot:function(E,a){this.root?E(this.root):this.store.fetch({query:this.query,onComplete:I.hitch(this,function(b){if(1!=b.length)throw Error("dijit.tree.TreeStoreModel: root query returned "+b.length+
" items, but must return exactly one");this.root=b[0];E(this.root)}),onError:a})},mayHaveChildren:function(E){return w.some(this.childrenAttrs,function(a){return this.store.hasAttribute(E,a)},this)},getChildren:function(E,a,b){var d=this.store;if(d.isItemLoaded(E)){for(var g=[],f=0;f<this.childrenAttrs.length;f++){var m=d.getValues(E,this.childrenAttrs[f]);g=g.concat(m)}var h=0;this.deferItemLoadingUntilExpand||w.forEach(g,function(u){d.isItemLoaded(u)||h++});0==h?a(g):w.forEach(g,function(u,G){d.isItemLoaded(u)||
d.loadItem({item:u,onItem:function(e){g[G]=e;0==--h&&a(g)},onError:b})})}else{var p=I.hitch(this,arguments.callee);d.loadItem({item:E,onItem:function(u){p(u,a,b)},onError:b})}},isItem:function(E){return this.store.isItem(E)},fetchItemByIdentity:function(E){this.store.fetchItemByIdentity(E)},getIdentity:function(E){return this.store.getIdentity(E)},getLabel:function(E){return this.labelAttr?this.store.getValue(E,this.labelAttr):this.store.getLabel(E)},newItem:function(E,a,b){var d={parent:a,attribute:this.childrenAttrs[0]},
g;this.newItemIdAttr&&E[this.newItemIdAttr]?this.fetchItemByIdentity({identity:E[this.newItemIdAttr],scope:this,onItem:function(f){f?this.pasteItem(f,null,a,!0,b):(g=this.store.newItem(E,d))&&void 0!=b&&this.pasteItem(g,a,a,!1,b)}}):(g=this.store.newItem(E,d))&&void 0!=b&&this.pasteItem(g,a,a,!1,b)},pasteItem:function(E,a,b,d,g){var f=this.store,m=this.childrenAttrs[0];a&&w.forEach(this.childrenAttrs,function(p){if(f.containsValue(a,p,E)){if(!d){var u=w.filter(f.getValues(a,p),function(G){return G!=
E});f.setValues(a,p,u)}m=p}});if(b)if("number"==typeof g){var h=f.getValues(b,m).slice();h.splice(g,0,E);f.setValues(b,m,h)}else f.setValues(b,m,f.getValues(b,m).concat(E))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(E,a){a&&this.getChildren(a.item,I.hitch(this,function(b){this.onChildrenChange(a.item,b)}))},onDeleteItem:function(E){this.onDelete(E)},onSetItem:function(E,a){if(-1!=w.indexOf(this.childrenAttrs,a))this.getChildren(E,I.hitch(this,function(b){this.onChildrenChange(E,
b)}));else this.onChange(E)}})})},"dijit/tree/ForestStoreModel":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","./TreeStoreModel"],function(w,F,L,I,E){return F("dijit.tree.ForestStoreModel",E,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(a){this.root={store:this,root:!0,id:a.rootId,label:a.rootLabel,children:a.rootChildren}},mayHaveChildren:function(a){return a===this.root||this.inherited(arguments)},getChildren:function(a,b,d){a===
this.root?this.root.children?b(this.root.children):this.store.fetch({query:this.query,onComplete:I.hitch(this,function(g){this.root.children=g;b(g)}),onError:d}):this.inherited(arguments)},isItem:function(a){return a===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var b=a.scope||L.global;a.onItem&&a.onItem.call(b,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===
this.root?this.root.label:this.inherited(arguments)},newItem:function(a,b,d){return b===this.root?(this.onNewRootItem(a),this.store.newItem(a)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,b,d,g,f){if(b===this.root&&!g)this.onLeaveRoot(a);this.inherited(arguments,[a,b===this.root?null:b,d===this.root?null:d,g,f]);if(d===this.root)this.onAddToRoot(a)},onAddToRoot:function(a){console.log(this,": item ",a," added to root")},onLeaveRoot:function(a){console.log(this,": item ",
a," removed from root")},_requeryTop:function(){var a=this.root.children||[];this.store.fetch({query:this.query,onComplete:I.hitch(this,function(b){this.root.children=b;if(a.length!=b.length||w.some(a,function(d,g){return b[g]!=d}))this.onChildrenChange(this.root,b)})})},onNewItem:function(a,b){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){-1!=w.indexOf(this.root.children,a)&&this._requeryTop();this.inherited(arguments)},onSetItem:function(a,b,d,g){this._requeryTop();this.inherited(arguments)}})})},
"dijit/tree/_dndSelector":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/dnd/common dojo/dom dojo/mouse dojo/on dojo/touch ../a11yclick ./_dndContainer".split(" "),function(w,F,L,I,E,a,b,d,g,f,m){return F("dijit.tree._dndSelector",m,{constructor:function(){this.selection={};this.anchor=null;this.events.push(d(this.tree.domNode,g.press,I.hitch(this,"onMouseDown")),d(this.tree.domNode,g.release,I.hitch(this,"onMouseUp")),d(this.tree.domNode,g.move,I.hitch(this,
"onMouseMove")),d(this.tree.domNode,f.press,I.hitch(this,"onClickPress")),d(this.tree.domNode,f.release,I.hitch(this,"onClickRelease")))},singular:!1,getSelectedTreeNodes:function(){var h=[],p=this.selection,u;for(u in p)h.push(p[u]);return h},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(h,p){this.setSelection(this.getSelectedTreeNodes().concat([h]));p&&(this.anchor=h);return h},removeTreeNode:function(h){var p=
w.filter(this.getSelectedTreeNodes(),function(u){return!a.isDescendant(u.domNode,h.domNode)});this.setSelection(p);return h},isTreeNodeSelected:function(h){return h.id&&!!this.selection[h.id]},setSelection:function(h){var p=this.getSelectedTreeNodes();w.forEach(this._setDifference(p,h),I.hitch(this,function(u){u.setSelected(!1);this.anchor==u&&delete this.anchor;delete this.selection[u.id]}));w.forEach(this._setDifference(h,p),I.hitch(this,function(u){u.setSelected(!0);this.selection[u.id]=u}));this._updateSelectionProperties()},
_setDifference:function(h,p){w.forEach(p,function(u){u.__exclude__=!0});h=w.filter(h,function(u){return!u.__exclude__});w.forEach(p,function(u){delete u.__exclude__});return h},_updateSelectionProperties:function(){var h=this.getSelectedTreeNodes(),p=[],u=[];w.forEach(h,function(G){var e=G.getTreePath();u.push(G);p.push(e)},this);h=w.map(u,function(G){return G.item});this.tree._set("paths",p);this.tree._set("path",p[0]||[]);this.tree._set("selectedNodes",u);this.tree._set("selectedNode",u[0]||null);
this.tree._set("selectedItems",h);this.tree._set("selectedItem",h[0]||null)},onClickPress:function(h){if(!(this.current&&this.current.isExpandable&&this.tree.isExpandoNode(h.target,this.current))){"mousedown"==h.type&&b.isLeft(h)&&h.preventDefault();var p="keydown"==h.type?this.tree.focusedChild:this.current;if(p){var u=E.getCopyKeyState(h),G=p.id;this.singular||h.shiftKey||!this.selection[G]?(this._doDeselect=!1,this.userSelect(p,u,h.shiftKey)):this._doDeselect=!0}}},onClickRelease:function(h){this._doDeselect&&
(this._doDeselect=!1,this.userSelect("keyup"==h.type?this.tree.focusedChild:this.current,E.getCopyKeyState(h),h.shiftKey))},onMouseMove:function(){this._doDeselect=!1},onMouseDown:function(){},onMouseUp:function(){},_compareNodes:function(h,p){if(h===p)return 0;if("sourceIndex"in document.documentElement)return h.sourceIndex-p.sourceIndex;if("compareDocumentPosition"in document.documentElement)return h.compareDocumentPosition(p)&2?1:-1;if(document.createRange){var u=doc.createRange();u.setStartBefore(h);
h=doc.createRange();h.setStartBefore(p);return u.compareBoundaryPoints(u.END_TO_END,h)}throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");},userSelect:function(h,p,u){if(this.singular)this.anchor==h&&p?this.selectNone():(this.setSelection([h]),this.anchor=h);else if(u&&this.anchor){p=this._compareNodes(this.anchor.rowNode,h.rowNode);u=this.anchor;0>p?p=u:(p=h,h=u);for(u=[];p!=h;)u.push(p),p=this.tree._getNext(p);u.push(h);this.setSelection(u)}else this.selection[h.id]&&
p?this.removeTreeNode(h):p?this.addTreeNode(h,!0):(this.setSelection([h]),this.anchor=h)},getItem:function(h){return{data:this.selection[h],type:["treeNode"]}},forInSelectedItems:function(h,p){p=p||L.global;for(var u in this.selection)h.call(p,this.getItem(u),u,this)}})})},"dijit/tree/_dndContainer":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/on dojo/touch".split(" "),function(w,F,L,I,E,a){return F("dijit.tree._dndContainer",null,{constructor:function(b,d){this.tree=
b;this.node=b.domNode;I.mixin(this,d);this.containerState="";L.add(this.node,"dojoDndContainer");this.events=[E(this.node,a.enter,I.hitch(this,"onOverEvent")),E(this.node,a.leave,I.hitch(this,"onOutEvent")),w.after(this.tree,"_onNodeMouseEnter",I.hitch(this,"onMouseOver"),!0),w.after(this.tree,"_onNodeMouseLeave",I.hitch(this,"onMouseOut"),!0),E(this.node,"dragstart, selectstart",function(g){g.preventDefault()})]},destroy:function(){for(var b;b=this.events.pop();)b.remove();this.node=this.parent=
null},onMouseOver:function(b){this.current=b},onMouseOut:function(){this.current=null},_changeState:function(b,d){var g="dojoDnd"+b;b=b.toLowerCase()+"State";L.replace(this.node,g+d,g+this[b]);this[b]=d},_addItemClass:function(b,d){L.add(b,"dojoDndItem"+d)},_removeItemClass:function(b,d){L.remove(b,"dojoDndItem"+d)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})})},"jimu/serviceBrowserRuleUtils":function(){define(["dojo/_base/lang",
"dojo/_base/array","dojo/Deferred","jimu/utils","jimu/ServiceBrowserRule"],function(w,F,L,I,E){var a={combineRules:function(b){var d=new E;F.forEach(b,function(g){F.forEach(g.leafTypes,function(f){0>d.leafTypes.indexOf(f)&&d.leafTypes.push(f)});F.forEach(g.serviceTypes,function(f){0>d.serviceTypes.indexOf(f)&&d.serviceTypes.push(f)})});d.getMatchedRule=function(g){var f=null;F.some(b,function(m){return m.isUrlContainsServiceType(g)?(f=m,!0):!1});return f};d.getItem=function(g){var f=null;return f=
(f=d.getMatchedRule(g))?f.getItem(g):d.defaultGetItem(g)};d.getSubItemUrls=function(g){var f=null;return f=(f=d.getMatchedRule(g))?f.getSubItemUrls(g):d.defaultGetSubItemUrls(g)};d.getIconImageName=function(g,f){var m="";if(g.url){var h=d.getMatchedRule(g.url);h&&"function"===typeof h.getIconImageName&&(m=h.getIconImageName(g,f))}return m};return d},getFeaturelayerServiceBrowserRule:function(b,d,g){b=w.clone(b);var f=["point","polyline","polygon"];w.isArrayLike(b)&&0<b.length?(b=F.filter(b,function(m){return 0<=
f.indexOf(m)}),0===b.length&&(b=f)):b=f;return a._getFeaturelayerServiceBrowserRule(b,d,g)},_getFeaturelayerServiceBrowserRule:function(b,d,g){return new E({types:b,leafTypes:["Feature Layer","Table"],serviceTypes:["MapServer","FeatureServer"],_groupLayerType:"Group Layer",_featureLayerType:"Feature Layer",_tableType:"Table",getItem:function(f){var m=new L;this.isUrlEndWithServiceType(f,this.serviceTypes)?m=this.defaultGetItem(f):this.getRestInfo(f).then(w.hitch(this,function(h){h=this._getItemByLayerDefinition(f,
h);m.resolve(h)}),w.hitch(this,function(h){m.reject(h)}));return m},getSubItemUrls:function(f){var m=new L;return m=this.isUrlEndWithServiceType(f)?this._getSubUrlsByServiceUrl(f):this._getSubUrlsByGroupUrl(f)},getIconImageName:function(f,m){var h="";"MapServer"===f.type||"FeatureServer"===f.type?h=m?"mapserver_open.png":"mapserver_close.png":f.type===this._groupLayerType?h=m?"group_layer2.png":"group_layer1.png":f.type===this._featureLayerType?(f=I.getTypeByGeometryType(f.definition&&f.definition.geometryType),
"point"===f?h="point_layer1.png":"polyline"===f?h="line_layer1.png":"polygon"===f&&(h="polygon_layer1.png")):f.type===this._tableType?h="table.png":"root"===f.type&&this._currentUrl&&F.some(this.serviceTypes,w.hitch(this,function(p){return I.isStringEndWith(this._currentUrl,"/"+p)}))&&(h=m?"mapserver_open.png":"mapserver_close.png");return h},_getSubUrlsByServiceUrl:function(f){var m=new L;this.getRestInfo(f).then(w.hitch(this,function(h){var p=[];F.forEach(h.layers,w.hitch(this,function(u){0<=u.parentLayerId||
p.push(f+"/"+u.id)}));g&&F.forEach(h.tables,w.hitch(this,function(u){0<=u.parentLayerId||p.push(f+"/"+u.id)}));m.resolve(p)}),w.hitch(this,function(h){m.reject(h)}));return m},_getSubUrlsByGroupUrl:function(f){var m=new L;this.getRestInfo(f).then(w.hitch(this,function(h){var p=[];if(h.type===this._groupLayerType){var u=this._getServiceUrlByLayerUrl(f);p=F.map(h.subLayers||[],w.hitch(this,function(G){return u+"/"+G.id}))}m.resolve(p)}),w.hitch(this,function(h){m.reject(h)}));return m},_getItemByLayerDefinition:function(f,
m){var h=null,p=m.type;if(p===this._groupLayerType)h={name:m.name,type:p,url:f,definition:m};else if(p===this._featureLayerType||p===this._tableType){var u=!1;p===this._featureLayerType?u=this._validateEsriGeometryType(m.geometryType):p===this._tableType&&(u=!0);u&&(u=!1,(u=d?I.isFeaturelayerUrlSupportQuery(f,m.capabilities):!0)&&(h={name:m.name,type:p,url:f,definition:m}))}return h},_validateEsriGeometryType:function(f){f=I.getTypeByGeometryType(f);return 0<=this.types.indexOf(f)},_getServiceUrlByLayerUrl:function(f){for(var m=
"",h=0;h<this.serviceTypes.length;h++){var p=this.serviceTypes[h].toLowerCase(),u=f.toLowerCase().lastIndexOf("/"+p+"/");if(0<=u){m=f.slice(0,u+p.length+1);break}}return m}})},getGeocodeServiceBrowserRule:function(){return new E({leafTypes:["GeocodeServer"],serviceTypes:["GeocodeServer"]})},getGpServiceBrowserRule:function(){return new E({leafTypes:["GPTask"],serviceTypes:["GPServer"],getItem:function(b){var d=new L;this.isUrlEndWithServiceType(b)?d=this.defaultGetItem(b):this.getRestInfo(b).then(w.hitch(this,
function(g){d.resolve({name:g.displayName||g.name,type:"GPTask",url:b,definition:g})}),w.hitch(this,function(g){d.reject(g)}));return d},getSubItemUrls:function(b){var d=new L;this.isUrlEndWithServiceType(b)?this.getRestInfo(b).then(w.hitch(this,function(g){g=F.map(g.tasks||[],w.hitch(this,function(f){return b+"/"+f}));d.resolve(g)}),w.hitch(this,function(g){d.reject(g)})):d.resolve([]);return d},getIconImageName:function(b,d){d="";"GPServer"===b.type?d="toolbox.png":"GPTask"===b.type&&(d="tool.png");
return d}})},getImageServiceBrowserRule:function(b){return new E({leafTypes:["ImageServer"],serviceTypes:["ImageServer"],getItem:function(d){var g=new L;this.isUrlEndWithServiceType(d)?this.defaultGetItem(d).then(w.hitch(this,function(f){b?I.isImageServiceSupportQuery(f.definition.capabilities)?g.resolve(f):g.resolve(null):g.resolve(f)}),w.hitch(this,function(f){g.reject(f)})):g.resolve(null);return g},getIconImageName:function(d,g){g="";"ImageServer"===d.type&&(g="image_layer.png");return g}})},
getQueryableServiceBrowserRule:function(){var b=a.getFeaturelayerServiceBrowserRule(["point","polyline","polygon"],!0,!0),d=a.getImageServiceBrowserRule(!0);return a.combineRules([b,d])}};return a})},"jimu/ServiceBrowserRule":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred jimu/utils esri/request esri/IdentityManager".split(" "),function(w,F,L,I,E,a,b){return w([],{leafTypes:null,serviceTypes:null,_restInfoCache:{},constructor:function(d){F.mixin(this,d);F.isArrayLike(this.leafTypes)||
(this.leafTypes=[]);F.isArrayLike(this.serviceTypes)||(this.serviceTypes=[])},getItem:function(d){return this.defaultGetItem(d)},getSubItemUrls:function(d){return this.defaultGetSubItemUrls(d)},getIconImageName:function(d,g){return""},defaultGetItem:function(d){var g=new I;d=d.replace(/\/*$/g,"");if(this.isUrlEndWithServiceType(d)){var f=d.split("/"),m=f[f.length-1],h=f[f.length-2];this.getRestInfo(d).then(F.hitch(this,function(p){g.resolve({name:h,type:m,url:d,definition:p})}),F.hitch(this,function(p){console.error(p);
g.reject({errorCode:"NETWORK_ERROR",error:p})}))}else g.resolve(null);return g},defaultGetSubItemUrls:function(d){d=new I;d.resolve([]);return d},getRestInfo:function(d){var g=new I;d=d.replace(/\/*$/g,"");var f=this._restInfoCache[d];if(f)g.resolve(f);else{f={url:d,content:{f:"json"},handleAs:"json",callbackParamName:"callback",timeout:2E4};var m=b.findCredential(d);m&&m.token&&(f.content.token=m.token);a(f).then(F.hitch(this,function(h){this._restInfoCache[d]=h;g.resolve(h)}),function(h){g.reject(h)})}return g},
isServiceTypeSupported:function(d){d=d.toLowerCase();return L.some(this.serviceTypes,F.hitch(this,function(g){return g.toLowerCase()===d}))},isUrlEndWithServiceType:function(d){return L.some(this.serviceTypes,F.hitch(this,function(g){return E.isStringEndWith(d,"/"+g)}))},isUrlContainsServiceType:function(d){d=d.toLowerCase();return L.some(this.serviceTypes,F.hitch(this,function(g){g=g.toLowerCase();return 0<=d.indexOf("/"+g)}))}})})},"jimu/dijit/_GpServiceChooserContent":function(){define(["dojo/_base/declare",
"./_BasicServiceChooserContent","./GpServiceBrowser"],function(w,F,L){return w([F],{baseClass:"jimu-gp-service-chooser-content",_examples:["http://myserver/arcgis/rest/services","http://myserver/arcgis/rest/services/myservice/GpServer","http://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/ESRI_Elevation_World/GPServer/Viewshed"],_createServiceBrowser:function(I){return new L(I)}})})},"jimu/dijit/_BasicServiceChooserContent":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./templates/_BasicServiceChooserContent.html dojo/Evented dojo/Deferred dojo/_base/html dojo/_base/array dojo/_base/lang dojo/on dojo/aspect dojo/promise/all jimu/dijit/URLInput jimu/dijit/LoadingIndicator".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G){return w([F,L,I,a],{templateString:E,_examples:["http://myserver/arcgis/rest/services","http://myserver/arcgis/rest/services/folder","http://myserver/arcgis/rest/services/myservice/servicetype"],multiple:!1,url:"",getSelectedItems:function(){return this.serviceBrowser.getSelectedItems()},postMixInProperties:function(){this.nls=f.mixin({},window.jimuNls.common);this.nls=f.mixin(this.nls,window.jimuNls.basicServiceChooser)},postCreate:function(){this.inherited(arguments);
d.addClass(this.domNode,"jimu-basic-service-chooser-content");this.multiple=!!this.multiple;this._initSelf();this.exampleTd.innerHTML=this.exampleTd.innerHTML},setUrl:function(e){var l=new b;(this.url=e)&&"string"===typeof this.url?(this.urlInput.set("value",this.url),l=this._onBtnValidateClick()):l.reject();return l},focusInput:function(){this.urlInput.focus()},_initSelf:function(){this._examples&&0<this._examples.length?g.forEach(this._examples,f.hitch(this,function(l){d.create("div",{innerHTML:l,
"class":"example-url"},this.exampleTd)})):d.setStyle(this.exampleTr,"display","none");var e={multiple:this.multiple,_onTreeClick:f.hitch(this,this._onTreeClick)};this.serviceBrowser=this._createServiceBrowser(e);this.serviceBrowser.placeAt(this.serviceBrowserContainer);this.serviceBrowser.startup();this.own(h.after(this.urlInput,"validator",f.hitch(this,this._afterUrlValidate)));this.url&&"string"===typeof this.url&&this.urlInput.set("value",this.url);this.own(m(this.serviceBrowser,"error",f.hitch(this,
this._onServiceBrowserError)))},_createServiceBrowser:function(e){},_validateUrl:function(e){e=e.replace(/\/*$/g,"");if((e=e.match(/\/rest\/services\/*(.*)/gi))&&0<e.length)if(e=e[0].replace(/\/rest\/services\/*/,"")){var l=e.split("/");if(1===l.length)return!0;if(2===l.length)return this.serviceBrowser.isServiceTypeSupported(l[1]);if(3<=l.length)return e=this.serviceBrowser.isServiceTypeSupported(l[1]),l=this.serviceBrowser.isServiceTypeSupported(l[2]),e||l}else return!0;else return!1},_afterUrlValidate:function(e){e&&
(e=this.urlInput.get("value"),e=this._validateUrl(e));e?d.removeClass(this.btnValidate,"jimu-state-disabled"):d.addClass(this.btnValidate,"jimu-state-disabled");return e},_onServiceBrowserError:function(e){this._showErrorMessage(e)},_showErrorMessage:function(e){e&&"string"===typeof e?(this.errorNode.innerHTML=e,d.addClass(this.errorSection,"visible")):d.removeClass(this.errorSection,"visible")},_clearErrorMessage:function(){this.errorNode.innerHTML="";d.removeClass(this.errorSection,"visible")},
_onBtnValidateClick:function(){this._clearErrorMessage();var e=new b;if(this.urlInput.validate()){var l=this.urlInput.get("value");this.serviceBrowser.setUrl(l).then(f.hitch(this,function(){this.domNode&&this._checkSelectedItemsNumber();e.resolve()}),f.hitch(this,function(){this.domNode&&this._checkSelectedItemsNumber();e.reject()}));this.emit("validate-click")}else e.reject();return e},_checkSelectedItemsNumber:function(){0<this.getSelectedItems().length?d.removeClass(this.btnOk,"jimu-state-disabled"):
d.addClass(this.btnOk,"jimu-state-disabled")},_onTreeClick:function(){this._checkSelectedItemsNumber()},_onBtnOkClick:function(){var e=this.getSelectedItems();0<e.length&&this.emit("ok",e)},_onBtnCancelClick:function(){this.emit("cancel")}})})},"widgets/NetworkTrace/setting/summarySetting":function(){define("dojo/_base/declare dojo/text!./summarySetting.html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/dom-class dojo/dom-construct dojo/_base/lang dojo/on dojo/dom-attr dijit/Editor dojo/_base/html jimu/dijit/Message ./summarySettingSelector dojo/_base/array jimu/dijit/SimpleTable dojo/query dijit/registry dijit/form/Select esri/symbols/jsonUtils jimu/symbolUtils dojo/dom-style dijit/form/ValidationTextBox ./FieldSelector esri/dijit/VisibleScaleRangeSlider jimu/dijit/Popup ./SymbolChooserPopup jimu/utils dojo/sniff dijit/_editor/plugins/TextColor".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N,x,D,q,z,O){return w([L,I,E],{templateString:F,baseClass:"jimu-widget-NetworkTrace-setting",_selectedOutputParameter:null,_inputOutputSelect:null,_operatorSelect:null,_fieldSelect:null,_inputOutputParamArray:[],_selectedInput:null,_selectedOutput:null,_selectedField:null,_selectedOperator:null,_summaryExpressionEditor:null,_editorObj:null,_editorObjSymbolSelector:null,_outputLayerSettingsArr:[],_selectedOutputGeometryType:null,postCreate:function(){this.inherited(arguments);
this._fieldSelect=this._operatorSelect=this._inputOutputSelect=this._selectedOutputParameter=null;this._inputOutputParamArray=[];this._editorObjSymbolSelector=this._editorObj=this._summaryExpressionEditor=this._selectedOperator=this._selectedField=this._selectedOutput=this._selectedInput=null;this._outputLayerSettingsArr=[];this._selectedOutputGeometryType=null},startup:function(){this.inherited(arguments);this._initInputOutPutParamArray();this._createOutputTable();this._initEditor()},_initInputOutPutParamArray:function(){var v;
this._inputOutputParamArray=[];for(v=0;v<this.inputParametersArray.length;v++)this._inputOutputParamArray.push(this.inputParametersArray[v]);for(v=0;v<this.outputParametersArray.length;v++)this._inputOutputParamArray.push(this.outputParametersArray[v])},_initEditor:function(){this._editorObj||(this._editorObj=new m({plugins:["bold","italic","underline","|","foreColor"]},this.editorContainer),h.setStyle(this._editorObj.domNode,{width:"100%",height:"100%"}),this.own(g(this._editorObj,"focus",d.hitch(this,
function(){a.remove(this.verifySummaryExpression,"jimu-state-disabled")}))),this.own(g(this._editorObj,"blur",d.hitch(this,function(){var v=this._editorObj.focusNode.innerHTML;v=v.replace(/&nbsp;/g,"");var c=/<div><br><\/div>/g;v=v.replace(c,"");c=/<p><br><\/p>/g;v=v.replace(c,"");c=/<p><\/p>/g;v=v.replace(c,"");v=v.replace(/<br>/g,"");v=d.trim(v);null===v||""===v?(this._editorObj.set("value",""),a.add(this.verifySummaryExpression,"jimu-state-disabled")):a.remove(this.verifySummaryExpression,"jimu-state-disabled")}))),
this._editorObj.onLoadDeferred.then(d.hitch(this,function(){this._editorObj&&this._editorObj.hasOwnProperty("editNode")&&"title"in this._editorObj.editNode&&(null===this._editorObj.editNode.title||""===this._editorObj.editNode.title)&&(this._editorObj.editNode.title=this.nls.summaryTab.summaryEditorText);this._editorObj&&this._editorObj.hasOwnProperty("toolbar")&&this._editorObj.toolbar.hasOwnProperty("containerNode")&&new u({_editorObj:this._editorObj,inputOutputParamArray:this._inputOutputParamArray,
nls:this.nls},b.create("div",{"class":"summarySelectorDiv"},this._editorObj.toolbar.containerNode))})),this._editorObj.startup());this.autoZoomAfterTraceCheckedState?this.autoZoomAfterTrace.setValue(!0):this.autoZoomAfterTrace.setValue(!1)},displayInputOutputParameters:function(){this._displayInputOutputPanelParameters();this._regainExistingConfigurationData()},_regainExistingConfigurationData:function(){this.config.summaryExpression&&(""!==this._editorObj&&null!==this._editorObj&&void 0!==this._editorObj&&
(this._editorObj.focus(),this._editorObj.set("value",this.config.summaryExpression.summaryExpressionValue)),null===this.config.summaryExpression.summaryExpressionValue||""===this.config.summaryExpression.summaryExpressionValue?a.add(this.verifySummaryExpression,"jimu-state-disabled"):a.remove(this.verifySummaryExpression,"jimu-state-disabled"))},_displayInputOutputPanelParameters:function(){var v;this._inputOutputParamArray=[];this._inputOutputSelect=b.create("select",{"class":"esriCTPanelSelect",
size:2},this.inputOutputParameterPanel);for(v=0;v<this.inputParametersArray.length;v++){var c=b.create("option",{});c.innerHTML=this.inputParametersArray[v].name;c.value=this.inputParametersArray[v].name;c.title=this.inputParametersArray[v].name;f.set(c,"Type","Input");this._inputOutputSelect.appendChild(c);a.add(c,"esriCTInputOutputOptions");this._inputOutputParamArray.push(this.inputParametersArray[v])}for(v=0;v<this.outputParametersArray.length;v++)c=b.create("option",{}),c.innerHTML=this.outputParametersArray[v].name,
c.value=this.outputParametersArray[v].name,c.title=this.outputParametersArray[v].name,f.set(c,"Type","Output"),this.outputParametersArray[v]&&this.outputParametersArray[v].defaultValue&&this.outputParametersArray[v].defaultValue.geometryType?f.set(c,"GeometryType",this.outputParametersArray[v].defaultValue.geometryType):f.set(c,"GeometryType",null),this._inputOutputSelect.appendChild(c),a.add(c,"esriCTInputOutputOptions"),this._inputOutputParamArray.push(this.outputParametersArray[v]);f.set(this._inputOutputSelect,
"size",this._inputOutputParamArray.length);this._onInputOutputClick();this._insertBlankSelectInFieldPanel();this._insertBlankSelectInOperatorPanel();this._allocateEqualSizeToPanels()},_insertBlankSelectInFieldPanel:function(){this._fieldSelect=b.create("select",{"class":"esriCTFieldPanelSelect",size:2},this.fieldPanel);var v=b.create("option",{});v.innerHTML="";f.set(v,"disabled",!0);this._fieldSelect.appendChild(v);a.add(v,"esriCTBlankOptions")},_insertBlankSelectInOperatorPanel:function(){this._operatorSelect=
b.create("select",{"class":"esriCTOperatorPanelSelect",size:2},this.operatorPanel);var v=b.create("option",{});v.innerHTML="";f.set(v,"disabled",!0);this._operatorSelect.appendChild(v);a.add(v,"esriCTBlankOptions")},_emptyFieldPanel:function(){b.empty(this.fieldPanel);this._fieldSelect=null},_emptyOperatorPanel:function(){b.empty(this.operatorPanel);this._operatorSelect=null},_onInputOutputClick:function(){var v;this.own(g(this._inputOutputSelect,"click",d.hitch(this,function(c){v=f.get(c.currentTarget[c.currentTarget.selectedIndex],
"Type");"Input"===v?(a.add(this.addSummaryExpression,"jimu-state-disabled"),this._selectedInput=this._selectedOutput=this._selectedField=this._selectedOperator=null,this._selectedInput=c.currentTarget[c.currentTarget.selectedIndex],this._emptyFieldPanel(),this._emptyOperatorPanel(),this._insertBlankSelectInFieldPanel(),this._displayOperators(!0,!1,!1,!1),a.remove(this.operatorPanel,"esriCTHidden")):"Output"===v&&(this._selectedOutputGeometryType=f.get(c.currentTarget[c.currentTarget.selectedIndex],
"GeometryType"),this._selectedInput=this._selectedOutput=this._selectedField=this._selectedOperator=null,this._selectedOutput=c.currentTarget[c.currentTarget.selectedIndex],this._selectedOutputParameter=c,this._emptyFieldPanel(),this._emptyOperatorPanel(),this._displayOutputFields(),this._fetchAndDisplayOutputOperators())})))},_fetchAndDisplayOutputOperators:function(){a.add(this.addSummaryExpression,"jimu-state-disabled");this._displayOperators(!1,!0,!1,!1);this._fieldSelect.selectedIndex="-1"},
_displayOutputFields:function(){var v,c=[];b.empty(this.fieldPanel);c=this._inputOutputParamArray[this._selectedOutputParameter.currentTarget.selectedIndex].defaultValue.fields;this._fieldSelect=b.create("select",{"class":"esriCTFieldPanelSelect"},this.fieldPanel);for(v=0;v<c.length;v++)if("esriFieldTypeDouble"===c[v].type||"esriFieldTypeSmallInteger"===c[v].type||"esriFieldTypeInteger"===c[v].type){var n=b.create("option",{});n.innerHTML=c[v].name;n.value=c[v].name;n.title=c[v].name;this._fieldSelect.appendChild(n);
a.add(n,"esriCTInputOutputOptions")}this._onFieldClick();this._allocateEqualSizeToPanels()},_onFieldClick:function(){this.own(g(this._fieldSelect,"click",d.hitch(this,function(v){a.add(this.addSummaryExpression,"jimu-state-disabled");this._selectedField=null;this._selectedField=v.currentTarget[v.currentTarget.selectedIndex];this._displayOperators(!1,!1,!0,!1);this._allocateEqualSizeToPanels()})))},_displayOperators:function(v,c,n,C){var J=[];b.empty(this.operatorPanel);v?J.push(this.nls.summaryTab.inputOperatorCountOption):
c?(J.push(this.nls.summaryTab.outputOperatorCountOption),C&&J.push(this.nls.summaryTab.outputOperatorSkipCountOption)):n&&(J.push(this.nls.summaryTab.fieldOperatorSumOption),J.push(this.nls.summaryTab.fieldOperatorMinOption),J.push(this.nls.summaryTab.fieldOperatorMaxOption),J.push(this.nls.summaryTab.fieldOperatorMeanOption));this._operatorSelect=b.create("select",{"class":"esriCTPanelSelect",size:2},this.operatorPanel);for(c=0;c<J.length;c++)v=b.create("option",{}),v.innerHTML=J[c],v.value=J[c],
v.title=J[c],this._operatorSelect.appendChild(v),a.add(v,"esriCTInputOutputOptions");this._selectOperator();this._allocateEqualSizeToPanels()},refreshOperator:function(){!this._selectedField&&this._selectedOutput&&(this._fetchAndDisplayOutputOperators(),this._selectedOperator&&this._selectedOperator.value===this.nls.summaryTab.outputOperatorCountOption&&this._operatorSelect&&(this._operatorSelect.selectedIndex=0,a.remove(this.addSummaryExpression,"jimu-state-disabled")))},_selectOperator:function(){this.own(g(this._operatorSelect,
"click",d.hitch(this,function(v){this._selectedOperator=null;this._selectedOperator=v.currentTarget[v.currentTarget.selectedIndex];null===this._selectedInput&&null===this._selectedOutput||null===this._selectedOperator||a.remove(this.addSummaryExpression,"jimu-state-disabled")})))},_allocateEqualSizeToPanels:function(){var v,c;var n=c=v=0;this._inputOutputSelect&&0<this._inputOutputSelect.length&&(v=this._inputOutputSelect.length);this._fieldSelect&&0<this._fieldSelect.length&&(c=this._fieldSelect.length);
this._operatorSelect&&0<this._operatorSelect.length&&(n=this._operatorSelect.length);v=Math.max(v,c,n);this._inputOutputSelect&&f.set(this._inputOutputSelect,"size",v);this._fieldSelect&&f.set(this._fieldSelect,"size",v);this._operatorSelect&&f.set(this._operatorSelect,"size",v);this._removeClassFromChildNodes();this._inputOutputSelect&&this._inputOutputSelect.length===v&&a.add(this._inputOutputSelect.childNodes[v-1],"esriCTInputOutputOptionsBorderNone");this._fieldSelect&&this._fieldSelect.length===
v&&a.add(this._fieldSelect.childNodes[v-1],"esriCTInputOutputOptionsBorderNone");this._operatorSelect&&this._operatorSelect.length===v&&a.add(this._operatorSelect.childNodes[v-1],"esriCTInputOutputOptionsBorderNone")},_removeClassFromChildNodes:function(){var v;if(this._inputOutputSelect)for(v=0;v<this._inputOutputSelect.childNodes.length;v++)a.remove(this._inputOutputSelect.childNodes[v],"esriCTInputOutputOptionsBorderNone");if(this._fieldSelect)for(v=0;v<this._fieldSelect.childNodes.length;v++)a.remove(this._fieldSelect.childNodes[v],
"esriCTInputOutputOptionsBorderNone");if(this._operatorSelect)for(v=0;v<this._operatorSelect.childNodes.length;v++)a.remove(this._operatorSelect.childNodes[v],"esriCTInputOutputOptionsBorderNone")},_onClickAddExpressionBtn:function(){if(!a.contains(this.addSummaryExpression,"jimu-state-disabled")){var v=!1;null!==this._selectedInput&&null!==this._selectedOperator?(this._editorObj.focus(),this._editorObj.execCommand("inserthtml","{"+this._selectedInput.value+":"+this._selectedOperator.value+"}"),v=
!0):null!==this._selectedOutput&&null===this._selectedField&&null!==this._selectedOperator?(this._editorObj.focus(),this._editorObj.execCommand("inserthtml","{"+this._selectedOutput.value+":"+this._selectedOperator.value+"}"),v=!0):null!==this._selectedOutput&&null!==this._selectedField&&null!==this._selectedOperator&&(this._editorObj.focus(),this._editorObj.execCommand("inserthtml","{"+this._selectedOutput.value+":"+this._selectedField.value+":"+this._selectedOperator.value+"}"),v=!0);!0===v&&a.contains(this.verifySummaryExpression,
"jimu-state-disabled")&&a.remove(this.verifySummaryExpression,"jimu-state-disabled")}},_onClickVerifyExpressionBtn:function(){a.contains(this.verifySummaryExpression,"jimu-state-disabled")||this.validateExpression(!0)},_errorMessage:function(v){(new p({message:v})).message=v},getSummaryExpressionConfigData:function(){var v={summaryExpressionValueArr:[]};v.summaryExpressionValue=this._editorObj.value;v.summaryExpressionValue.replace(/\{(.+?)\}/g,function(c,n){c={};c.value=n;c.trimmedValue=n.replace(/\s/g,
"");v.summaryExpressionValueArr.push(c)});v.summaryExpressionTrimmedValue=this._getSummaryExpressionFilteredValue(v.summaryExpressionValueArr);v.summaryExpressionNLS=this.nls.summaryTab;v.autoZoomAfterTrace=this.getAutoZoomAfterTraceConfigData();return v},getAutoZoomAfterTraceConfigData:function(){return this.autoZoomAfterTrace.getValue()},_getSummaryExpressionFilteredValue:function(v){var c;var n=this._editorObj.value;for(c=0;c<v.length;c++){var C=new RegExp(v[c].value,"g");n=n.replace(C,v[c].trimmedValue)}return n},
validateExpressionOnOkClick:function(){return this.validateExpression(!1)},_validateExpressionEntry:function(v){var c,n;for(c=0;c<v.length;c++){var C=v[c].split(":");for(n=0;n<C.length;n++)if(0===n){var J=this._validateInputOutputEntry(C[0]);if(!J)return!1}else if(1===n&&2===C.length){if(J=this._validateInputOutputOperatorEntry(C[0],C[1]),!J)return!1}else if(1===n&&3===C.length){if(J=this._validateFieldEntry(C[0],C[1]),!J)return!1}else if(2===n&&3===C.length&&(J=this._validateFieldOperatorEntry(C[2]),
!J))return!1}return!0},_validateInputOutputEntry:function(v){var c;var n=!1;for(c=0;c<this.inputParametersArray.length;c++)v===this.inputParametersArray[c].name&&(n=!0);for(c=0;c<this.outputParametersArray.length;c++)v===this.outputParametersArray[c].name&&(n=!0);return n},_validateInputOutputOperatorEntry:function(v,c){var n;var C=!1;this._outputLayerSettingsArr=[];this._outputLayerSettingsArr=this.getOutputSettings();for(n=0;n<this._outputLayerSettingsArr.length;n++)if(this._outputLayerSettingsArr[n].paramName===
v){c===this.nls.summaryTab.outputOperatorCountOption&&(C=!0);break}if(!C)for(n=0;n<this.inputParametersArray.length;n++)if(this.inputParametersArray[n].name===v){c===this.nls.summaryTab.inputOperatorCountOption&&(C=!0);break}return C},_validateFieldEntry:function(v,c){for(var n=!1,C=0;C<this._inputOutputParamArray.length;C++)if(v===this._inputOutputParamArray[C].name)for(var J=0;J<this._inputOutputParamArray[C].defaultValue.fields.length;J++)c===this._inputOutputParamArray[C].defaultValue.fields[J].name&&
(n=!0);return n},_validateFieldOperatorEntry:function(v){var c=!1;if(v===this.nls.summaryTab.fieldOperatorSumOption||v===this.nls.summaryTab.fieldOperatorMinOption||v===this.nls.summaryTab.fieldOperatorMaxOption||v===this.nls.summaryTab.fieldOperatorMeanOption)c=!0;return c},validateExpression:function(v){var c;var n=[];var C=this._editorObj.value;""!==C&&null!==C&&0===n.length&&C.replace(/\{(.+?)\}/g,function(M,P){c=P.replace(/\s/g,"");n.push(c)});var J=!0;0<n.length&&(J=this._validateExpressionEntry(n));
-1!==C.indexOf("{}")&&(J=!1);if(!0===J)if(v)this._errorMessage(this.nls.validationErrorMessage.validSummaryExpression);else return{returnErr:"",returnFlag:!1};else if(v)this._errorMessage(this.nls.validationErrorMessage.invalidSummaryExpression);else return{returnErr:this.nls.validationErrorMessage.invalidSummaryExpression,returnFlag:!0}},onProjectSettingsChanged:function(v){""!==this._outputTable&&null!==this._outputTable&&void 0!==this._outputTable&&G.forEach(this._outputTable.getRows(),d.hitch(this,
function(c){var n=!0;v&&v.polygonLayerId&&v.pointLayerId&&v.outputParamName&&(n=!1,c.config.paramName===v.outputParamName&&(n=!0));c&&c.layerSelector.set("disabled",n)}))},_createOutputTable:function(){this._outputTable=new e({fields:[{name:"visibility",title:this.nls.summaryTab.visibilityText,type:"checkbox",width:"10%"},{name:"displayName",title:this.nls.summaryTab.outputParametersText,type:"text",width:"20%"},{name:"saveToLayer",title:"",type:"empty",width:"26%"},{name:"skipable",title:this.nls.summaryTab.skipText,
type:"checkbox",width:"12%"},{name:"exportToCSV",title:this.nls.summaryTab.exportToCsvText,type:"checkbox",width:"12%"},{name:"symbol",title:this.nls.summaryTab.symbol,type:"empty",width:"10%"},{name:"settings",title:this.nls.summaryTab.settitngstext,type:"empty",width:"10%"}],selectable:!1});this._outputTable.placeAt(this.outputTableNode);this._outputTable.startup();this._addSaveToLayerMainDiv();this._addHelpIconToHeader();this.setOutputSettings();this.onProjectSettingsChanged(this.projectSettings)},
_addSaveToLayerMainDiv:function(){var v=l(".simple-table-thead tr",this.domNode);""!==v&&null!==v&&void 0!==v&&0<v.length&&(v=v[0]);v&&(v=v.children[2])&&(v=b.create("div",{"class":"esriCTSaveToLayerMainDiv"},v),b.create("div",{"class":"esriCTSaveToLayerLabelDiv",innerHTML:this.nls.summaryTab.saveToLayerText,title:this.nls.summaryTab.saveToLayerText},v))},_addHelpIconToHeader:function(){var v;var c=l(".simple-table-thead tr",this.domNode);""!==c&&null!==c&&void 0!==c&&0<c.length&&(c=c[0]);if(c){var n=
c.children[2];n=n.childNodes[0];c.children[4]&&(v=c.children[4])}v&&v.childNodes&&v.childNodes[0]&&v.childNodes[0].hasAttribute("id")&&(c=y.byId(v.childNodes[0].id))&&(c.setLabel(this.nls.summaryTab.exportToCsvDisplayText),c.domNode&&c.domNode.children&&c.domNode.children[1]&&f.set(c.domNode.children[1],"title",this.nls.summaryTab.exportToCsvText));n=b.create("div",{"class":"esriCTSaveTolayerHelpIcon"},n);g(n,"click",d.hitch(this,function(){new p({message:this.nls.summaryTab.saveToLayerHelp})}))},
setOutputSettings:function(){this.outputConfig&&0<this.outputConfig.length&&G.forEach(this.outputConfig,d.hitch(this,function(v){var c=this._outputTable.addRow(v);var n=l(".simple-table-cell",c.tr);c.tr.config=v;if("esriGeometryPoint"!==v.data.defaultValue.geometryType||!this.hasSkipLocationsInput){var C=l(".skipable",c.tr);G.forEach(C,function(J){J=y.getEnclosingWidget(J.childNodes[0]);J.setValue(!1);J.setStatus(!1)})}n&&(this._addSaveToLayerDropDown(n[2],c.tr),this._addSymbolPicker(n[5],c.tr,v),
this._addSettingsIcon(n[6],c.tr))}))},_addSaveToLayerDropDown:function(v,c){v=b.create("div",{"class":"esriCTDropDownContainer"},v);var n=this._createSaveToLayerOptions(c.config.data.defaultValue.geometryType);n=new B({options:n,"class":"esriCTLayerFieldSelector"});n.placeAt(v);n.startup();c.layerSelector=n;c.config&&c.config.saveToLayer&&n.set("value",c.config.saveToLayer)},_addSettingsIcon:function(v,c){v=b.create("div",{},v);v=b.create("div",{"class":"esriCTToleranceSettingsIcon",title:this.nls.summaryTab.settitngstext},
b.create("div",{},v));this.own(g(v,"click",d.hitch(this,function(){this._createOutputPanel(c)})))},_createSaveToLayerOptions:function(v){var c,n=[];n.push({value:"",label:this.nls.projectSetting.selectLabel});if(this.map&&this.map.itemInfo&&this.map.itemInfo.itemData&&this.map.itemInfo.itemData.operationalLayers){var C=this.map.itemInfo.itemData.operationalLayers;for(c=0;c<C.length;c++){var J;C[c]&&C[c].layerObject&&C[c].layerType&&"ArcGISFeatureLayer"===C[c].layerType&&C[c].layerObject.fields&&v===
C[c].layerObject.geometryType&&this._validateLayerCapabilities(C[c].layerObject)&&(J=this._validateLayerFields(C[c].layerObject.fields))&&(J={value:C[c].id,layerId:C[c].id,guidField:J.projectidField,parameterNameField:J.parameterNameField,label:C[c].title},n.push(J))}}return n},_addSymbolPicker:function(v,c,n){var C={},J="";var M=n&&n.data&&n.data.defaultValue&&n.data.defaultValue.geometryType?n.data.defaultValue.geometryType:"esriGeometryPoint";n.displayName&&(J=n.displayName);C.symbol=c.symbol?
k.fromJson(c.symbol):n&&n.symbol?k.fromJson(n.symbol):k.fromJson(this._getFallbackSymbol(M));var P={symbolChooserTitle:J,symbolParams:C,nls:this.nls,symbolType:"graphicLocationSymbol"},Q=b.create("div",{style:"height: 27px; overflow: hidden;"},v);this._showSelectedSymbol(Q,C.symbol,c,M);this.own(g(Q,"click",d.hitch(this,function(){P.symbolParams.symbol=k.fromJson(c.symbol);this._initSymbolChooserPopup(P,Q,c,M)})))},_showSelectedSymbol:function(v,c,n,C){b.empty(v);if(c){if(26<c.height){var J=d.clone(c.height);
c.height=26}if(26<c.width){var M=d.clone(c.width);c.width=26}if(20<c.size){var P=d.clone(c.size);c.size=20}var Q=t.createSymbolNode(c);Q||(Q=b.create("div"));b.place(Q,v);J&&(c.height=J);M&&(c.width=M);P&&(c.size=P);switch(C){case "esriGeometryPoint":H.set(v,"margin","0 24px");break;case "esriGeometryPolyline":H.set(Q,"width","27px"),H.set(Q,"overflow","hidden"),H.set(Q,"margin","0 24px")}n.symbol=c.toJson()}},_createOutputPanel:function(v){var c="";c=v.config.displayName;var n=b.create("div");var C=
b.create("div",{"class":"ParameterDiv esriCTtaskDataContainer",style:{"max-height":"395px"}},n);C=b.create("div",{"class":"section common-property"},C);var J=b.create("div",{"class":"field esriCTOutputOutageField",title:this.nls.summaryTab.inputLabel},C);b.create("label",{innerHTML:this.nls.summaryTab.inputLabel,title:this.nls.summaryTab.inputLabel},J);this.labelTextbox=new r({required:!0,"class":"common-input esriCTLabelClass"},b.create("div",{},J));this.labelTextbox.set("value",v.config.panelText);
b.create("div",{"class":"esriCTHintField",innerHTML:this.nls.hintText.labelTextHint},J);J=b.create("div",{"class":"field esriCTOutputOutageField",title:this.nls.summaryTab.inputTooltip},C);b.create("label",{innerHTML:this.nls.summaryTab.inputTooltip,title:this.nls.summaryTab.inputTooltip},J);this.tooltipTextbox=new r({"class":"common-input esriCTTooltipDataClass"},b.create("div",{},J));this.tooltipTextbox.set("value",v.config.toolTip);J=b.create("div",{"class":"field esriCTOutputOutageField",title:this.nls.summaryTab.outputDisplay},
C);b.create("label",{innerHTML:this.nls.summaryTab.outputDisplay,title:this.nls.summaryTab.outputDisplay},J);var M=b.create("div",{"class":"edit-description-box"},J),P=b.create("div",{"class":"esriCTAddFieldContainer",title:this.nls.summaryTab.addFieldTitle},M);this.editorDescription=b.create("div",{},M);b.create("div",{"class":"esriCTHintField",innerHTML:this.nls.hintText.displayTextHint},J);this._initSymbolSelectionEditor();this._createFieldSelector(P,this._editorObjSymbolSelector,v.config.data.defaultValue.fields);
this._editorObjSymbolSelector.set("value",v.config.displayText);J=b.create("div",{"class":"field esriCTOutputOutageField",title:this.nls.summaryTab.setScale},C);b.create("label",{innerHTML:this.nls.summaryTab.setScale,title:this.nls.summaryTab.setScale},J);C=this._getSaveToLayerInfo(v.layerSelector);J=new b.create("div",{"class":"esriCTSliderContainer"},J);this._createSlider(J,v.config,C);var Q=new D({titleLabel:c,width:875,maxHeight:800,autoHeight:!0,content:n,"class":this.baseClass,buttons:[{label:this.nls.common.ok,
onClick:d.hitch(this,function(){this.labelTextbox.isValid()?(v.config.panelText=this.labelTextbox.get("value"),v.config.toolTip=this.tooltipTextbox.get("value"),v.config.displayText=this._editorObjSymbolSelector.get("value"),v.config.MinScale=this._visibleScaleRangeSlider.minScale,v.config.MaxScale=this._visibleScaleRangeSlider.maxScale,this._destroyEditorWidget(),Q.close()):this.labelTextbox.focus()})},{label:this.nls.common.cancel,classNames:["jimu-btn-vacation"],onClick:d.hitch(this,function(){this._destroyEditorWidget();
Q.close()})}],onClose:d.hitch(this,function(){this._destroyEditorWidget()})})},_initSymbolSelectionEditor:function(){this._loadedPluginCSS||(this._loadedPluginCSS=!0,this._initEditorPluginsCSS());this._editorObjSymbolSelector=new m({plugins:["bold","italic","underline",z.getEditorTextColor("networkTrace"),z.getEditorBackgroundColor("networkTrace"),"|","justifyLeft","justifyCenter","justifyRight","justifyFull","|","insertOrderedList","insertUnorderedList","indent","outdent"],extraPlugins:["|","createLink",
"unlink","pastefromword","|","undo","redo","|","toolbarlinebreak",{name:"dijit._editor.plugins.FontChoice",command:"fontName",custom:"Arial;Comic Sans MS;Courier New;Garamond;Tahoma;Times New Roman;Verdana".split(";")},"fontSize","formatBlock"],style:"font-family:Verdana;"},this.editorDescription);H.set(this._editorObjSymbolSelector.domNode,{width:"100%",height:"100%"});this._editorObjSymbolSelector.startup();if(8!==O("ie"))this._editorObjSymbolSelector.resize({w:"100%",h:"100%"});else{var v=h.getMarginBox(this.editorDescription);
this._editorObjSymbolSelector.resize({w:v.w,h:v.h})}this.own(g(this._editorObjSymbolSelector,"focus",d.hitch(this,function(){this._editorObjSymbolSelector.get("value")===this.nls.summaryTab.enterDisplayText&&this._editorObjSymbolSelector.set("value","")})))},_createFieldSelector:function(v,c,n){(new N({fields:n,showOnlyNumericFields:!1,skipObjectIdField:!0,hideOnSelect:!0},b.create("div",{},v))).onSelect=d.hitch(this,function(C){c.get("value")===this.nls.summaryTab.enterDisplayText&&c.set("value",
"");C=c.get("value")+"{"+C.name+"}";c.set&&c.set("value",C)})},_getSaveToLayerInfo:function(v){var c={saveToLayerId:"",guidField:"",parameterNameField:""};v&&v.get("value")&&(v=v._getSelectedOptionsAttr(),c.saveToLayerId=v.layerId,c.guidField=v.guidField,c.parameterNameField=v.parameterNameField);return c},_createSlider:function(v,c,n){n&&n.saveToLayerId&&0===c.MinScale&&0===c.MaxScale?(c=this.map.getLayer(n.saveToLayerId),this._visibleScaleRangeSlider=new x({map:this.map,layer:c},b.create("div",
{},v))):(this._visibleScaleRangeSlider=new x({map:this.map},b.create("div",{},v)),this._visibleScaleRangeSlider.set("minScale",c.MinScale),this._visibleScaleRangeSlider.set("maxScale",c.MaxScale));this._visibleScaleRangeSlider.startup()},_destroyEditorWidget:function(){this._editorObjSymbolSelector&&(this._editorObjSymbolSelector.destroy(),this._editorObjSymbolSelector=null)},_validateLayerCapabilities:function(v){return v&&v.getEditCapabilities&&(v=v.getEditCapabilities(),v.canCreate&&v.canUpdate&&
v.canDelete)?!0:!1},_validateLayerFields:function(v){var c;var n={projectidField:null,parameterNameField:null};var C=c=!1;G.some(v,function(J){"esriFieldTypeGUID"===J.type&&J.editable&&"projectid"===J.name.toLowerCase()&&(n.projectidField=J.name,C=!0);"esriFieldTypeString"===J.type&&J.editable&&"parametername"===J.name.toLowerCase()&&(n.parameterNameField=J.name,c=!0);if(c&&C)return!0});c&&C||(n=null);return n},_initSymbolChooserPopup:function(v,c,n,C){var J=new q(v);J.onOkClick=d.hitch(this,function(){var M=
J.symbolChooser.getSymbol();this._showSelectedSymbol(c,M,n,C);J.popup.close()})},getOutputSettings:function(){var v=[];G.forEach(this._outputTable.getRows(),d.hitch(this,function(c){var n={};if(c){var C=this._outputTable.getRowData(c);n=this._getSaveToLayerInfo(c.layerSelector);n={visibility:C.visibility,paramName:c.config.paramName,type:"Result",panelText:c.config.panelText,toolTip:c.config.toolTip,displayName:C.displayName,displayText:c.config.displayText,MinScale:c.config.MinScale,MaxScale:c.config.MaxScale,
exportToCSV:C.exportToCSV,saveToLayer:n.saveToLayerId,guidField:n.guidField,parameternameField:n.parameterNameField,symbol:c.symbol};n.bypassDetails={skipable:C.skipable};v.push(n)}}));return v},_initEditorPluginsCSS:function(){var v=document.getElementsByTagName("head")[0];var c=window.apiUrl+"dojox/editor/plugins/resources/css/TextColor.css";l('link[href\x3d"'+c+'"]',v)[0]||z.loadStyleLink("editor_plugins_resources_TextColor",c);c=window.apiUrl+"dojox/editor/plugins/resources/editorPlugins.css";
l('link[href\x3d"'+c+'"]',v)[0]||z.loadStyleLink("editor_plugins_resources_editorPlugins",c);c=window.apiUrl+"dojox/editor/plugins/resources/css/PasteFromWord.css";l('link[href\x3d"'+c+'"]',v)[0]||z.loadStyleLink("editor_plugins_resources_PasteFromWord",c)},_getFallbackSymbol:function(v){v||(v="esriGeometryPoint");switch(v){case "esriGeometryPoint":var c={color:[0,0,128,128],outline:{color:[0,0,128,255],width:.75,type:"esriSLS",style:"esriSLSSolid"},size:18,type:"esriSMS",style:"esriSMSCircle"};break;
case "esriGeometryPolygon":c={color:[155,187,89,129],outline:{color:[115,140,61,255],width:1.5,type:"esriSLS",style:"esriSLSSolid"},type:"esriSFS",style:"esriSFSSolid"};break;case "esriGeometryPolyline":c={color:[155,187,89,255],type:"esriSLS",style:"esriSLSSolid",width:2.25}}return c}})})},"dijit/Editor":function(){define("require dojo/_base/array dojo/_base/declare dojo/Deferred dojo/i18n dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/sniff dojo/string dojo/topic ./_Container ./Toolbar ./ToolbarSeparator ./layout/_LayoutWidget ./form/ToggleButton ./_editor/_Plugin ./_editor/plugins/EnterKeyHandling ./_editor/html ./_editor/range ./_editor/RichText ./main dojo/i18n!./_editor/nls/commands".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N,x){function D(z){return new k({command:z.name})}function q(z){return new k({buttonClass:B,command:z.name})}L=L("dijit.Editor",N,{plugins:null,extraPlugins:null,constructor:function(){m.isArray(this.plugins)||(this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",t]);this._plugins=
[];this._editInterval=1E3*this.editActionInterval;if(h("ie")||h("trident")||h("edge"))this.events.push("onBeforeDeactivate"),this.events.push("onBeforeActivate")},postMixInProperties:function(){this.setValueDeferred=new I;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);m.isArray(this.extraPlugins)&&(this.plugins=this.plugins.concat(this.extraPlugins));this.commands=E.getLocalization("dijit._editor",
"commands",this.lang);h("webkit")&&g.set(this.domNode,"KhtmlUserSelect","none")},startup:function(){this.inherited(arguments);this.toolbar||(this.toolbar=new e({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id}),this.header.appendChild(this.toolbar.domNode));F.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(!0);b.add(this.iframe.parentNode,"dijitEditorIFrameContainer");b.add(this.iframe,"dijitEditorIFrame");a.set(this.iframe,"allowTransparency",
!0);this.toolbar.startup();this.onNormalizedDisplayChanged()},destroy:function(){F.forEach(this._plugins,function(z){z&&z.destroy&&z.destroy()});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments)},addPlugin:function(z,O){var v=m.isString(z)?{name:z}:m.isFunction(z)?{ctor:z}:z;if(!v.setEditor){var c={args:v,plugin:null,editor:this};v.name&&(k.registry[v.name]?c.plugin=k.registry[v.name](v):u.publish(x._scopeName+".Editor.getPlugin",c));if(!c.plugin)try{var n=
v.ctor||m.getObject(v.name)||w(v.name);n&&(c.plugin=new n(v))}catch(C){throw Error(this.id+": cannot find plugin ["+v.name+"]");}if(!c.plugin)throw Error(this.id+": cannot find plugin ["+v.name+"]");z=c.plugin}1<arguments.length?this._plugins[O]=z:this._plugins.push(z);z.setEditor(this);m.isFunction(z.setToolbar)&&z.setToolbar(this.toolbar)},resize:function(z){z&&y.prototype.resize.apply(this,arguments)},layout:function(){var z=this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+d.getPadBorderExtents(this.iframe.parentNode).h+
d.getMarginExtents(this.iframe.parentNode).h);this.editingArea.style.height=z+"px";this.iframe&&(this.iframe.style.height="100%");this._layoutMode=!0},_onIEMouseDown:function(z){var O,v=this.document.body,c=v.clientWidth,n=v.clientHeight,C=v.clientLeft,J=v.offsetWidth,M=v.offsetHeight,P=v.offsetLeft;/^rtl$/i.test(v.dir||"")?c<J&&z.x>c&&z.x<J&&(O=!0):z.x<C&&z.x>P&&(O=!0);O||n<M&&z.y>n&&z.y<M&&(O=!0);O||(delete this._cursorToStart,delete this._savedSelection,"BODY"==z.target.tagName&&this.defer("placeCursorAtEnd"),
this.inherited(arguments))},onBeforeActivate:function(){this._restoreSelection()},onBeforeDeactivate:function(z){this.customUndo&&this.endEditing(!0);"BODY"!=z.target.tagName&&this._saveSelection()},customUndo:!0,editActionInterval:3,beginEditing:function(z){this._inEditing||(this._inEditing=!0,this._beginEditing(z));0<this.editActionInterval&&(this._editTimer&&this._editTimer.remove(),this._editTimer=this.defer("endEditing",this._editInterval))},_steps:[],_undoedSteps:[],execCommand:function(z){if(!this.customUndo||
"undo"!=z&&"redo"!=z){this.customUndo&&(this.endEditing(),this._beginEditing());var O=this.inherited(arguments);this.customUndo&&this._endEditing();return O}return this[z]()},_pasteImpl:function(){return this._clipboardCommand("paste")},_cutImpl:function(){return this._clipboardCommand("cut")},_copyImpl:function(){return this._clipboardCommand("copy")},_clipboardCommand:function(z){try{var O=this.document.execCommand(z,!1,null);if(h("webkit")&&!O)throw{};}catch(v){O=p.substitute,alert(O(this.commands.systemShortcut,
[this.commands[z],O(this.commands[h("mac")?"appleKey":"ctrlKey"],[{cut:"X",copy:"C",paste:"V"}[z]])])),O=!1}return O},queryCommandEnabled:function(z){return!this.customUndo||"undo"!=z&&"redo"!=z?this.inherited(arguments):"undo"==z?1<this._steps.length:0<this._undoedSteps.length},_moveToBookmark:function(z){var O=z.mark,v=z.mark;z=z.isCollapsed;var c;if(v)if(9>h("ie")||9===h("ie")&&h("quirks"))if(m.isArray(v))O=[],F.forEach(v,function(J){O.push(r.getNode(J,this.editNode))},this),this.selection.moveToBookmark({mark:O,
isCollapsed:z});else{if(v.startContainer&&v.endContainer&&(c=r.getSelection(this.window))&&c.removeAllRanges){c.removeAllRanges();z=r.create(this.window);var n=r.getNode(v.startContainer,this.editNode);var C=r.getNode(v.endContainer,this.editNode);n&&C&&(z.setStart(n,v.startOffset),z.setEnd(C,v.endOffset),c.addRange(z))}}else(c=r.getSelection(this.window))&&c.removeAllRanges&&(c.removeAllRanges(),z=r.create(this.window),n=r.getNode(v.startContainer,this.editNode),C=r.getNode(v.endContainer,this.editNode),
n&&C&&(z.setStart(n,v.startOffset),z.setEnd(C,v.endOffset),c.addRange(z)))},_changeToStep:function(z,O){this.setValue(O.text);(z=O.bookmark)&&this._moveToBookmark(z)},undo:function(){var z=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var O=this._steps.pop();O&&0<this._steps.length&&(this.focus(),this._changeToStep(O,this._steps[this._steps.length-1]),this._undoedSteps.push(O),this.onDisplayChanged(),delete this._undoRedoActive,z=!0);delete this._undoRedoActive}return z},
redo:function(){var z=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var O=this._undoedSteps.pop();O&&0<this._steps.length&&(this.focus(),this._changeToStep(this._steps[this._steps.length-1],O),this._steps.push(O),this.onDisplayChanged(),z=!0);delete this._undoRedoActive}return z},endEditing:function(z){this._editTimer&&(this._editTimer=this._editTimer.remove());this._inEditing&&(this._endEditing(z),this._inEditing=!1)},_getBookmark:function(){var z=this.selection.getBookmark(),
O=[];if(z&&z.mark){var v=z.mark;if(9>h("ie")||9===h("ie")&&h("quirks")){var c=r.getSelection(this.window);if(m.isArray(v))F.forEach(z.mark,function(C){O.push(r.getIndex(C,this.editNode).o)},this),z.mark=O;else if(c){var n;c.rangeCount&&(n=c.getRangeAt(0));z.mark=n?n.cloneRange():this.selection.getBookmark()}}try{z.mark&&z.mark.startContainer&&(O=r.getIndex(z.mark.startContainer,this.editNode).o,z.mark={startContainer:O,startOffset:z.mark.startOffset,endContainer:z.mark.endContainer===z.mark.startContainer?
O:r.getIndex(z.mark.endContainer,this.editNode).o,endOffset:z.mark.endOffset})}catch(C){z.mark=null}}return z},_beginEditing:function(){0===this._steps.length&&this._steps.push({text:H.getChildrenHtml(this.editNode),bookmark:this._getBookmark()})},_endEditing:function(){var z=H.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:z,bookmark:this._getBookmark()})},onKeyDown:function(z){h("ie")||this.iframe||z.keyCode!=f.TAB||this.tabIndent||this._saveSelection();if(this.customUndo){var O=
z.keyCode;if(z.ctrlKey&&!z.shiftKey&&!z.altKey){if(90==O||122==O){z.stopPropagation();z.preventDefault();this.undo();return}if(89==O||121==O){z.stopPropagation();z.preventDefault();this.redo();return}}this.inherited(arguments);switch(O){case f.ENTER:case f.BACKSPACE:case f.DELETE:this.beginEditing();break;case 88:case 86:if(z.ctrlKey&&!z.altKey&&!z.metaKey){this.endEditing();88==z.keyCode?this.beginEditing("cut"):this.beginEditing("paste");this.defer("endEditing",1);break}default:if(!z.ctrlKey&&!z.altKey&&
!z.metaKey&&(z.keyCode<f.F1||z.keyCode>f.F15)){this.beginEditing();break}case f.ALT:this.endEditing();break;case f.UP_ARROW:case f.DOWN_ARROW:case f.LEFT_ARROW:case f.RIGHT_ARROW:case f.HOME:case f.END:case f.PAGE_UP:case f.PAGE_DOWN:this.endEditing(!0);case f.CTRL:case f.SHIFT:case f.TAB:}}else this.inherited(arguments)},_onBlur:function(){this.inherited(arguments);this.endEditing(!0)},_saveSelection:function(){try{this._savedSelection=this._getBookmark()}catch(z){}},_restoreSelection:function(){this._savedSelection&&
(delete this._cursorToStart,this.selection.isCollapsed()&&this._moveToBookmark(this._savedSelection),delete this._savedSelection)},onClick:function(){this.endEditing(!0);this.inherited(arguments)},replaceValue:function(z){this.customUndo?this.isClosed?this.setValue(z):(this.beginEditing(),z||(z="\x26#160;"),this.setValue(z),this.endEditing()):this.inherited(arguments)},_setDisabledAttr:function(z){this.setValueDeferred.then(m.hitch(this,function(){!this.disabled&&z||!this._buttonEnabledPlugins&&z?
F.forEach(this._plugins,function(O){O.set("disabled",!0)}):this.disabled&&!z&&F.forEach(this._plugins,function(O){O.set("disabled",!1)})}));this.inherited(arguments)},_setStateClass:function(){try{this.inherited(arguments),this.document&&this.document.body&&(g.set(this.document.body,"color",g.get(this.iframe,"color")),g.set(this.document.body,"background-color",g.get(this.iframe,"background-color")))}catch(z){}}});m.mixin(k.registry,{undo:D,redo:D,cut:D,copy:D,paste:D,insertOrderedList:D,insertUnorderedList:D,
indent:D,outdent:D,justifyCenter:D,justifyFull:D,justifyLeft:D,justifyRight:D,"delete":D,selectAll:D,removeFormat:D,unlink:D,insertHorizontalRule:D,bold:q,italic:q,underline:q,strikethrough:q,subscript:q,superscript:q,"|":function(){return new k({setEditor:function(z){this.editor=z;this.button=new l({ownerDocument:z.ownerDocument})}})}});return L})},"dijit/Toolbar":function(){define("require dojo/_base/declare dojo/has dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),
function(w,F,L,I,E,a,b,d){L("dijit-legacy-requires")&&E(0,function(){w(["dijit/ToolbarSeparator"])});return F("dijit.Toolbar",[a,d,b],{templateString:'\x3cdiv class\x3d"dijit" role\x3d"toolbar" tabIndex\x3d"${tabIndex}" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})})},"dijit/ToolbarSeparator":function(){define(["dojo/_base/declare","dojo/dom","./_Widget","./_TemplatedMixin"],
function(w,F,L,I){return w("dijit.ToolbarSeparator",[L,I],{templateString:'\x3cdiv class\x3d"dijitToolbarSeparator dijitInline" role\x3d"presentation"\x3e\x3c/div\x3e',buildRendering:function(){this.inherited(arguments);F.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/_editor/_Plugin":function(){define(["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(w,F,L,I,E){F=F("dijit._editor._Plugin",I,{constructor:function(a){this.params=
a||{};L.mixin(this,this.params);this._attrPairNames={}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:!0,buttonClass:E,disabled:!1,getLabel:function(a){return this.editor.commands[a]},_initButton:function(){if(this.command.length){var a=this.getLabel(this.command),b=this.editor,d=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);this.button||(a=L.mixin({label:a,ownerDocument:b.ownerDocument,dir:b.dir,
lang:b.lang,showLabel:!1,iconClass:d,dropDown:this.dropDown,tabIndex:"-1"},this.params||{}),delete a.name,this.button=new this.buttonClass(a))}this.get("disabled")&&this.button&&this.button.set("disabled",this.get("disabled"))},destroy:function(){this.dropDown&&this.dropDown.destroyRecursive();this.inherited(arguments)},connect:function(a,b,d){this.own(w.connect(a,b,this,d))},updateState:function(){var a=this.editor,b=this.command;if(a&&a.isLoaded&&b.length){var d=this.get("disabled");if(this.button)try{var g=
a._implCommand(b);var f=!d&&(this[g]?this[g](b):a.queryCommandEnabled(b));this.enabled!==f&&(this.enabled=f,this.button.set("disabled",!f));if(f&&"boolean"==typeof this.button.checked){var m=a.queryCommandState(b);this.checked!==m&&(this.checked=m,this.button.set("checked",a.queryCommandState(b)))}}catch(h){console.log(h)}}},setEditor:function(a){this.editor=a;this._initButton();this.button&&this.useDefaultCommand&&(this.editor.queryCommandAvailable(this.command)?this.own(this.button.on("click",L.hitch(this.editor,
"execCommand",this.command,this.commandArg))):this.button.domNode.style.display="none");this.own(this.editor.on("NormalizedDisplayChanged",L.hitch(this,"updateState")))},setToolbar:function(a){this.button&&a.addChild(this.button)},set:function(a,b){if("object"===typeof a){for(var d in a)this.set(d,a[d]);return this}d=this._getAttrNames(a);if(this[d.s])var g=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else this._set(a,b);return g||this},get:function(a){var b=this._getAttrNames(a);
return this[b.g]?this[b.g]():this[a]},_setDisabledAttr:function(a){this._set("disabled",a);this.updateState()},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var d=a.charAt(0).toUpperCase()+a.substr(1);return b[a]={s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(a,b){this[a]=b}});F.registry={};return F})},"dijit/_editor/plugins/EnterKeyHandling":function(){define("dojo/_base/declare dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../_Plugin ../RichText ../range".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m){return w("dijit._editor.plugins.EnterKeyHandling",g,{blockNodeForEnter:"BR",constructor:function(h){h&&("blockNodeForEnter"in h&&(h.blockNodeForEnter=h.blockNodeForEnter.toUpperCase()),I.mixin(this,h))},setEditor:function(h){if(this.editor!==h)if(this.editor=h,"BR"==this.blockNodeForEnter)this.editor.customUndo=!0,h.onLoadDeferred.then(I.hitch(this,function(u){this.own(E(h.document,"keydown",I.hitch(this,function(G){if(G.keyCode==L.ENTER){var e=I.mixin({},G);e.shiftKey=
!0;this.handleEnterKey(e)||(G.stopPropagation(),G.preventDefault())}})));9<=a("ie")&&10>=a("ie")&&this.own(E(h.document,"paste",I.hitch(this,function(G){setTimeout(I.hitch(this,function(){var e=this.editor.document.selection.createRange();e.move("character",-1);e.select();e.move("character",1);e.select()}),0)})));return u}));else if(this.blockNodeForEnter){var p=I.hitch(this,"handleEnterKey");h.addKeyHandler(13,0,0,p);h.addKeyHandler(13,0,1,p);this.own(this.editor.on("KeyPressed",I.hitch(this,"onKeyPressed")))}},
onKeyPressed:function(){if(this._checkListLater){if(this.editor.selection.isCollapsed()){var h=this.editor.selection.getAncestorElement("LI");if(h){a("mozilla")&&"LI"==h.parentNode.parentNode.nodeName&&(h=h.parentNode.parentNode);var p=h.firstChild;!p||1!=p.nodeType||"UL"!=p.nodeName&&"OL"!=p.nodeName||(h.insertBefore(p.ownerDocument.createTextNode("\u00a0"),p),p=m.create(this.editor.window),p.setStart(h.firstChild,0),h=m.getSelection(this.editor.window,!0),h.removeAllRanges(),h.addRange(p))}else f.prototype.execCommand.call(this.editor,
"formatblock",this.blockNodeForEnter),(h=this.editor.selection.getAncestorElement(this.blockNodeForEnter))?(h.innerHTML=this.bogusHtmlContent,9>=a("ie")&&(h=this.editor.document.selection.createRange(),h.move("character",-1),h.select())):console.error("onKeyPressed: Cannot find the new block node")}this._checkListLater=!1}this._pressedEnterInBlock&&(this._pressedEnterInBlock.previousSibling&&this.removeTrailingBr(this._pressedEnterInBlock.previousSibling),delete this._pressedEnterInBlock)},bogusHtmlContent:"\x26#160;",
blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(h){var p,u=this.editor.document,G;if(h.shiftKey){h=this.editor.selection.getParentElement();if(p=m.getAncestor(h,this.blockNodes)){if("LI"==p.tagName)return!0;h=m.getSelection(this.editor.window);var e=h.getRangeAt(0);e.collapsed||(e.deleteContents(),h=m.getSelection(this.editor.window),e=h.getRangeAt(0));if(m.atBeginningOfContainer(p,e.startContainer,e.startOffset)){var l=u.createElement("br");e=m.create(this.editor.window);p.insertBefore(l,
p.firstChild);e.setStartAfter(l);h.removeAllRanges();h.addRange(e)}else if(m.atEndOfContainer(p,e.startContainer,e.startOffset))e=m.create(this.editor.window),l=u.createElement("br"),p.appendChild(l),p.appendChild(u.createTextNode("\u00a0")),e.setStart(p.lastChild,0),h.removeAllRanges(),h.addRange(e);else{if((G=e.startContainer)&&3==G.nodeType){var y=G.nodeValue;var B=u.createTextNode(y.substring(0,e.startOffset));var k=u.createTextNode(y.substring(e.startOffset));p=u.createElement("br");""==k.nodeValue&&
a("webkit")&&(k=u.createTextNode("\u00a0"));F.place(B,G,"after");F.place(p,B,"after");F.place(k,p,"after");F.destroy(G);e=m.create(this.editor.window);e.setStart(k,0);h.removeAllRanges();h.addRange(e);return!1}return!0}}else h=m.getSelection(this.editor.window),h.rangeCount?(e=h.getRangeAt(0))&&e.startContainer&&(e.collapsed||(e.deleteContents(),h=m.getSelection(this.editor.window),e=h.getRangeAt(0)),(G=e.startContainer)&&3==G.nodeType?(p=e.startOffset,G.length<p&&(k=this._adjustNodeAndOffset(G,p),
G=k.node,p=k.offset),y=G.nodeValue,B=u.createTextNode(y.substring(0,p)),k=u.createTextNode(y.substring(p)),p=u.createElement("br"),k.length||(k=u.createTextNode("\u00a0")),B.length?F.place(B,G,"after"):B=G,F.place(p,B,"after"),F.place(k,p,"after"),F.destroy(G)):(0<=e.startOffset&&(l=G.childNodes[e.startOffset]),p=u.createElement("br"),k=u.createTextNode("\u00a0"),l?(F.place(p,l,"before"),F.place(k,p,"after")):(G.appendChild(p),G.appendChild(k))),e=m.create(this.editor.window),e.setStart(k,0),e.setEnd(k,
k.length),h.removeAllRanges(),h.addRange(e),this.editor.selection.collapse(!0)):f.prototype.execCommand.call(this.editor,"inserthtml","\x3cbr\x3e");return!1}var t=!0;h=m.getSelection(this.editor.window);e=h.getRangeAt(0);e.collapsed||(e.deleteContents(),h=m.getSelection(this.editor.window),e=h.getRangeAt(0));l=m.getBlockAncestor(e.endContainer,null,this.editor.editNode);var H=l.blockNode;if(this._checkListLater=H&&("LI"==H.nodeName||"LI"==H.parentNode.nodeName))return a("mozilla")&&(this._pressedEnterInBlock=
H),/^(\s|&nbsp;|&#160;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|&#160;|\xA0)<\/span>)?(<br>)?$/.test(H.innerHTML)&&(H.innerHTML="",a("webkit")&&(e=m.create(this.editor.window),e.setStart(H,0),h.removeAllRanges(),h.addRange(e)),this._checkListLater=!1),!0;if(!l.blockNode||l.blockNode===this.editor.editNode){try{f.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter)}catch(r){}l={blockNode:this.editor.selection.getAncestorElement(this.blockNodeForEnter),
blockContainer:this.editor.editNode};if(l.blockNode){if(l.blockNode!=this.editor.editNode&&!(l.blockNode.textContent||l.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)return this.removeTrailingBr(l.blockNode),!1}else l.blockNode=this.editor.editNode;h=m.getSelection(this.editor.window);e=h.getRangeAt(0)}H=u.createElement(this.blockNodeForEnter);H.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(l.blockNode);k=e.endOffset;t=e.endContainer;t.length<k&&(k=this._adjustNodeAndOffset(t,k),t=
k.node,k=k.offset);if(m.atEndOfContainer(l.blockNode,t,k))l.blockNode===l.blockContainer?l.blockNode.appendChild(H):F.place(H,l.blockNode,"after"),t=!1,e=m.create(this.editor.window),e.setStart(H,0),h.removeAllRanges(),h.addRange(e),this.editor.height&&d.scrollIntoView(H);else if(m.atBeginningOfContainer(l.blockNode,e.startContainer,e.startOffset))F.place(H,l.blockNode,l.blockNode===l.blockContainer?"first":"before"),H.nextSibling&&this.editor.height&&(e=m.create(this.editor.window),e.setStart(H.nextSibling,
0),h.removeAllRanges(),h.addRange(e),d.scrollIntoView(H.nextSibling)),t=!1;else{l.blockNode===l.blockContainer?l.blockNode.appendChild(H):F.place(H,l.blockNode,"after");t=!1;l.blockNode.style&&H.style&&l.blockNode.style.cssText&&(H.style.cssText=l.blockNode.style.cssText);if((G=e.startContainer)&&3==G.nodeType){k=e.endOffset;G.length<k&&(k=this._adjustNodeAndOffset(G,k),G=k.node,k=k.offset);y=G.nodeValue;B=u.createTextNode(y.substring(0,k));k=u.createTextNode(y.substring(k,y.length));F.place(B,G,
"before");F.place(k,G,"after");F.destroy(G);for(e=B.parentNode;e!==l.blockNode;){y=u.createElement(e.tagName);e.style&&y.style&&e.style.cssText&&(y.style.cssText=e.style.cssText);"FONT"===e.tagName&&(e.color&&(y.color=e.color),e.face&&(y.face=e.face),e.size&&(y.size=e.size));for(;k;)G=k.nextSibling,y.appendChild(k),k=G;F.place(y,e,"after");B=e;k=y;e=e.parentNode}if(1==k.nodeType||3==k.nodeType&&k.nodeValue)H.innerHTML="";for(B=k;k;)G=k.nextSibling,H.appendChild(k),k=G}e=m.create(this.editor.window);
u=B;if("BR"!==this.blockNodeForEnter){for(;u;)p=u,u=G=u.firstChild;p&&p.parentNode?(H=p.parentNode,e.setStart(H,0),h.removeAllRanges(),h.addRange(e),this.editor.height&&d.scrollIntoView(H),a("mozilla")&&(this._pressedEnterInBlock=l.blockNode)):t=!0}else e.setStart(H,0),h.removeAllRanges(),h.addRange(e),this.editor.height&&d.scrollIntoView(H),a("mozilla")&&(this._pressedEnterInBlock=l.blockNode)}return t},_adjustNodeAndOffset:function(h,p){for(;h.length<p&&h.nextSibling&&3==h.nextSibling.nodeType;)p-=
h.length,h=h.nextSibling;return{node:h,offset:p}},removeTrailingBr:function(h){if(h=/P|DIV|LI/i.test(h.tagName)?h:this.editor.selection.getParentOfType(h,["P","DIV","LI"]))h.lastChild&&(1<h.childNodes.length&&3==h.lastChild.nodeType&&/^[\s\xAD]*$/.test(h.lastChild.nodeValue)||"BR"==h.lastChild.tagName)&&F.destroy(h.lastChild),h.childNodes.length||(h.innerHTML=this.bogusHtmlContent)}})})},"dijit/_editor/RichText":function(){define("dojo/_base/array dojo/_base/config dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/query dojo/domReady dojo/sniff dojo/string dojo/topic dojo/_base/unload dojo/_base/url dojo/window ../_Widget ../_CssStateMixin ../selection ./range ./html ../focus ../main".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N,x,D,q,z,O){var v=L("dijit._editor.RichText",[r,N],{constructor:function(c){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};c&&p.isString(c.value)&&(this.value=c.value);this.onLoadDeferred=new I},baseClass:"dijitEditor",inheritWidth:!1,focusOnLoad:!1,name:"",styleSheets:"",height:"300px",minHeight:"1em",
isClosed:!0,isLoaded:!1,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",_NAME_CONTENT_SEP:"@@**%%:%%**@@",onLoadDeferred:null,isTabIndent:!1,disableSpellCheck:!1,postCreate:function(){"textarea"===this.domNode.tagName.toLowerCase()&&console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");this.contentPreFilters=[p.trim,p.hitch(this,"_preFixUrlAttributes")].concat(this.contentPreFilters);l("mozilla")&&(this.contentPreFilters=[this._normalizeFontStyle].concat(this.contentPreFilters),
this.contentPostFilters=[this._removeMozBogus].concat(this.contentPostFilters));l("webkit")&&(this.contentPreFilters=[this._removeWebkitBogus].concat(this.contentPreFilters),this.contentPostFilters=[this._removeWebkitBogus].concat(this.contentPostFilters));if(l("ie")||l("trident"))this.contentPostFilters=[this._normalizeFontStyle].concat(this.contentPostFilters),this.contentDomPostFilters=[p.hitch(this,"_stripBreakerNodes")].concat(this.contentDomPostFilters);this.contentDomPostFilters=[p.hitch(this,
"_stripTrailingEmptyNodes")].concat(this.contentDomPostFilters);this.inherited(arguments);B.publish(O._scopeName+"._editor.RichText::init",this)},startup:function(){this.inherited(arguments);this.open();this.setupDefaultShortcuts()},setupDefaultShortcuts:function(){var c=p.hitch(this,function(J,M){return function(){return!this.execCommand(J,M)}}),n={b:c("bold"),i:c("italic"),u:c("underline"),a:c("selectall"),s:function(){this.save(!0)},m:function(){this.isTabIndent=!this.isTabIndent},1:c("formatblock",
"h1"),2:c("formatblock","h2"),3:c("formatblock","h3"),4:c("formatblock","h4"),"\\":c("insertunorderedlist")};l("ie")||(n.Z=c("redo"));for(var C in n)this.addKeyHandler(C,!0,!1,n[C])},events:["onKeyDown","onKeyUp"],captureEvents:[],_editorCommandsLocalized:!1,_localizeEditorCommands:function(){if(v._editorCommandsLocalized)this._local2NativeFormatNames=v._local2NativeFormatNames,this._native2LocalFormatNames=v._native2LocalFormatNames;else{v._editorCommandsLocalized=!0;v._local2NativeFormatNames={};
v._native2LocalFormatNames={};this._local2NativeFormatNames=v._local2NativeFormatNames;this._native2LocalFormatNames=v._native2LocalFormatNames;for(var c="div p pre h1 h2 h3 h4 h5 h6 ol ul address".split(" "),n="",C,J=0;C=c[J++];)n="l"!==C.charAt(1)?n+("\x3c"+C+"\x3e\x3cspan\x3econtent\x3c/span\x3e\x3c/"+C+"\x3e\x3cbr/\x3e"):n+("\x3c"+C+"\x3e\x3cli\x3econtent\x3c/li\x3e\x3c/"+C+"\x3e\x3cbr/\x3e");var M=d.create("div",{style:{position:"absolute",top:"0px",zIndex:10,opacity:.01},innerHTML:n});this.ownerDocumentBody.appendChild(M);
c=p.hitch(this,function(){for(var P=M.firstChild;P;)try{this.selection.selectElement(P.firstChild);var Q=P.tagName.toLowerCase();this._local2NativeFormatNames[Q]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[Q]]=Q;P=P.nextSibling.nextSibling}catch(S){}d.destroy(M)});this.defer(c)}},open:function(c){if(!this.onLoadDeferred||0<=this.onLoadDeferred.fired)this.onLoadDeferred=new I;this.isClosed||this.close();B.publish(O._scopeName+"._editor.RichText::open",
this);1===arguments.length&&c.nodeName&&(this.domNode=c);var n=this.domNode;if(p.isString(this.value)){var C=this.value;n.innerHTML=""}else if(n.nodeName&&"textarea"==n.nodeName.toLowerCase()){var J=this.textarea=n;this.name=J.name;C=J.value;n=this.domNode=this.ownerDocument.createElement("div");n.setAttribute("widgetId",this.id);J.removeAttribute("widgetId");n.cssText=J.cssText;n.className+=" "+J.className;d.place(n,J,"before");var M=p.hitch(this,function(){f.set(J,{display:"block",position:"absolute",
top:"-1000px"});if(l("ie")){var A=J.style;this.__overflow=A.overflow;A.overflow="hidden"}});l("ie")?this.defer(M,10):M();if(J.form){var P=J.value;this.reset=function(){this.getValue()!==P&&this.replaceValue(P)};u(J.form,"submit",p.hitch(this,function(){a.set(J,"disabled",this.disabled);J.value=this.getValue()}))}}else C=q.getChildrenHtml(n),n.innerHTML="";this.value=C;n.nodeName&&"LI"===n.nodeName&&(n.innerHTML=" \x3cbr\x3e");this.header=n.ownerDocument.createElement("div");n.appendChild(this.header);
this.editingArea=n.ownerDocument.createElement("div");n.appendChild(this.editingArea);this.footer=n.ownerDocument.createElement("div");n.appendChild(this.footer);this.name||(this.name=this.id+"_AUTOGEN");if(""!==this.name&&(!F.useXDomain||F.allowXdRichTextSave)){if((C=E.byId(O._scopeName+"._editor.RichText.value"))&&""!==C.value){M=C.value.split(this._SEPARATOR);for(var Q=0,S;S=M[Q++];)if(S=S.split(this._NAME_CONTENT_SEP),S[0]===this.name){this.value=S[1];M=M.splice(Q,1);C.value=M.join(this._SEPARATOR);
break}}v._globalSaveHandler||(v._globalSaveHandler={},k.addOnUnload(function(){for(var A in v._globalSaveHandler){var K=v._globalSaveHandler[A];p.isFunction(K)&&K()}}));v._globalSaveHandler[this.id]=p.hitch(this,"_saveContent")}this.isClosed=!1;C=this.editorObject=this.iframe=this.ownerDocument.createElement("iframe");C.id=this.id+"_iframe";C.style.border="none";C.style.width="100%";this._layoutMode?C.style.height="100%":7<=l("ie")?(this.height&&(C.style.height=this.height),this.minHeight&&(C.style.minHeight=
this.minHeight)):C.style.height=this.height?this.height:this.minHeight;C.frameBorder=0;C._loadFunc=p.hitch(this,function(A){this.window=A;this.document=A.document;this.selection=new x.SelectionManager(A);l("ie")&&this._localizeEditorCommands();this.onLoad(this.get("value"))});M=this._getIframeDocTxt().replace(/\\/g,"\\\\").replace(/'/g,"\\'");M=11>l("ie")?'javascript:document.open();try{parent.window;}catch(e){document.domain\x3d"'+document.domain+"\";}document.write('"+M+"');document.close()":"javascript: '"+
M+"'";this.editingArea.appendChild(C);C.src=M;"LI"===n.nodeName&&(n.lastChild.style.marginTop="-1.2em");b.add(this.domNode,this.baseClass)},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var c=f.getComputedStyle(this.domNode);if(this["aria-label"])var n=this["aria-label"];else{var C=G('label[for\x3d"'+this.id+'"]',this.ownerDocument)[0]||E.byId(this["aria-labelledby"],this.ownerDocument);C&&(n=C.textContent||C.innerHTML||"")}C="\x3cdiv id\x3d'dijitEditorBody' role\x3d'textbox' aria-multiline\x3d'true' "+
(n?" aria-label\x3d'"+y.escape(n)+"'":"")+"\x3e\x3c/div\x3e";var J=[c.fontWeight,c.fontSize,c.fontFamily].join(" "),M=c.lineHeight;M=0<=M.indexOf("px")?parseFloat(M)/parseFloat(c.fontSize):0<=M.indexOf("em")?parseFloat(M):"normal";var P="",Q=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(S){S=S.replace(/^;/ig,"")+";";var A=S.split(":")[0];if(A){A=p.trim(A);A=A.toLowerCase();var K,R="";for(K=0;K<A.length;K++){var T=A.charAt(K);switch(T){case "-":K++,T=A.charAt(K).toUpperCase();default:R+=
T}}f.set(Q.domNode,R,"")}P+=S+";"});this.iframe.setAttribute("title",n);return["\x3c!DOCTYPE html\x3e","\x3chtml lang\x3d'"+(this.lang||m.locale.replace(/-.*/,""))+"'"+(this.isLeftToRight()?"":" dir\x3d'rtl'")+"\x3e\n","\x3chead\x3e\n\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html'\x3e\n",n?"\x3ctitle\x3e"+y.escape(n)+"\x3c/title\x3e":"","\x3cstyle\x3e\n\tbody,html {\n\t\tbackground:transparent;\n\t\tpadding: 1px 0 0 0;\n\t\tmargin: -1px 0 0 0;\n\t}\n\tbody,html,#dijitEditorBody { outline: none; }html { height: 100%; width: 100%; overflow: hidden; }\n",
this.height?"\tbody,#dijitEditorBody { height: 100%; width: 100%; overflow: auto; }\n":"\tbody,#dijitEditorBody { min-height: "+this.minHeight+"; width: 100%; overflow-x: auto; overflow-y: hidden; }\n","\tbody{\n\t\ttop:0px;\n\t\tleft:0px;\n\t\tright:0px;\n\t\tfont:",J,";\n",this.height||l("opera")?"":"\t\tposition: fixed;\n","\t\tline-height:",M,";\n\t}\n\tp{ margin: 1em 0; }\n\tli \x3e ul:-moz-first-node, li \x3e ol:-moz-first-node{ padding-top: 1.2em; }\n",l("ie")||l("trident")||l("edge")?"":"\tli{ min-height:1.2em; }\n",
"\x3c/style\x3e\n",this._applyEditingAreaStyleSheets(),"\n\x3c/head\x3e\n\x3cbody role\x3d'application'",n?" aria-label\x3d'"+y.escape(n)+"'":"","onload\x3d'try{frameElement \x26\x26 frameElement._loadFunc(window,document)}catch(e){document.domain\x3d\""+document.domain+"\";frameElement._loadFunc(window,document)}' ","style\x3d'"+P+"'\x3e",C,"\x3c/body\x3e\n\x3c/html\x3e"].join("")},_applyEditingAreaStyleSheets:function(){var c=[];this.styleSheets&&(c=this.styleSheets.split(";"),this.styleSheets=
"");c=c.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];for(var n="",C=0,J,M=H.get(this.ownerDocument);J=c[C++];)J=(new t(M.location,J)).toString(),this.editingAreaStyleSheets.push(J),n+='\x3clink rel\x3d"stylesheet" type\x3d"text/css" href\x3d"'+J+'"/\x3e';return n},addStyleSheet:function(c){var n=c.toString(),C=H.get(this.ownerDocument);if("."===n.charAt(0)||"/"!==n.charAt(0)&&!c.host)n=(new t(C.location,n)).toString();-1<w.indexOf(this.editingAreaStyleSheets,n)||(this.editingAreaStyleSheets.push(n),
this.onLoadDeferred.then(p.hitch(this,function(){if(this.document.createStyleSheet)this.document.createStyleSheet(n);else{var J=this.document.getElementsByTagName("head")[0],M=this.document.createElement("link");M.rel="stylesheet";M.type="text/css";M.href=n;J.appendChild(M)}})))},removeStyleSheet:function(c){var n=c.toString(),C=H.get(this.ownerDocument);if("."===n.charAt(0)||"/"!==n.charAt(0)&&!c.host)n=(new t(C.location,n)).toString();c=w.indexOf(this.editingAreaStyleSheets,n);-1!==c&&(delete this.editingAreaStyleSheets[c],
G('link[href\x3d"'+n+'"]',this.window.document).orphan())},disabled:!1,_mozSettingProps:{styleWithCSS:!1},_setDisabledAttr:function(c){c=!!c;this._set("disabled",c);if(this.isLoaded){var n=l("ie")&&(this.isLoaded||!this.focusOnLoad);n&&(this.editNode.unselectable="on");this.editNode.contentEditable=!c;this.editNode.tabIndex=c?"-1":this.tabIndex;n&&this.defer(function(){this.editNode&&(this.editNode.unselectable="off")});if(l("mozilla")&&!c&&this._mozSettingProps){c=this._mozSettingProps;for(var C in c)if(c.hasOwnProperty(C))try{this.document.execCommand(C,
!1,c[C])}catch(J){}}this._disabledOK=!0}},onLoad:function(c){this.window.__registeredWindow||(this.window.__registeredWindow=!0,this._iframeRegHandle=z.registerIframe(this.iframe));this.editNode=this.document.body.firstChild;var n=this;this.beforeIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"before");this.afterIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"after");this.iframe.onfocus=this.document.onfocus=function(){n.editNode.focus()};this.focusNode=
this.editNode;var C=this.events.concat(this.captureEvents),J=this.iframe?this.document:this.editNode;this.own.apply(this,w.map(C,function(M){var P=M.toLowerCase().replace(/^on/,"");return u(J,P,p.hitch(this,M))},this));this.own(u(J,"mouseup",p.hitch(this,"onClick")));l("ie")&&(this.own(u(this.document,"mousedown",p.hitch(this,"_onIEMouseDown"))),this.editNode.style.zoom=1);l("webkit")&&(this._webkitListener=this.own(u(this.document,"mouseup",p.hitch(this,"onDisplayChanged")))[0],this.own(u(this.document,
"mousedown",p.hitch(this,function(M){M=M.target;!M||M!==this.document.body&&M!==this.document||this.defer("placeCursorAtEnd")}))));if(l("ie"))try{this.document.execCommand("RespectVisibilityInDesign",!0,null)}catch(M){}this.isLoaded=!0;this.set("disabled",this.disabled);C=p.hitch(this,function(){this.setValue(c);this.onLoadDeferred&&!this.onLoadDeferred.isFulfilled()&&this.onLoadDeferred.resolve(!0);this.onDisplayChanged();this.focusOnLoad&&e(p.hitch(this,"defer","focus",this.updateInterval));this.value=
this.getValue(!0)});this.setValueDeferred?this.setValueDeferred.then(C):C()},onKeyDown:function(c){if(c.keyCode===h.SHIFT||c.keyCode===h.ALT||c.keyCode===h.META||c.keyCode===h.CTRL)return!0;c.keyCode===h.TAB&&this.isTabIndent&&(c.stopPropagation(),c.preventDefault(),this.queryCommandEnabled(c.shiftKey?"outdent":"indent")&&this.execCommand(c.shiftKey?"outdent":"indent"));if(c.keyCode==h.TAB&&!this.isTabIndent&&!c.ctrlKey&&!c.altKey)return c.shiftKey?this.beforeIframeNode.focus():this.afterIframeNode.focus(),
!0;9>l("ie")&&c.keyCode===h.BACKSPACE&&"Control"===this.document.selection.type&&(c.stopPropagation(),c.preventDefault(),this.execCommand("delete"));l("ff")&&(c.keyCode===h.PAGE_UP||c.keyCode===h.PAGE_DOWN)&&this.editNode.clientHeight>=this.editNode.scrollHeight&&c.preventDefault();var n=this._keyHandlers[c.keyCode],C=arguments;n&&!c.altKey&&w.some(n,function(J){if(!(J.shift^c.shiftKey||J.ctrl^(c.ctrlKey||c.metaKey)))return J.handler.apply(this,C)||c.preventDefault(),!0},this);this.defer("onKeyPressed",
1);return!0},onKeyUp:function(){},setDisabled:function(c){m.deprecated("dijit.Editor::setDisabled is deprecated",'use dijit.Editor::attr("disabled",boolean) instead',2);this.set("disabled",c)},_setValueAttr:function(c){this.setValue(c)},_setDisableSpellCheckAttr:function(c){this.document?a.set(this.document.body,"spellcheck",!c):this.onLoadDeferred.then(p.hitch(this,function(){a.set(this.document.body,"spellcheck",!c)}));this._set("disableSpellCheck",c)},addKeyHandler:function(c,n,C,J){"string"==
typeof c&&(c=c.toUpperCase().charCodeAt(0));p.isArray(this._keyHandlers[c])||(this._keyHandlers[c]=[]);this._keyHandlers[c].push({shift:C||!1,ctrl:n||!1,handler:J})},onKeyPressed:function(){this.onDisplayChanged()},onClick:function(c){this.onDisplayChanged(c)},_onIEMouseDown:function(){this.focused||this.disabled||this.focus()},_onBlur:function(c){(l("ie")||l("trident"))&&this.defer(function(){z.curNode||this.ownerDocumentBody.focus()});this.inherited(arguments);var n=this.getValue(!0);if(n!==this.value)this.onChange(n);
this._set("value",n)},_onFocus:function(c){this.disabled||(this._disabledOK||this.set("disabled",!1),this.inherited(arguments))},blur:function(){!l("ie")&&this.window.document.documentElement&&this.window.document.documentElement.focus?this.window.document.documentElement.focus():this.ownerDocumentBody.focus&&this.ownerDocumentBody.focus()},focus:function(){this.isLoaded?9>l("ie")?this.iframe.fireEvent("onfocus",document.createEventObject()):this.editNode.focus():this.focusOnLoad=!0},updateInterval:200,
_updateTimer:null,onDisplayChanged:function(){this._updateTimer&&this._updateTimer.remove();this._updateTimer=this.defer("onNormalizedDisplayChanged",this.updateInterval)},onNormalizedDisplayChanged:function(){delete this._updateTimer},onChange:function(){},_normalizeCommand:function(c,n){c=c.toLowerCase();"formatblock"===c?l("safari")&&void 0===n&&(c="heading"):"hilitecolor"!==c||l("mozilla")||(c="backcolor");return c},_implCommand:function(c){return"_"+this._normalizeCommand(c)+"EnabledImpl"},_qcaCache:{},
queryCommandAvailable:function(c){var n=this._qcaCache[c];return void 0!==n?n:this._qcaCache[c]=this._queryCommandAvailable(c)},_queryCommandAvailable:function(c){switch(c.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":case "cut":case "copy":case "paste":return!0;
case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":return l("ie")||l("trident")||l("edge");case "inserttable":case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":return!l("webkit");default:return!1}},execCommand:function(c,n){this.focused&&this.focus();c=this._normalizeCommand(c,n);if(void 0!==n){if("heading"===c)throw Error("unimplemented");"formatblock"===
c&&(l("ie")||l("trident"))&&(n="\x3c"+n+"\x3e")}var C="_"+c+"Impl";if(this[C])var J=this[C](n);else if((n=1<arguments.length?n:null)||"createlink"!==c)J=this.document.execCommand(c,!1,n);this.onDisplayChanged();return J},queryCommandEnabled:function(c){if(this.disabled||!this._disabledOK)return!1;c=this._normalizeCommand(c);var n=this._implCommand(c);return this[n]?this[n](c):this._browserQueryCommandEnabled(c)},queryCommandState:function(c){if(this.disabled||!this._disabledOK)return!1;c=this._normalizeCommand(c);
try{return this.document.queryCommandState(c)}catch(n){return!1}},queryCommandValue:function(c){if(this.disabled||!this._disabledOK)return!1;c=this._normalizeCommand(c);if(l("ie")&&"formatblock"===c)c=this._native2LocalFormatNames[this.document.queryCommandValue(c)];else if(l("mozilla")&&"hilitecolor"===c){try{var n=this.document.queryCommandValue("styleWithCSS")}catch(C){n=!1}this.document.execCommand("styleWithCSS",!1,!0);c=this.document.queryCommandValue(c);this.document.execCommand("styleWithCSS",
!1,n)}else c=this.document.queryCommandValue(c);return c},_sCall:function(c,n){return this.selection[c].apply(this.selection,n)},placeCursorAtStart:function(){this.focus();var c=!1;if(l("mozilla"))for(var n=this.editNode.firstChild;n;){if(3===n.nodeType){if(0<n.nodeValue.replace(/^\s+|\s+$/g,"").length){c=!0;this.selection.selectElement(n);break}}else if(1===n.nodeType){c=!0;var C=n.tagName?n.tagName.toLowerCase():"";/br|input|img|base|meta|area|basefont|hr|link/.test(C)?this.selection.selectElement(n):
this.selection.selectElementChildren(n);break}n=n.nextSibling}else c=!0,this.selection.selectElementChildren(this.editNode);c&&this.selection.collapse(!0)},placeCursorAtEnd:function(){this.focus();var c=!1;if(l("mozilla"))for(var n=this.editNode.lastChild;n;){if(3===n.nodeType){if(0<n.nodeValue.replace(/^\s+|\s+$/g,"").length){c=!0;this.selection.selectElement(n);break}}else if(1===n.nodeType){c=!0;this.selection.selectElement(n.lastChild||n);break}n=n.previousSibling}else c=!0,this.selection.selectElementChildren(this.editNode);
c&&this.selection.collapse(!1)},getValue:function(c){return!this.textarea||!this.isClosed&&this.isLoaded?this.isLoaded?this._postFilterContent(null,c):this.value:this.textarea.value},_getValueAttr:function(){return this.getValue(!0)},setValue:function(c){if(this.isLoaded){if(!this.textarea||!this.isClosed&&this.isLoaded){c=this._preFilterContent(c);var n=this.isClosed?this.domNode:this.editNode;n.innerHTML=c;this._preDomFilterContent(n)}else this.textarea.value=c;this.onDisplayChanged();this._set("value",
this.getValue(!0))}else this.onLoadDeferred.then(p.hitch(this,function(){this.setValue(c)}))},replaceValue:function(c){this.isClosed?this.setValue(c):this.window&&this.window.getSelection&&!l("mozilla")?this.setValue(c):this.window&&this.window.getSelection?(c=this._preFilterContent(c),this.execCommand("selectall"),this.execCommand("inserthtml",c),this._preDomFilterContent(this.editNode)):this.document&&this.document.selection&&this.setValue(c);this._set("value",this.getValue(!0))},_preFilterContent:function(c){var n=
c;w.forEach(this.contentPreFilters,function(C){C&&(n=C(n))});return n},_preDomFilterContent:function(c){c=c||this.editNode;w.forEach(this.contentDomPreFilters,function(n){n&&p.isFunction(n)&&n(c)},this)},_postFilterContent:function(c,n){if(p.isString(c))var C=c;else c=c||this.editNode,this.contentDomPostFilters.length&&(n&&(c=p.clone(c)),w.forEach(this.contentDomPostFilters,function(J){c=J(c)})),C=q.getChildrenHtml(c);p.trim(C.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length||(C="");w.forEach(this.contentPostFilters,
function(J){C=J(C)});return C},_saveContent:function(){var c=E.byId(O._scopeName+"._editor.RichText.value");c&&(c.value&&(c.value+=this._SEPARATOR),c.value+=this.name+this._NAME_CONTENT_SEP+this.getValue(!0))},escapeXml:function(c,n){c=c.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");n||(c=c.replace(/'/gm,"\x26#39;"));return c},getNodeHtml:function(c){m.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit/_editor/html::getNodeHtml instead",
2);return q.getNodeHtml(c)},getNodeChildrenHtml:function(c){m.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit/_editor/html::getChildrenHtml instead",2);return q.getChildrenHtml(c)},close:function(c){if(!this.isClosed){arguments.length||(c=!0);c&&this._set("value",this.getValue(!0));this.interval&&clearInterval(this.interval);this._webkitListener&&(this._webkitListener.remove(),delete this._webkitListener);l("ie")&&(this.iframe.onfocus=null);this.iframe._loadFunc=null;this._iframeRegHandle&&
(this._iframeRegHandle.remove(),delete this._iframeRegHandle);if(this.textarea){var n=this.textarea.style;n.position="";n.left=n.top="";l("ie")&&(n.overflow=this.__overflow,this.__overflow=null);this.textarea.value=this.value;d.destroy(this.domNode);this.domNode=this.textarea}else this.domNode.innerHTML=this.value;delete this.iframe;b.remove(this.domNode,this.baseClass);this.isClosed=!0;this.isLoaded=!1;delete this.editNode;delete this.focusNode;this.window&&this.window._frameElement&&(this.window._frameElement=
null);this.editorObject=this.editingArea=this.document=this.window=null}},destroy:function(){this.isClosed||this.close(!1);this._updateTimer&&this._updateTimer.remove();this.inherited(arguments);v._globalSaveHandler&&delete v._globalSaveHandler[this.id]},_removeMozBogus:function(c){return c.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"")},_removeWebkitBogus:function(c){c=c.replace(/\sclass="webkit-block-placeholder"/gi,"");c=c.replace(/\sclass="apple-style-span"/gi,
"");return c=c.replace(/<meta charset="utf-8" \/>/gi,"")},_normalizeFontStyle:function(c){return c.replace(/<(\/)?strong([ >])/gi,"\x3c$1b$2").replace(/<(\/)?em([ >])/gi,"\x3c$1i$2")},_preFixUrlAttributes:function(c){return c.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2")},_browserQueryCommandEnabled:function(c){if(!c)return!1;
if(l("ie")||l("trident")||l("edge"))return this.focused&&!this.disabled;var n=9>l("ie")?this.document.selection.createRange():this.document;try{return n.queryCommandEnabled(c)}catch(C){return!1}},_createlinkEnabledImpl:function(){var c=!0;return c=l("opera")?this.window.getSelection().isCollapsed?!0:this.document.queryCommandEnabled("createlink"):this._browserQueryCommandEnabled("createlink")},_unlinkEnabledImpl:function(){var c=!0;return c=l("mozilla")||l("webkit")||l("ie")||l("trident")||l("edge")?
this.selection.hasAncestorElement("a"):this._browserQueryCommandEnabled("unlink")},_inserttableEnabledImpl:function(){var c=!0;return c=l("mozilla")||l("webkit")?!0:this._browserQueryCommandEnabled("inserttable")},_cutEnabledImpl:function(){var c=!0;l("webkit")?((c=this.window.getSelection())&&(c=c.toString()),c=!!c):c=this._browserQueryCommandEnabled("cut");return c},_copyEnabledImpl:function(){var c=!0;l("webkit")?((c=this.window.getSelection())&&(c=c.toString()),c=!!c):c=this._browserQueryCommandEnabled("copy");
return c},_pasteEnabledImpl:function(){var c=!0;return l("webkit")?!0:c=this._browserQueryCommandEnabled("paste")},_inserthorizontalruleImpl:function(c){return l("ie")?this._inserthtmlImpl("\x3chr\x3e"):this.document.execCommand("inserthorizontalrule",!1,c)},_unlinkImpl:function(c){return this.queryCommandEnabled("unlink")&&(l("mozilla")||l("webkit"))?(c=this.selection.getAncestorElement("a"),this.selection.selectElement(c),this.document.execCommand("unlink",!1,null)):this.document.execCommand("unlink",
!1,c)},_hilitecolorImpl:function(c){if(!this._handleTextColorOrProperties("hilitecolor",c))if(l("mozilla")){this.document.execCommand("styleWithCSS",!1,!0);console.log("Executing color command.");var n=this.document.execCommand("hilitecolor",!1,c);this.document.execCommand("styleWithCSS",!1,!1)}else n=this.document.execCommand("hilitecolor",!1,c);return n},_backcolorImpl:function(c){l("ie")&&(c=c?c:null);var n=this._handleTextColorOrProperties("backcolor",c);n||(n=this.document.execCommand("backcolor",
!1,c));return n},_forecolorImpl:function(c){l("ie")&&(c=c?c:null);var n=!1;(n=this._handleTextColorOrProperties("forecolor",c))||(n=this.document.execCommand("forecolor",!1,c));return n},_inserthtmlImpl:function(c){c=this._preFilterContent(c);var n=!0;if(9>l("ie")){var C=this.document.selection.createRange();if("CONTROL"===this.document.selection.type.toUpperCase()){for(var J=C.item(0);C.length;)C.remove(C.item(0));J.outerHTML=c}else C.pasteHTML(c);C.select()}else if(8>l("trident")){var M=D.getSelection(this.window);
if(M&&M.rangeCount&&M.getRangeAt){C=M.getRangeAt(0);C.deleteContents();var P=d.create("div");P.innerHTML=c;for(J=this.document.createDocumentFragment();c=P.firstChild;)var Q=J.appendChild(c);C.insertNode(J);Q&&(C=C.cloneRange(),C.setStartAfter(Q),C.collapse(!1),M.removeAllRanges(),M.addRange(C))}}else l("mozilla")&&!c.length?this.selection.remove():n=this.document.execCommand("inserthtml",!1,c);return n},_boldImpl:function(c){var n=!1;if(l("ie")||l("trident"))this._adaptIESelection(),n=this._adaptIEFormatAreaAndExec("bold");
n||(n=this.document.execCommand("bold",!1,c));return n},_italicImpl:function(c){var n=!1;if(l("ie")||l("trident"))this._adaptIESelection(),n=this._adaptIEFormatAreaAndExec("italic");n||(n=this.document.execCommand("italic",!1,c));return n},_underlineImpl:function(c){var n=!1;if(l("ie")||l("trident"))this._adaptIESelection(),n=this._adaptIEFormatAreaAndExec("underline");n||(n=this.document.execCommand("underline",!1,c));return n},_strikethroughImpl:function(c){var n=!1;if(l("ie")||l("trident"))this._adaptIESelection(),
n=this._adaptIEFormatAreaAndExec("strikethrough");n||(n=this.document.execCommand("strikethrough",!1,c));return n},_superscriptImpl:function(c){var n=!1;if(l("ie")||l("trident"))this._adaptIESelection(),n=this._adaptIEFormatAreaAndExec("superscript");n||(n=this.document.execCommand("superscript",!1,c));return n},_subscriptImpl:function(c){var n=!1;if(l("ie")||l("trident"))this._adaptIESelection(),n=this._adaptIEFormatAreaAndExec("subscript");n||(n=this.document.execCommand("subscript",!1,c));return n},
_fontnameImpl:function(c){if(l("ie")||l("trident"))var n=this._handleTextColorOrProperties("fontname",c);n||(n=this.document.execCommand("fontname",!1,c));return n},_fontsizeImpl:function(c){if(l("ie")||l("trident"))var n=this._handleTextColorOrProperties("fontsize",c);n||(n=this.document.execCommand("fontsize",!1,c));return n},_insertorderedlistImpl:function(c){var n=!1;if(l("ie")||l("trident")||l("edge"))n=this._adaptIEList("insertorderedlist",c);n||(n=this.document.execCommand("insertorderedlist",
!1,c));return n},_insertunorderedlistImpl:function(c){var n=!1;if(l("ie")||l("trident")||l("edge"))n=this._adaptIEList("insertunorderedlist",c);n||(n=this.document.execCommand("insertunorderedlist",!1,c));return n},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header)},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer)},_getNodeChildrenHeight:function(c){var n=0;if(c&&c.childNodes){var C;for(C=0;C<c.childNodes.length;C++){var J=g.position(c.childNodes[C]);
n+=J.h}}return n},_isNodeEmpty:function(c,n){return 1===c.nodeType?0<c.childNodes.length?this._isNodeEmpty(c.childNodes[0],n):!0:3===c.nodeType?""===c.nodeValue.substring(n):!1},_removeStartingRangeFromRange:function(c,n){if(c.nextSibling)n.setStart(c.nextSibling,0);else{for(c=c.parentNode;c&&null==c.nextSibling;)c=c.parentNode;c&&n.setStart(c.nextSibling,0)}return n},_adaptIESelection:function(){var c=D.getSelection(this.window);if(c&&c.rangeCount&&!c.isCollapsed){for(var n=c.getRangeAt(0),C=n.startContainer,
J=n.startOffset;3===C.nodeType&&J>=C.length&&C.nextSibling;)J-=C.length,C=C.nextSibling;for(var M=null;this._isNodeEmpty(C,J)&&C!==M;)M=C,n=this._removeStartingRangeFromRange(C,n),C=n.startContainer,J=0;c.removeAllRanges();c.addRange(n)}},_adaptIEFormatAreaAndExec:function(c){var n=D.getSelection(this.window),C=this.document,J;if(c&&n&&n.isCollapsed){if(this.queryCommandValue(c)){c=this._tagNamesForCommand(c);var M=n.getRangeAt(0);var P=M.startContainer;if(3===P.nodeType){var Q=M.endOffset;P.length<
Q&&(Q=this._adjustNodeAndOffset(S,Q),P=Q.node,Q=Q.offset)}for(;P&&P!==this.editNode;){var S=P.tagName?P.tagName.toLowerCase():"";if(-1<w.indexOf(c,S)){var A=P;break}P=P.parentNode}if(A&&(S=M.startContainer,c=C.createElement(A.tagName),d.place(c,A,"after"),S&&3===S.nodeType)){Q=M.endOffset;S.length<Q&&(Q=this._adjustNodeAndOffset(S,Q),S=Q.node,Q=Q.offset);P=S.nodeValue;M=C.createTextNode(P.substring(0,Q));var K=P.substring(Q,P.length);K&&(J=C.createTextNode(K));d.place(M,S,"before");if(J){var R=C.createElement("span");
R.className="ieFormatBreakerSpan";d.place(R,S,"after");d.place(J,R,"after");J=R}d.destroy(S);Q=M.parentNode;for(S=[];Q!==A;){P=Q.tagName;M={tagName:P};S.push(M);P=C.createElement(P);Q.style&&P.style&&Q.style.cssText&&(P.style.cssText=Q.style.cssText,M.cssText=Q.style.cssText);"FONT"===Q.tagName&&(Q.color&&(P.color=Q.color,M.color=Q.color),Q.face&&(P.face=Q.face,M.face=Q.face),Q.size&&(P.size=Q.size,M.size=Q.size));Q.className&&(P.className=Q.className,M.className=Q.className);if(J)for(;J;)M=J.nextSibling,
P.appendChild(J),J=M;P.tagName==Q.tagName?(R=C.createElement("span"),R.className="ieFormatBreakerSpan",d.place(R,Q,"after"),d.place(P,R,"after")):d.place(P,Q,"after");M=Q;J=P;Q=Q.parentNode}if(J){if(1===J.nodeType||3===J.nodeType&&J.nodeValue)c.innerHTML="";for(;J;)M=J.nextSibling,c.appendChild(J),J=M}if(S.length){M=S.pop();J=C.createElement(M.tagName);M.cssText&&J.style&&(J.style.cssText=M.cssText);M.className&&(J.className=M.className);"FONT"===M.tagName&&(M.color&&(J.color=M.color),M.face&&(J.face=
M.face),M.size&&(J.size=M.size));for(d.place(J,c,"before");S.length;)M=S.pop(),A=C.createElement(M.tagName),M.cssText&&A.style&&(A.style.cssText=M.cssText),M.className&&(A.className=M.className),"FONT"===M.tagName&&(M.color&&(A.color=M.color),M.face&&(A.face=M.face),M.size&&(A.size=M.size)),J.appendChild(A),J=A;A=C.createTextNode(".");R.appendChild(A);J.appendChild(A)}else R=C.createElement("span"),R.className="ieFormatBreakerSpan",A=C.createTextNode("."),R.appendChild(A),d.place(R,c,"before");J=
D.create(this.window);J.setStart(A,0);J.setEnd(A,A.length);n.removeAllRanges();n.addRange(J);this.selection.collapse(!1);A.parentNode.innerHTML="";c.firstChild||d.destroy(c);return!0}return!1}M=n.getRangeAt(0);if((S=M.startContainer)&&3===S.nodeType)return Q=M.startOffset,S.length<Q&&(Q=this._adjustNodeAndOffset(S,Q),S=Q.node,Q=Q.offset),P=S.nodeValue,M=C.createTextNode(P.substring(0,Q)),K=P.substring(Q),""!==K&&(J=C.createTextNode(P.substring(Q))),R=C.createElement("span"),A=C.createTextNode("."),
R.appendChild(A),M.length?d.place(M,S,"after"):M=S,d.place(R,M,"after"),J&&d.place(J,R,"after"),d.destroy(S),J=D.create(this.window),J.setStart(A,0),J.setEnd(A,A.length),n.removeAllRanges(),n.addRange(J),C.execCommand(c),d.place(R.firstChild,R,"before"),d.destroy(R),J.setStart(A,0),J.setEnd(A,A.length),n.removeAllRanges(),n.addRange(J),this.selection.collapse(!1),A.parentNode.innerHTML="",!0}else return!1},_adaptIEList:function(c){var n=D.getSelection(this.window);if(n.isCollapsed&&n.rangeCount&&
!this.queryCommandValue(c)){var C=n.getRangeAt(0),J=C.startContainer;if(J&&3==J.nodeType&&!C.startOffset)return C="ul","insertorderedlist"===c&&(C="ol"),c=this.document.createElement(C),C=d.create("li",null,c),d.place(c,J,"before"),C.appendChild(J),d.create("br",null,c,"after"),c=D.create(this.window),c.setStart(J,0),c.setEnd(J,J.length),n.removeAllRanges(),n.addRange(c),this.selection.collapse(!0),!0}return!1},_handleTextColorOrProperties:function(c,n){var C=D.getSelection(this.window),J=this.document,
M,P;n=n||null;if(c&&C&&C.isCollapsed&&C.rangeCount){var Q=C.getRangeAt(0);if((M=Q.startContainer)&&3===M.nodeType){var S=Q.startOffset;M.length<S&&(Q=this._adjustNodeAndOffset(M,S),M=Q.node,S=Q.offset);var A=M.nodeValue;Q=J.createTextNode(A.substring(0,S));""!==A.substring(S)&&(P=J.createTextNode(A.substring(S)));A=J.createElement("span");S=J.createTextNode(".");A.appendChild(S);J=J.createElement("span");A.appendChild(J);Q.length?d.place(Q,M,"after"):Q=M;d.place(A,Q,"after");P&&d.place(P,A,"after");
d.destroy(M);M=D.create(this.window);M.setStart(S,0);M.setEnd(S,S.length);C.removeAllRanges();C.addRange(M);if(l("webkit")){C="color";if("hilitecolor"===c||"backcolor"===c)C="backgroundColor";f.set(A,C,n);this.selection.remove();d.destroy(J);A.innerHTML="\x26#160;";this.selection.selectElement(A);this.focus()}else this.execCommand(c,n),d.place(A.firstChild,A,"before"),d.destroy(A),M.setStart(S,0),M.setEnd(S,S.length),C.removeAllRanges(),C.addRange(M),this.selection.collapse(!1),S.parentNode.removeChild(S);
return!0}}return!1},_adjustNodeAndOffset:function(c,n){for(;c.length<n&&c.nextSibling&&3===c.nextSibling.nodeType;)n-=c.length,c=c.nextSibling;return{node:c,offset:n}},_tagNamesForCommand:function(c){return"bold"===c?["b","strong"]:"italic"===c?["i","em"]:"strikethrough"===c?["s","strike"]:"superscript"===c?["sup"]:"subscript"===c?["sub"]:"underline"===c?["u"]:[]},_stripBreakerNodes:function(c){if(this.isLoaded)return G(".ieFormatBreakerSpan",c).forEach(function(n){for(;n.firstChild;)d.place(n.firstChild,
n,"before");d.destroy(n)}),c},_stripTrailingEmptyNodes:function(c){function n(C){return/^(p|div|br)$/i.test(C.nodeName)&&0==C.children.length&&/^[\s\xA0]*$/.test(C.textContent||C.innerText||"")||3===C.nodeType&&/^[\s\xA0]*$/.test(C.nodeValue)}for(;c.lastChild&&n(c.lastChild);)d.destroy(c.lastChild);return c},_setTextDirAttr:function(c){this._set("textDir",c);this.onLoadDeferred.then(p.hitch(this,function(){this.editNode.dir=c}))}});return v})},"dijit/_editor/range":function(){define(["dojo/_base/array",
"dojo/_base/declare","dojo/_base/lang"],function(w,F,L){var I={getIndex:function(b,d){for(var g=[],f=[],m=b,h,p;b!=d;){var u=0;for(h=b.parentNode;p=h.childNodes[u++];)if(p===b){--u;break}g.unshift(u);f.unshift(u-h.childNodes.length);b=h}if(0<g.length&&3==m.nodeType){for(p=m.previousSibling;p&&3==p.nodeType;)g[g.length-1]--,p=p.previousSibling;for(p=m.nextSibling;p&&3==p.nodeType;)f[f.length-1]++,p=p.nextSibling}return{o:g,r:f}},getNode:function(b,d){if(!L.isArray(b)||0==b.length)return d;var g=d;
w.every(b,function(f){if(0<=f&&f<g.childNodes.length)g=g.childNodes[f];else return g=null,!1;return!0});return g},getCommonAncestor:function(b,d,g){g=g||b.ownerDocument.body;var f=function(p){for(var u=[];p;)if(u.unshift(p),p!==g)p=p.parentNode;else break;return u};b=f(b);d=f(d);f=Math.min(b.length,d.length);for(var m=b[0],h=1;h<f;h++)if(b[h]===d[h])m=b[h];else break;return m},getAncestor:function(b,d,g){for(g=g||b.ownerDocument.body;b&&b!==g;){var f=b.nodeName.toUpperCase();if(d.test(f))return b;
b=b.parentNode}return null},BlockTagNames:/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/,getBlockAncestor:function(b,d,g){g=g||b.ownerDocument.body;d=d||I.BlockTagNames;for(var f=null,m;b&&b!==g;){var h=b.nodeName.toUpperCase();!f&&d.test(h)&&(f=b);!m&&/^(?:BODY|TD|TH|CAPTION)$/.test(h)&&(m=b);b=b.parentNode}return{blockNode:f,blockContainer:m||b.ownerDocument.body}},atBeginningOfContainer:function(b,d,g){var f=!1,m=0==g;m||3!=d.nodeType||/^[\s\xA0]+$/.test(d.nodeValue.substr(0,g))&&(m=
!0);if(m)for(f=!0;d&&d!==b;){if(d.previousSibling){f=!1;break}d=d.parentNode}return f},atEndOfContainer:function(b,d,g){var f=!1,m=g==(d.length||d.childNodes.length);m||3!=d.nodeType||/^[\s\xA0]+$/.test(d.nodeValue.substr(g))&&(m=!0);if(m)for(f=!0;d&&d!==b;){if(d.nextSibling){f=!1;break}d=d.parentNode}return f},adjacentNoneTextNode:function(b,d){var g=b;b=0-b.length||0;for(d=d?"nextSibling":"previousSibling";g&&3==g.nodeType;)b+=g.length,g=g[d];return[g,b]},create:function(b){b=b||window;return b.getSelection?
b.document.createRange():new a},getSelection:function(b,d){if(b.getSelection)return b.getSelection();b=new E.selection(b);d||b._getCurrentSelection();return b}};if(!window.getSelection)var E=I.ie={cachedSelection:{},selection:function(b){this._ranges=[];this.addRange=function(d,g){this._ranges.push(d);g||d._select();this.rangeCount=this._ranges.length};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0};this.getRangeAt=function(d){return this._ranges[d]};this._getCurrentSelection=function(){this.removeAllRanges();
var d=b.document.selection.createRange();d="CONTROL"==b.document.selection.type.toUpperCase()?new a(E.decomposeControlRange(d)):new a(E.decomposeTextRange(d));this.addRange(d,!0),this.isCollapsed=d.collapsed}},decomposeControlRange:function(b){var d=b.item(0),g=b.item(b.length-1);b=d.parentNode;var f=g.parentNode;d=I.getIndex(d,b).o[0];g=I.getIndex(g,f).o[0]+1;return[b,d,f,g]},getEndPoint:function(b,d){var g=b.duplicate();g.collapse(!d);var f="EndTo"+(d?"End":"Start"),m=g.parentElement(),h;if(0<m.childNodes.length)w.every(m.childNodes,
function(G,e){if(3!=G.nodeType)if(g.moveToElementText(G),0<g.compareEndPoints(f,b))if(h&&3==h.nodeType){p=h;var l=!0}else return p=m,u=e,!1;else{if(e==m.childNodes.length-1)return p=m,u=m.childNodes.length,!1}else e==m.childNodes.length-1&&(p=G,l=!0);if(l&&p)return p=(G=I.adjacentNoneTextNode(p)[0])?G.nextSibling:m.firstChild,e=I.adjacentNoneTextNode(p),G=e[0],e=e[1],G?(g.moveToElementText(G),g.collapse(!1)):g.moveToElementText(m),g.setEndPoint(f,b),u=g.text.length-e,!1;h=G;return!0});else{var p=
m;var u=0}d||1!=p.nodeType||u!=p.childNodes.length||(d=p.nextSibling)&&3==d.nodeType&&(p=d,u=0);return[p,u]},setEndPoint:function(b,d,g){b=b.duplicate();var f;if(3!=d.nodeType)if(0<g){if(f=d.childNodes[g-1])if(3==f.nodeType)d=f,g=f.length;else if(f.nextSibling&&3==f.nextSibling.nodeType)d=f.nextSibling,g=0;else{b.moveToElementText(f.nextSibling?f:d);var m=f.parentNode;f=m.insertBefore(f.ownerDocument.createTextNode(" "),f.nextSibling);b.collapse(!1);m.removeChild(f)}}else b.moveToElementText(d),b.collapse(!0);
3==d.nodeType&&(f=I.adjacentNoneTextNode(d),m=f[0],f=f[1],m?(b.moveToElementText(m),b.collapse(!1),"inherit"!=m.contentEditable&&f++):(b.moveToElementText(d.parentNode),b.collapse(!0),b.move("character",1),b.move("character",-1)),g+=f,0<g&&b.move("character",g)!=g&&console.error("Error when moving!"));return b},decomposeTextRange:function(b){var d=E.getEndPoint(b),g=d[0],f=d[1],m=d[0];d=d[1];b.htmlText.length&&(b.htmlText==b.text?d=f+b.text.length:(d=E.getEndPoint(b,!0),m=d[0],d=d[1]));return[g,f,
m,d]},setRange:function(b,d,g,f,m,h){d=E.setEndPoint(b,d,g);b.setEndPoint("StartToStart",d);if(!h)var p=E.setEndPoint(b,f,m);b.setEndPoint("EndToEnd",p||d);return b}},a=I.W3CRange=F(null,{constructor:function(){0<arguments.length?(this.setStart(arguments[0][0],arguments[0][1]),this.setEnd(arguments[0][2],arguments[0][3])):(this.startContainer=this.commonAncestorContainer=null,this.startOffset=0,this.endContainer=null,this.endOffset=0,this.collapsed=!0)},_updateInternal:function(){this.commonAncestorContainer=
this.startContainer!==this.endContainer?I.getCommonAncestor(this.startContainer,this.endContainer):this.startContainer;this.collapsed=this.startContainer===this.endContainer&&this.startOffset==this.endOffset},setStart:function(b,d){d=parseInt(d);if(this.startContainer!==b||this.startOffset!=d)delete this._cachedBookmark,this.startContainer=b,this.startOffset=d,this.endContainer?this._updateInternal():this.setEnd(b,d)},setEnd:function(b,d){d=parseInt(d);if(this.endContainer!==b||this.endOffset!=d)delete this._cachedBookmark,
this.endContainer=b,this.endOffset=d,this.startContainer?this._updateInternal():this.setStart(b,d)},setStartAfter:function(b,d){this._setPoint("setStart",b,d,1)},setStartBefore:function(b,d){this._setPoint("setStart",b,d,0)},setEndAfter:function(b,d){this._setPoint("setEnd",b,d,1)},setEndBefore:function(b,d){this._setPoint("setEnd",b,d,0)},_setPoint:function(b,d,g,f){g=I.getIndex(d,d.parentNode).o;this[b](d.parentNode,g.pop()+f)},_getIERange:function(){var b=(this._body||this.endContainer.ownerDocument.body).createTextRange();
E.setRange(b,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return b},getBookmark:function(){this._getIERange();return this._cachedBookmark},_select:function(){this._getIERange().select()},deleteContents:function(){var b=this.startContainer,d=this._getIERange();3!==b.nodeType||this.startOffset||this.setStartBefore(b);d.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=!0},cloneRange:function(){var b=new a([this.startContainer,
this.startOffset,this.endContainer,this.endOffset]);b._body=this._body;return b},detach:function(){this.startContainer=this.commonAncestorContainer=this._body=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=!0}});L.setObject("dijit.range",I);return I})},"dijit/_editor/html":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/sniff"],function(w,F,L){var I={};F.setObject("dijit._editor.html",I);var E=I.escapeXml=function(a,b){a=a.replace(/&/gm,"\x26amp;").replace(/</gm,
"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");b||(a=a.replace(/'/gm,"\x26#39;"));return a};I.getNodeHtml=function(a){var b=[];I.getNodeHtmlHelper(a,b);return b.join("")};I.getNodeHtmlHelper=function(a,b){switch(a.nodeType){case 1:var d=a.nodeName.toLowerCase();if(!d||"/"==d.charAt(0))return"";b.push("\x3c",d);var g=[],f={},m;if(L("dom-attributes-explicit")||L("dom-attributes-specified-flag"))for(var h=0;m=a.attributes[h++];){var p=m.name;"_dj"===p.substr(0,3)||L("dom-attributes-specified-flag")&&
!m.specified||p in f||(m=m.value,("src"==p||"href"==p)&&a.getAttribute("_djrealurl")&&(m=a.getAttribute("_djrealurl")),8===L("ie")&&"style"===p&&(m=m.replace("HEIGHT:","height:").replace("WIDTH:","width:")),g.push([p,m]),f[p]=m)}else{var u=(/^input$|^img$/i.test(a.nodeName)?a:a.cloneNode(!1)).outerHTML;f=u.match(/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi);u=u.substr(0,u.indexOf("\x3e"));w.forEach(f,function(G){if(G){var e=G.indexOf("\x3d");if(0<e&&(G=G.substring(0,e),"_dj"!=G.substr(0,3)))if("src"!=G&&"href"!=
G||!a.getAttribute("_djrealurl")){switch(G){case "style":var l=a.style.cssText.toLowerCase();break;case "class":l=a.className;break;case "width":if("img"===d){(e=/width=(\S+)/i.exec(u))&&(l=e[1]);break}case "height":if("img"===d){(e=/height=(\S+)/i.exec(u))&&(l=e[1]);break}default:l=a.getAttribute(G)}null!=l&&g.push([G,l.toString()])}else g.push([G,a.getAttribute("_djrealurl")])}},this)}g.sort(function(G,e){return G[0]<e[0]?-1:G[0]==e[0]?0:1});for(f=0;m=g[f++];)b.push(" ",m[0],'\x3d"',"string"===
typeof m[1]?E(m[1],!0):m[1],'"');switch(d){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":b.push(" /\x3e");break;case "script":b.push("\x3e",a.innerHTML,"\x3c/",d,"\x3e");break;default:b.push("\x3e"),a.hasChildNodes()&&I.getChildrenHtmlHelper(a,b),b.push("\x3c/",d,"\x3e")}break;case 4:case 3:b.push(E(a.nodeValue,!0));break;case 8:b.push("\x3c!--",E(a.nodeValue,!0),"--\x3e");break;default:b.push("\x3c!-- Element not recognized - Type: ",a.nodeType," Name: ",
a.nodeName,"--\x3e")}};I.getChildrenHtml=function(a){var b=[];I.getChildrenHtmlHelper(a,b);return b.join("")};I.getChildrenHtmlHelper=function(a,b){if(a)for(var d=a.childNodes||a,g=!L("ie")||d!==a,f,m=0;f=d[m++];)g&&f.parentNode!=a||I.getNodeHtmlHelper(f,b)};return I})},"widgets/NetworkTrace/setting/summarySettingSelector":function(){define("dojo/_base/declare dijit/_WidgetsInTemplateMixin dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./summarySettingSelector.html dijit/TooltipDialog dijit/popup dojo/_base/lang dojo/_base/html dojo/on dojo/dom-construct dijit/form/Select".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h){return w([L,I,F],{baseClass:"jimu-widget-NetworkTrace-setting",templateString:E,_isTooltipDialogOpened:!1,startup:function(){this.inherited(arguments)},postCreate:function(){this._createTooltipDialog(this.domNode);this._hideTooltipDialog()},destroy:function(){this.tooltipDialog&&(b.close(this.tooltipDialog),this.tooltipDialog.destroy());this.inherited(arguments)},_showTooltipDialog:function(){b.open({parent:this.getParent(),popup:this.tooltipDialog,around:this.domNode});
this._isTooltipDialogOpened=!0},_hideTooltipDialog:function(){b.close(this.tooltipDialog);this._isTooltipDialogOpened=!1},_createTooltipDialog:function(){var p=this._createSummarySettingOptions();this.tooltipDialog=new a({content:p,baseClass:"jimu-widget-NetworkTrace-setting"});this.own(f(this.domNode,"click",d.hitch(this,function(u){u.stopPropagation();u.preventDefault();this._isTooltipDialogOpened?this._hideTooltipDialog():this._showTooltipDialog()})))},_createSummarySettingOptions:function(){var p=
m.create("div",{"class":"esriCTSummarySettingSelector"});m.create("div",{innerHTML:this.nls.summaryTab.addSummaryItemsTitle,"class":"esriCTOutputHeaderLabel"},p);for(var u=[],G=0;G<this.inputOutputParamArray.length;G++)u.push({label:this.inputOutputParamArray[G].name,value:this.inputOutputParamArray[G].name,defaultValue:this.inputOutputParamArray[G].defaultValue,selected:0===G?!0:!1});G=m.create("table",{"class":"esriCTPopupTable"},p);var e=m.create("tr",{},G);m.create("td",{innerHTML:this.nls.summaryTab.inputOutput},
e);e=m.create("td",{},e);e=m.create("div",{"class":"esriCTDropDownContainer"},e);this.outputSelect=new h({options:u,"class":"esriCTSummaryExpressionSelect"});this.outputSelect.placeAt(e);u=m.create("tr",{},G);m.create("td",{innerHTML:this.nls.summaryTab.operator},u);u=m.create("td",{},u);u=m.create("div",{"class":"esriCTDropDownContainer"},u);this.operatorSelect=new h({options:[],"class":"esriCTSummaryExpressionSelect"});this.operatorSelect.placeAt(u);this.own(f(this.operatorSelect,"change",d.hitch(this,
function(){this.operatorSelect.get("value")===this.nls.summaryTab.outputOperatorCountOption?this.fieldSelect.set("disabled",!0):this.fieldSelect.set("disabled",!1)})));u=m.create("tr",{},G);m.create("td",{innerHTML:this.nls.summaryTab.field},u);u=m.create("td",{},u);u=m.create("div",{"class":"esriCTDropDownContainer"},u);this.fieldSelect=new h({options:[],"class":"esriCTSummaryExpressionSelect"});this.fieldSelect.placeAt(u);G=m.create("tr",{},G);G=m.create("td",{colspan:"2"},G);u=m.create("div",{"class":"esriCTButtonContainer"},
G);G=m.create("div",{"class":"jimu-btn jimu-float-leading esriCTAddButtonMargin",innerHTML:this.nls.summaryTab.expressionAddButtonText},u);u=m.create("div",{"class":"jimu-btn jimu-float-trailing",innerHTML:this.nls.common.cancel},u);this.own(f(u,"click",d.hitch(this,this._hideTooltipDialog)));this.own(f(document.body,"click",d.hitch(this,function(l){this.isPartOfPopup(l.target||l.srcElement,p)||this._hideTooltipDialog()})));this.own(f(G,"click",d.hitch(this,this._addExpression)));this.outputSelect.startup();
this.own(this.outputSelect.on("change",d.hitch(this,this._onOutputDropDownChange)));this._onOutputDropDownChange(this.outputSelect.getValue());return p},_onOutputDropDownChange:function(p){var u=this.fieldSelect,G=this.operatorSelect,e=this.inputOutputParamArray,l=[];for(l=0;l<e.length;l++)if(e[l].name===p){p=[];if(e[l].defaultValue&&e[l].defaultValue.fields)var y=e[l].defaultValue.fields;if(y&&0<y.length)for(var B=0;B<y.length;B++)if("esriFieldTypeDouble"===y[B].type||"esriFieldTypeSmallInteger"===
y[B].type||"esriFieldTypeInteger"===y[B].type){var k=m.create("option",{});k.innerHTML=y[B].name;k.value=y[B].name;k.title=y[B].name;p.push(k)}0<p.length?l="Input"===e[l].type?this._getOperatorOptions(!0,!1,!1,!1):this._getOperatorOptions(!1,!1,!0,!1):(p=[{label:"",value:"",selected:!0}],l=this._getOperatorOptions(!0,!1,!1,!1));u.set("options",p);u.set("disabled",!0);G.set("options",l);u.startup();G.startup();break}},_addExpression:function(){this._editorObj.focus();var p="";""!==this.outputSelect.get("value")&&
(p=""!==p?p+":"+this.outputSelect.get("value"):this.outputSelect.get("value"));""===this.fieldSelect.get("value")||this.fieldSelect.get("disabled")||(p=""!==p?p+":"+this.fieldSelect.get("value"):this.fieldSelect.get("value"));""!==this.operatorSelect.get("value")&&(p=""!==p?p+":"+this.operatorSelect.get("value"):this.operatorSelect.get("value"));this._editorObj.execCommand("inserthtml","{"+p+"}")},_getOperatorOptions:function(p,u,G,e){var l=[];p?l.push({label:this.nls.summaryTab.inputOperatorCountOption,
value:this.nls.summaryTab.inputOperatorCountOption,selected:!0}):u?(l.push({label:this.nls.summaryTab.outputOperatorCountOption,value:this.nls.summaryTab.outputOperatorCountOption,selected:!0}),e&&l.push({label:this.nls.summaryTab.outputOperatorSkipCountOption,value:this.nls.summaryTab.outputOperatorSkipCountOption,selected:!1})):G&&(l.push({label:this.nls.summaryTab.outputOperatorCountOption,value:this.nls.summaryTab.outputOperatorCountOption,selected:!0}),l.push({label:this.nls.summaryTab.fieldOperatorSumOption,
value:this.nls.summaryTab.fieldOperatorSumOption,selected:!0}),l.push({label:this.nls.summaryTab.fieldOperatorMinOption,value:this.nls.summaryTab.fieldOperatorMinOption,selected:!1}),l.push({label:this.nls.summaryTab.fieldOperatorMaxOption,value:this.nls.summaryTab.fieldOperatorMaxOption,selected:!1}),l.push({label:this.nls.summaryTab.fieldOperatorMeanOption,value:this.nls.summaryTab.fieldOperatorMeanOption,selected:!1}));return l},isPartOfPopup:function(p,u){return p===u||g.isDescendant(p,u)}})})},
"widgets/NetworkTrace/setting/FieldSelector":function(){define("dojo/_base/declare jimu/BaseWidgetSetting dijit/_WidgetsInTemplateMixin dojo/text!./FieldSelector.html dijit/TooltipDialog dijit/popup dojo/_base/lang dojo/_base/html dojo/on dojo/dom-style dojo/dom-attr dojo/dom-construct dojo/_base/array".split(" "),function(w,F,L,I,E,a,b,d,g,f,m,h,p){return w([F,L],{baseClass:"jimu-widget-RelatedTableCharts-setting",templateString:I,_stringFieldType:"esriFieldTypeString",_oidFieldType:"esriFieldTypeOID",
_numberFieldTypes:["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble"],_isTooltipDialogOpened:!1,fields:[],hideOnSelect:!1,showOnlyNumericFields:!1,skipObjectIdField:!1,startup:function(){this.inherited(arguments)},postCreate:function(){this._createTooltipDialog(this.domNode);this._hideTooltipDialog()},destroy:function(){a.close(this.tooltipDialog);this.tooltipDialog.destroy();this.inherited(arguments)},isPartOfPopup:function(u){var G=this.tooltipDialog.domNode;
return u===G||d.isDescendant(u,G)},onSelect:function(u){},_showTooltipDialog:function(){a.open({parent:this.getParent(),popup:this.tooltipDialog,around:this.domNode});this._isTooltipDialogOpened=!0},_hideTooltipDialog:function(){a.close(this.tooltipDialog);this._isTooltipDialogOpened=!1},_createTooltipDialog:function(){var u=this._createFieldList();this.tooltipDialog=new E({content:u});this.own(g(this.domNode,"click",b.hitch(this,function(G){G.stopPropagation();G.preventDefault();this._isTooltipDialogOpened?
this._hideTooltipDialog():this._showTooltipDialog()})));this.own(g(document.body,"click",b.hitch(this,function(G){this.isPartOfPopup(G.target||G.srcElement)||this._hideTooltipDialog()})))},_createFieldList:function(){var u=h.create("div",{style:{"max-height":"150px",overflow:"auto"}});if(this.fields){var G=b.clone(this.fields);p.forEach(G,b.hitch(this,function(e){var l=!0;this.showOnlyNumericFields&&0>this._numberFieldTypes.indexOf(e.type)&&(l=!1);this.skipObjectIdField&&e.type===this._oidFieldType&&
(l=!1);if(l){l=e.alias+" {"+e.name+"}";var y=h.create("div",{innerHTML:l,style:{cursor:"pointer",padding:"4px 2px"}},u);m.set(y,"name",e.name);m.set(y,"alias",e.alias);g(y,"mouseover",b.hitch(this,function(){f.set(y,"background-color","#e4e4e4")}));g(y,"mouseout",b.hitch(this,function(){f.set(y,"background-color","#FFFFFF")}));g(y,"click",b.hitch(this,function(){var B={};B.name=m.get(y,"name");B.alias=m.get(y,"alias");this.onSelect(B);this.hideOnSelect&&this._hideTooltipDialog()}))}}))}return u}})})},
"esri/dijit/VisibleScaleRangeSlider":function(){define("../kernel ./_EventedWidget ./_Tooltip ./VisibleScaleRangeSlider/_RecommendedScaleRangeBounds ./VisibleScaleRangeSlider/_SlideEvent ./VisibleScaleRangeSlider/ScaleMenu ./VisibleScaleRangeSlider/ScalePreview ./VisibleScaleRangeSlider/ScaleRanges dijit/form/DropDownButton dijit/popup dojo/_base/array dojo/_base/lang dojo/aspect dojo/debounce dojo/Deferred dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/on dojo/string dojox/form/HorizontalRangeSlider dojo/i18n!../nls/jsapi".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N){F=F.createSubclass([L],{declaredClass:"esri.dijit.VisibleScaleRangeSlider",baseClass:"esriVisibleScaleRangeSlider",css:{currentScaleIndicator:"esriCurrentScaleIndicator",currentScaleIndicatorContainer:"esriCurrentScaleIndicatorContainer",scaleIndicator:"esriScaleIndicator",scaleIndicatorContainer:"esriScaleIndicatorContainer"},disabled:!1,map:null,layer:null,region:"en-US",minScale:0,maxScale:0,intermediateChanges:!1,labels:N.widgets.visibleScaleRangeSlider,
_slider:null,_currentScaleIndicator:null,_scalePreview:null,_maxScaleButton:null,_minScaleButton:null,_mapUpdateHandler:null,_scaleRanges:null,_scheduleScaleRangeChangeEmit:null,_getSliderIndexRange:function(x){x=Math.floor(x);return{min:x,max:x+.99999}},_setDisabledAttr:function(x){this._slider.set("disabled",x);this._maxScaleButton.set("disabled",x);this._minScaleButton.set("disabled",x);this._set("disabled",x)},_setMapAttr:function(x){this._set("map",x);this._mapUpdateHandler&&this._mapUpdateHandler.remove();
this._slider.set("disabled",!0);this._ensureMap().then(this._updateFromMap)},_setConstraintsAttr:function(x){this._set("constraints",x);this._setUpSlider({minScale:x.minScale,maxScale:x.maxScale})},_updateFromMap:function(x){var D=x.getMinScale(),q=x.getMaxScale();this._setUpSlider({minScale:D,maxScale:q});this._updateCurrentScaleIndicator();x=x.on("zoom-end",h.hitch(this,this._updateCurrentScaleIndicator));this.own(x);this._mapUpdateHandler=x},_setUpSlider:function(x){var D=x.maxScale;x=x.minScale;
this._slider.set("disabled",this.get("disabled"));this._scaleRanges.set("scaleRangeBounds",{minScale:x,maxScale:D});var q=this._getSliderIndexRange(this._scaleRanges.length-1);this._slider.set("maximum",q.max);this._silentSliderUpdate({maxScale:D,minScale:x})},_ensureMap:function(){return this._untilLoaded(this.map)},_untilLoaded:function(x){var D=new G;if(x)if(x.loaded)D.resolve(x);else x.on("load",function(){D.resolve(x)});else D.reject(Error("could not load resource"));return D.promise},_updateCurrentScaleIndicator:function(){var x=
this._scaleRanges.clampScale(this.map.getScale());x=this._mapScaleToSlider(x)/this._slider.maximum;this.isLeftToRight()||(x=1-x);B.set(this._currentScaleIndicator,{left:100*x+"%"})},_setLayerAttr:function(x){this._set("layer",x);this._ensureScaleRangeProvider().then(this._ensureLayer).then(this._updateMinMaxScaleFromLayer)},_ensureLayer:function(){return this._untilLoaded(this.layer)},_updateMinMaxScaleFromLayer:function(x){this.set({minScale:x.minScale,maxScale:x.maxScale})},_mapSliderToScale:function(x){var D=
this._getSliderIndexRange(x),q=this._scaleRanges.findScaleRangeByIndex(x);return this._mapToRange(x,D.min,D.max,q.minScale,q.maxScale)},_mapToRange:function(x,D,q,z,O){return z+(x-D)*(O-z)/(q-D)},_setRegionAttr:function(x){this._set("region",x);this._scalePreview.set("source",d.getScalePreviewSource(x))},_getMinimumAttr:function(){return this._mapSliderToScale(this._slider.minimum)},_getMaximumAttr:function(){return this._mapSliderToScale(this._slider.maximum)},_getActualMaxScaleAttr:function(){return this._scaleRanges.clampMaxScale(this.maxScale)},
_setMaxScaleAttr:function(x){this._set("maxScale",x);this._ensureScaleRangeProvider().then(h.hitch(this,function(){x=this._scaleRanges.clampMaxScale(x);this._set("maxScale",this._layerConstrainedMaxScale(x));this._silentSliderUpdate({maxScale:x});this._scheduleScaleRangeChangeEmit()}))},_silentSliderUpdate:function(x){var D=x.minScale,q=x.maxScale,z=this._scaleRanges;x=this._slider;void 0!==D&&(D=this._mapScaleToSlider(z.clampMinScale(D)),x.set("value",D,!1,!1));void 0!==q&&(D=this._mapScaleToSlider(z.clampMaxScale(q)),
x.set("value",D,!1,!0))},_mapScaleToSlider:function(x){var D=this._scaleRanges.scaleToRangeIndex(x),q=this._getSliderIndexRange(D);D=this._scaleRanges.findScaleRangeByIndex(D);return this._mapToRange(x,D.minScale,D.maxScale,q.min,q.max)},_getActualMinScaleAttr:function(){return this._scaleRanges.clampMinScale(this.minScale)},_setMinScaleAttr:function(x){this._set("minScale",x);this._ensureScaleRangeProvider().then(h.hitch(this,function(){x=this._scaleRanges.clampMinScale(x);this._set("minScale",this._layerConstrainedMinScale(x));
this._silentSliderUpdate({minScale:x});this._scheduleScaleRangeChangeEmit()}))},_ensureScaleRangeProvider:function(){if(this.map)return this._ensureMap();var x=new G;this.constraints&&x.resolve();return x.promise},_emitScaleRangeChange:function(){this.emit("scale-range-change",{minScale:this.minScale,maxScale:this.maxScale})},_layerConstrainedMinScale:function(x){var D=h.getObject("tileInfo.lods",!1,this.layer)||[];var q=this.layer&&("esri.layers.RasterXLayer"===this.layer.declaredClass||"esri.layers.ArcGISImageServiceLayer"===
this.layer.declaredClass);return 0<D.length&&!q?(D=D[0].scale,q=this._scaleRanges.get("firstRange"),(q=.85<this._mapToRange(x,q.maxScale,q.minScale,0,1))?D:x>D?D:x):this._scaleRanges.beyondMinScale(x)?0:x},_layerConstrainedMaxScale:function(x){var D=h.getObject("tileInfo.lods",!1,this.layer)||[],q=this.layer&&("esri.layers.RasterXLayer"===this.layer.declaredClass||"esri.layers.ArcGISImageServiceLayer"===this.layer.declaredClass);return 0<D.length&&!q?(D=D[D.length-1].scale,x<D?D:x):this._scaleRanges.beyondMaxScale(x)?
0:x},constructor:function(){this._scaleRanges=new (d.createSubclass([I]));this._scheduleScaleRangeChangeEmit=u(h.hitch(this,this._emitScaleRangeChange),0);this._ensureMap=h.hitch(this,this._ensureMap);this._ensureScaleRangeProvider=h.hitch(this,this._ensureScaleRangeProvider);this._ensureLayer=h.hitch(this,this._ensureLayer);this._updateMinMaxScaleFromLayer=h.hitch(this,this._updateMinMaxScaleFromLayer);this._updateFromMap=h.hitch(this,this._updateFromMap)},buildRendering:function(){this.inherited(arguments);
this._initSlider();this._initScalePreview();this._initCurrentScaleIndicator();this._initScaleMenus()},_initSlider:function(){var x=new (r.createSubclass([E]))({baseClass:"esriHorizontalSlider",showButtons:!1,intermediateChanges:this.intermediateChanges,disabled:!0});this._slider=x;x.placeAt(this.domNode);x.startup();this.own(x.on("slide-onmousemove, slidemax-onmousemove",h.hitch(this,function(D){this._updateScalePreview(D.movable.handle)})),x.on("slide-onmovestop, slidemax-onmovestop",h.hitch(this,
function(D){e.contains(D.movable.handle,"dijitSliderThumbHover")||this._closeScalePreview()})),x.on("change",h.hitch(this,function(){var D=Math.round(this._mapSliderToScale(this._getSliderMin())),q=Math.round(this._mapSliderToScale(this._getSliderMax()));this.set({minScale:D,maxScale:q})})),p.after(x,"_setValueAttr",h.hitch(this,this._updateLabelMenus)))},_getSliderMin:function(){return this._slider.get("value")[0]},_getSliderMax:function(){return this._slider.get("value")[1]},_updateLabelMenus:function(){var x=
this._maxScaleButton;this._minScaleButton.set("label",this._scaleRanges.getScaleRangeLabel(this._getSliderMin()));x.set("label",this._scaleRanges.getScaleRangeLabel(this._getSliderMax()))},_initScalePreview:function(){var x=new b;x.startup();f.moveOffScreen(x);m.forEach([this._slider._movable.handle,this._slider._movableMax.handle],function(D){D.onmouseenter=h.hitch(this,this._updateScalePreview,D);D.onmouseleave=h.hitch(this,this._closeScalePreview)},this);this.own(x);this._scalePreview=x},_closeScalePreview:function(){f.close(this._scalePreview)},
_updateScalePreview:function(x){if(!this.disabled){var D=this._scalePreview;f.moveOffScreen(D);var q=this._slider,z=x===q.sliderHandle?this._getSliderMin():this._getSliderMax(),O=y.position(x),v=y.position(D.domNode);q=y.position(q.sliderBarContainer);var c=this.isLeftToRight();z=this._scaleRanges.getScalePreviewSpriteBackgroundPosition(z);D.set("backgroundPosition",z);O=O.x-q.x;v=.5*v.w;f.open({parent:this,popup:D,around:x,orient:O<v?c?["above","below"]:["above-alt","below-alt"]:O<q.w-v?["above-centered",
"below-centered"]:c?["above-alt","below-alt"]:["above","below"]})}},_initCurrentScaleIndicator:function(){if(this.map){var x=l.create("div",{className:this.css.scaleIndicatorContainer+" "+this.css.currentScaleIndicatorContainer},this._slider.sliderBarContainer),D=l.create("div",{className:this.css.scaleIndicator+" "+this.css.currentScaleIndicator},x);this._currentScaleIndicator=D;this.createTooltip(D);x=t(D,"mouseover",h.hitch(this,function(){var q=H.substitute(this.labels.currentScaleTooltip,{scaleLabel:this._scaleRanges.getScaleRangeLabel(this._mapScaleToSlider(this.map.getScale()))});
this.findTooltip(D).set("label",q)}));this.own(x)}},_initScaleMenus:function(){var x=new a,D=new a;this.own(x.on("scale-selected",h.hitch(this,function(O){q.closeDropDown();this.set("minScale",O.scale)})));this.own(D.on("scale-selected",h.hitch(this,function(O){z.closeDropDown();this.set("maxScale",O.scale)})));var q=new g({baseClass:"esriScaleMenuButton esriMinScaleMenuButton",dropDown:x,dropDownPosition:["below","above"]});q.toggleDropDown();q.toggleDropDown();var z=new g({baseClass:"esriScaleMenuButton esriMaxScaleMenuButton",
dropDown:D,dropDownPosition:["below","above"]});z.toggleDropDown();z.toggleDropDown();this.own(p.before(q,"openDropDown",h.hitch(this,function(){var O=this._scaleRanges.findScaleRange(this.get("actualMaxScale")).minScale;x.set("options",{label:q.label,scale:{current:this.get("actualMinScale"),map:this._getMapScale(),min:this.get("minimum"),max:O}})})));this.own(p.before(z,"openDropDown",h.hitch(this,function(){var O=this._scaleRanges.findScaleRange(this.get("actualMinScale")).maxScale;D.set("options",
{label:z.label,scale:{current:this.get("actualMaxScale"),map:this._getMapScale(),min:O,max:this.get("maximum")}})})));q.placeAt(this.domNode);z.placeAt(this.domNode);x.startup();D.startup();q.startup();z.startup();this._minScaleButton=q;this._maxScaleButton=z},_getMapScale:function(){return this.map?this.map.getScale():-1},startup:function(){this.inherited(arguments);this.watch("intermediateChanges",function(x,D,q){this._slider.set(x,q)})}});k("extend-esri")&&h.setObject("dijit.VisibleScaleRangeSlider",
F,w);return F})},"esri/dijit/_Tooltip":function(){define(["dijit/Tooltip","dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom"],function(w,F,L,I,E){return L(null,{declaredClass:"esri.dijit._Tooltip",_tooltips:null,constructor:function(){this._tooltips=[]},startup:function(){this.inherited(arguments);this._started||F.forEach(this._tooltips,function(a){a.startup()})},destroy:function(){this.inherited(arguments);F.forEach(this._tooltips,function(a){a.destroy()});this._tooltips=null},
createTooltips:function(a){F.forEach(a,function(b){this.createTooltip(b.node,b.label)},this)},createTooltip:function(a,b){if(a=this._getConnectId(a))b="object"===typeof b?I.mixin({},b,{connectId:a}):{connectId:a,label:b},b=new w(b),this._started&&b.startup(),this._tooltips.push(b)},_getConnectId:function(a){var b;if(a){if(I.isArray(a)){var d=[];F.forEach(a,function(g){(b=this._getNode(g))&&d.push(b)});if(0===d.length)return}else if(d=this._getNode(a),!d)return;return d}},_getNode:function(a){return E.byId(a.domNode||
a)},findTooltip:function(a){var b=this._getNode(a),d;if(a){a=this._tooltips;var g=a.length;for(var f=0;f<g;f++){var m=a[f];if(d=I.isArray(m.connectId)?-1<F.indexOf(m.connectId,b):m.connectId===b)return m}}}})})},"esri/dijit/VisibleScaleRangeSlider/_RecommendedScaleRangeBounds":function(){define(["./recommendedScales","dojo/_base/declare"],function(w,F){return F(null,{declaredClass:"esri.dijit.VisibleScaleRangeSlider._RecommendedScaleRangeBounds",beyondMinScale:function(L){var I=this.get("firstRange"),
E=I.minScale;I=w.getRecommendedScale(I.id)||I.maxScale;return L<=E&&L>I},beyondMaxScale:function(L){var I=this.get("lastRange"),E=I.maxScale;I=w.getRecommendedScale(I.id)||I.minScale;return L<I&&L>=E}})})},"esri/dijit/VisibleScaleRangeSlider/recommendedScales":function(){define(["dojo/_base/lang"],function(w){var F={_recommendedScales:{world:1E8,continent:5E7,countriesBig:25E6,countriesSmall:12E6,statesProvinces:6E6,stateProvince:3E6,counties:15E5,county:75E4,metropolitanArea:32E4,cities:16E4,city:8E4,
town:4E4,neighborhood:2E4,streets:1E4,street:5E3,buildings:2500,building:1250,smallBuilding:800,rooms:400,room:100},getRecommendedScale:function(L){return F._recommendedScales[L]},all:function(){return w.clone(F._recommendedScales)}};return F})},"esri/dijit/VisibleScaleRangeSlider/_SlideEvent":function(){define(["dojo/_base/array","dojo/_base/declare"],function(w,F){return F(null,{declaredClass:"esri.dijit.VisibleScaleRangeSlider._SlideEvent",_events:["onMouseMove","onFirstMove",{name:"onMoveStop",
hookTo:"destroy"}],postCreate:function(){this.inherited(arguments);this._extendMover(this._movable);this._extendMover(this._movableBar,"rangebar");this._extendMover(this._movableMax,"max")},_extendMover:function(L,I){if(L){var E=L.mover,a={};w.forEach(this._events,function(b){if("object"===typeof b){var d=b.name;var g=b.hookTo}else d=b;var f=E.prototype[d]||function(){};var m="slide"+(I||"")+"-"+d.toLowerCase();var h=function(){f.apply(this,arguments);this.widget.emit(m,{movable:L})};if(g){var p=
E.prototype[g];a[g]=function(){p.apply(this,arguments);h.apply(this,arguments)}}a[d]=h});E.extend(a)}}})})},"esri/dijit/VisibleScaleRangeSlider/ScaleMenu":function(){define("../../kernel ../_EventedWidget ../_Tooltip ./recommendedScales ./ScaleRanges dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/dom-prop dojo/dom-style dojo/has dojo/keys dojo/number dojo/on dojo/query dojo/string dojox/html/entities dojox/lang/functional/object dojo/i18n!../../nls/jsapi dojo/text!./templates/ScaleMenu.html dijit/form/TextBox".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N){F=d([F,a,b,L],{declaredClass:"esri.dijit.VisibleScaleRangeSlider.ScaleMenu",templateString:N,baseClass:"esriScaleMenu",labels:r.widgets.visibleScaleRangeSlider,css:{header:"esriHeader",section:"esriSection",content:"esriContent",current:"esriCurrent",input:"esriInput",list:"esriList",item:"esriItem",inline:"esriInline",selectable:"esriSelectable",hidden:"esriHidden"},_elementValueMap:null,_elements:null,_scaleRangeCategories:null,_scaleRanges:null,
_rangeToScaleAndNodeLookup:null,constructor:function(){this._scaleRanges=new E},buildRendering:function(){this.inherited(arguments);this._rangeToScaleAndNodeLookup={map:{scale:null,node:this.dap_mapScaleItem}};var x=this.labels,D=x.featuredScaleLabels,q=I.all(),z=this.css.item+" "+this.css.selectable,O;g.forEach(H.keys(q),function(n){O=D[n];var C=q[n],J=k.substitute(O,{scaleLabel:this._formatScale(C)});J=h.create("li",{innerHTML:J,className:z},this.dap_recommendedScales);this._rangeToScaleAndNodeLookup[n]=
{scale:C,node:J}},this);var v=h.create("span",{innerHTML:x.setTo,className:this.css.inline}),c=h.create("span",{innerHTML:x.selectOne,className:this.css.inline});p.set(this.dap_scaleListHeader,"innerHTML",k.substitute(x.setToSelectOne,{setTo:v.outerHTML,selectOne:c.outerHTML}))},_formatScale:function(x){return"1:"+l.format(x)},postCreate:function(){this.inherited(arguments);this.own(y(this.domNode,y.selector("."+this.css.item+"."+this.css.selectable,"click"),f.hitch(this,function(x){x=x.target===
this.dap_mapScaleItem?this.options.scale.map:this._parseScale(x.target.innerHTML);this._emitScaleSelected(x)})));this.dap_scaleInput.on("keyDown",f.hitch(this,function(x){x.keyCode===e.ENTER&&this._handleCustomScaleInput()}));this.createTooltip(this.dap_scaleInput,this.labels.customScaleInputTooltip)},_emitScaleSelected:function(x){this.emit("scale-selected",{scale:x})},_handleCustomScaleInput:function(){var x=this._parseScale(this.dap_scaleInput.get("value"));isNaN(x)||this._emitScaleSelected(this._scaleRanges.clampScale(x))},
_parseScale:function(x){x=t.decode(x).replace(/.*\(/,"").replace(/\).*$/,"").replace(/.*1:/,"").replace(/[^0-9.\s]/g,"");return l.parse(x)},_setOptionsAttr:function(x){var D=x.scale,q=this._formatScale(D.current);p.set(this.dap_currentScaleLabel,"innerHTML",x.label);this.dap_scaleInput.set("value",q,!1);q=k.substitute(this.labels.featuredScaleLabels.current,{scaleLabel:this._formatScale(D.map)});this._rangeToScaleAndNodeLookup.map.scale=D.map;p.set(this.dap_mapScaleItem,"innerHTML",q);m.toggle(this.dap_mapScaleItem,
this.css.hidden,-1===D.map);this._scaleRanges.set("scaleRangeBounds",{minScale:D.min,maxScale:D.max});this._hideOutOfScaleRanges();this._set("options",x)},_hideOutOfScaleRanges:function(){var x=B("."+this.css.item+"."+this.css.selectable,this.dap_recommendedScales),D=this._scaleRanges;g.forEach(H.keys(this._rangeToScaleAndNodeLookup),function(q){q=this._rangeToScaleAndNodeLookup[q];m.toggle(q.node,this.css.hidden,!D.contains(q.scale))},this);x=x.every(function(q){return"none"===u.get(q,"display")});
m.toggle(this.dap_recommendedScaleSection,this.css.hidden,x)}});G("extend-esri")&&f.setObject("dijit.ScaleMenu",F,w);return F})},"esri/dijit/VisibleScaleRangeSlider/ScaleRanges":function(){define(["./scalePreviewUtil","dojo/_base/array","dojo/_base/declare","dojo/Stateful","dojo/i18n!../../nls/jsapi"],function(w,F,L,I,E){L=L(I,{_scaleRangeStops:[{id:"room",minScale:100},{id:"rooms",minScale:400},{id:"smallBuilding",minScale:800},{id:"building",minScale:1999},{id:"buildings",minScale:3999},{id:"street",
minScale:7499},{id:"streets",minScale:14999},{id:"neighborhood",minScale:29999},{id:"town",minScale:59999},{id:"city",minScale:119999},{id:"cities",minScale:249999},{id:"metropolitanArea",minScale:499999},{id:"county",minScale:999999},{id:"counties",minScale:1999999},{id:"state",minScale:3999999},{id:"states",minScale:6999999},{id:"country",minScale:14999999},{id:"countries",minScale:34999999},{id:"continent",minScale:99999999},{id:"world",minScale:147914382}],_allRanges:null,_ranges:null,length:0,
constructor:function(){this._allRanges=this.getScaleRanges()},_scaleRangeBoundsSetter:function(a){this._ranges=a=this.getScaleRanges(a.maxScale,a.minScale);this.length=a.length},getScaleRanges:function(a,b){var d=this._scaleRangeStops,g=d.length;a=0<=a?a:0;b=0<b?b:d[g-1].minScale;var f=a;var m=[];for(var h=0;h<g;h++){var p=Math.min(d[h].minScale,b);var u=Math.min(p,b);a<=p&&f<b&&m.push({id:d[h].id,maxScale:Math.max(f,a),minScale:u});f=u+1}m.reverse();return this._ensureValidBoundaryRanges(m)},_ensureValidBoundaryRanges:function(a){var b=
a[0];b.minScale===b.maxScale&&(a.shift(),a[0].minScale+=1);b=a[a.length-1];b.minScale===b.maxScale&&(a.pop(),--a[a.length-1].maxScale);return a},getScalePreviewSpriteBackgroundPosition:function(a){a=this._toFullRangeIndex(a);return w.getScalePreviewSpriteBackgroundPosition(a)},_toFullRangeIndex:function(a){a=this.findScaleRangeByIndex(Math.floor(a));for(var b=this._allRanges,d=b.length,g=0,f=0;f<d;f++)if(b[f].id===a.id){g=f;break}return g},getScaleRangeLabel:function(a){a=this._ranges[this._clampScaleRangeIndex(a)];
return E.widgets.visibleScaleRangeSlider.scaleRangeLabels[a.id]},findScaleRange:function(a){var b=this._ranges;if(a>=b[0].maxScale)return b[0];if(a<=b[b.length-1].minScale)return b[b.length-1];for(var d=0;d<b.length;d++){var g=b[d];if(a>=g.maxScale&&a<=g.minScale){var f=g;break}}return f},findScaleRangeByIndex:function(a){a=this._clampScaleRangeIndex(a);return this._ranges[a]},clampScale:function(a){return Math.min(this.get("minScale"),Math.max(this.get("maxScale"),a))},_minScaleGetter:function(){return this.get("firstRange").minScale},
_maxScaleGetter:function(){return this.get("lastRange").maxScale},_firstRangeGetter:function(){return this._ranges[0]},_lastRangeGetter:function(){var a=this._ranges;return a[a.length-1]},clampMinScale:function(a){return 0===a?this.get("minScale"):this.clampScale(a)},clampMaxScale:function(a){return this.clampScale(a)},_clampScaleRangeIndex:function(a){if(0>=a)return 0;var b=this._ranges.length-1;return a>b?b:Math.floor(a)},scaleToRangeIndex:function(a){return F.indexOf(this._ranges,this.findScaleRange(a))},
contains:function(a){for(var b=this._ranges,d=!1,g,f=0;f<b.length;f++)if(g=b[f],a>=g.maxScale&&a<=g.minScale){d=!0;break}return d}});L.getScalePreviewSource=function(a){return w.getScalePreviewSource(a)};return L})},"esri/dijit/VisibleScaleRangeSlider/scalePreviewUtil":function(){define(["dojo/_base/array","require"],function(w,F){var L={_supportedRegions:"ar-iq ar-kw bg-bg cs-cz da-dk da-gl da-gl de-at de-ch de-de de-li el-gr en-ae en-au en-ca en-ca en-eg en-gb en-hk en-id en-ie en-ie en-il en-in en-iq en-ke en-lu en-mo en-my en-nz en-rw en-sg en-us en-us en-vi en-vi en-wo en-za es-ar es-ar es-bo es-bo es-cl es-cl es-co es-co es-cr es-cr es-es es-gt es-gt es-mx es-mx es-ni es-ni es-pe es-pe es-pr es-pr es-sv es-sv es-ve et-ee fi-fi fi-fi fr-ci fr-fr fr-ma fr-mg fr-ml fr-tn is-is is-is it-it ja-jp ja-jp ko-kr lt-lt lv-lv nl-be nl-nl nl-sr nl-sr nn-no nn-no pl-pl pt-br pt-br pt-pt ro-ro ru-ru sk-sk sv-se sv-se th-th zh-cn zh-tw".split(" "),
_defaultRegion:"en-us",_getSupportedRegion:function(I){I=I?I.toLowerCase():"";return-1<w.indexOf(L._supportedRegions,I)?I:L._defaultRegion},getScalePreviewSource:function(I){I="./images/scalePreview/"+L._getSupportedRegion(I)+".jpg";return"url("+F.toUrl(I)+")"},getScalePreviewSpriteBackgroundPosition:function(I){return"-"+I%5*128+"px -"+128*Math.floor(I/5)+"px"}};return L})},"dojox/lang/functional/object":function(){define(["dojo/_base/kernel","dojo/_base/lang","./lambda"],function(w,F,L){var I={};
F.mixin(L,{keys:function(E){var a=[],b;for(b in E)b in I||a.push(b);return a},values:function(E){var a=[],b;for(b in E)b in I||a.push(E[b]);return a},filterIn:function(E,a,b){b=b||w.global;a=L.lambda(a);var d={},g;for(g in E)if(!(g in I)){var f=E[g];a.call(b,f,g,E)&&(d[g]=f)}return d},forIn:function(E,a,b){b=b||w.global;a=L.lambda(a);for(var d in E)d in I||a.call(b,E[d],d,E);return b},mapIn:function(E,a,b){b=b||w.global;a=L.lambda(a);var d={},g;for(g in E)g in I||(d[g]=a.call(b,E[g],g,E));return d}});
return L})},"dojox/lang/functional/lambda":function(){define(["../..","dojo/_base/lang","dojo/_base/array"],function(w,F,L){var I=F.getObject("lang.functional",!0,w),E={},a=1<"ab".split(/a*/).length?String.prototype.split:function(g){var f=this.split.call(this,g);(g=g.exec(this))&&0==g.index&&f.unshift("");return f},b=function(g){var f=[],m=a.call(g,/\s*->\s*/m);if(1<m.length)for(;m.length;)g=m.pop(),f=m.pop().split(/\s*,\s*|\s+/m),m.length&&m.push("(function("+f.join(", ")+"){ return ("+g+"); })");
else if(g.match(/\b_\b/))f=["_"];else{m=g.match(/^\s*(?:[+*\/%&|\^\.=<>]|!=)/m);var h=g.match(/[+\-*\/%&|\^\.=<>!]\s*$/m);if(m||h)m&&(f.push("$1"),g="$1"+g),h&&(f.push("$2"),g+="$2");else{m=g.replace(/(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|this|true|false|null|undefined|typeof|instanceof|in|delete|new|void|arguments|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|isFinite|isNaN|parseFloat|parseInt|unescape|dojo|dijit|dojox|window|document|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g,
"").match(/([a-z_$][a-z_$\d]*)/gi)||[];var p={};L.forEach(m,function(u){p.hasOwnProperty(u)||(f.push(u),p[u]=1)})}}return{args:f,body:g}},d=function(g){return g.length?function(){var f=g.length-1,m=I.lambda(g[f]).apply(this,arguments);for(--f;0<=f;--f)m=I.lambda(g[f]).call(this,m);return m}:function(f){return f}};F.mixin(I,{rawLambda:function(g){return b(g)},buildLambda:function(g){g=b(g);return"function("+g.args.join(",")+"){return ("+g.body+");}"},lambda:function(g){if("function"==typeof g)return g;
if(g instanceof Array)return d(g);if(E.hasOwnProperty(g))return E[g];var f=b(g);return E[g]=new Function(f.args,"return ("+f.body+");")},clearLambdaCache:function(){E={}}});return I})},"esri/dijit/VisibleScaleRangeSlider/ScalePreview":function(){define("../../kernel dijit/_TemplatedMixin dijit/_WidgetBase dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/has dojo/i18n!../../nls/jsapi dojo/text!./templates/ScalePreview.html".split(" "),function(w,F,L,I,E,a,b,d,g){F=I([L,F],{declaredClass:"esri.dijit.VisibleScaleRangeSlider.ScalePreview",
baseClass:"esriScalePreview",templateString:g,labels:d.widgets.visibleScaleRangeSlider,css:{header:"esriHeader",thumbnail:"esriThumbnail"},source:null,_setSourceAttr:function(f){this.source!==f&&(this._set("source",f),a.set(this.dap_scalePreviewThumbnail,"backgroundImage",f))},backgroundPosition:null,_setBackgroundPositionAttr:function(f){this.backgroundPosition!==f&&(this._set("backgroundPosition",f),a.set(this.dap_scalePreviewThumbnail,"backgroundPosition",f))}});b("extend-esri")&&E.setObject("dijit.ScalePreview",
F,w);return F})},"dojox/form/HorizontalRangeSlider":function(){define(["dojo/_base/declare","dojox/form/_RangeSliderMixin","dojo/text!./resources/HorizontalRangeSlider.html","dijit/form/HorizontalSlider"],function(w,F,L,I){return w("dojox.form.HorizontalRangeSlider",[I,F],{templateString:L})})},"dojox/form/_RangeSliderMixin":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/fx dojo/_base/event dojo/_base/sniff dojo/dom-style dojo/dom-geometry dojo/keys dijit dojo/dnd/Mover dojo/dnd/Moveable dijit/form/_FormValueWidget dijit/focus dojo/fx dojox/fx".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G){var e=function(B,k){return B-k};f=w("dojox.form._RangeSliderMixin",null,{_setTabIndexAttr:["sliderHandle","sliderHandleMax"],value:[0,100],postMixInProperties:function(){this.inherited(arguments);this.value=L.map(this.value,function(B){return parseInt(B,10)})},postCreate:function(){this.inherited(arguments);this.value.sort(e);var B=this,k=w(l,{constructor:function(){this.widget=B}});this._movableMax=new h(this.sliderHandleMax,{mover:k});this.sliderHandle.setAttribute("aria-valuemin",
this.minimum);this.sliderHandle.setAttribute("aria-valuemax",this.maximum);this.sliderHandleMax.setAttribute("aria-valuemin",this.minimum);this.sliderHandleMax.setAttribute("aria-valuemax",this.maximum);k=w(y,{constructor:function(){this.widget=B}});this._movableBar=new h(this.progressBar,{mover:k});this.focusNode.removeAttribute("aria-valuemin");this.focusNode.removeAttribute("aria-valuemax");this.focusNode.removeAttribute("aria-valuenow")},destroy:function(){this.inherited(arguments);this._movableMax.destroy();
this._movableBar.destroy()},_onKeyPress:function(B){if(!(this.disabled||this.readOnly||B.altKey||B.ctrlKey)){var k=B.target===this.sliderHandleMax,t=B.target===this.progressBar,H=F.delegate(g,this.isLeftToRight()?{PREV_ARROW:g.LEFT_ARROW,NEXT_ARROW:g.RIGHT_ARROW}:{PREV_ARROW:g.RIGHT_ARROW,NEXT_ARROW:g.LEFT_ARROW}),r=0,N=!1;switch(B.keyCode){case H.HOME:this._setValueAttr(this.minimum,!0,k);E.stop(B);return;case H.END:this._setValueAttr(this.maximum,!0,k);E.stop(B);return;case H.PREV_ARROW:case H.DOWN_ARROW:N=
!0;case H.NEXT_ARROW:case H.UP_ARROW:r=1;break;case H.PAGE_DOWN:N=!0;case H.PAGE_UP:r=this.pageIncrement;break;default:this.inherited(arguments);return}N&&(r=-r);r&&(t?this._bumpValue([{change:r,useMaxValue:!1},{change:r,useMaxValue:!0}]):this._bumpValue(r,k),E.stop(B))}},_onHandleClickMax:function(B){this.disabled||this.readOnly||(a("ie")||u.focus(this.sliderHandleMax),E.stop(B))},_onClkIncBumper:function(){this._setValueAttr(!1===this._descending?this.minimum:this.maximum,!0,!0)},_bumpValue:function(B,
k){B=F.isArray(B)?[this._getBumpValue(B[0].change,B[0].useMaxValue),this._getBumpValue(B[1].change,B[1].useMaxValue)]:this._getBumpValue(B,k);this._setValueAttr(B,!0,k)},_getBumpValue:function(B,k){var t=k?1:0;k=b.getComputedStyle(this.sliderBarContainer);var H=d.getContentBox(this.sliderBarContainer,k);k=this.discreteValues;t=this.value[t];if(1>=k||Infinity==k)k=H[this._pixelCount];k--;B=this.maximum>this.minimum?(t-this.minimum)*k/(this.maximum-this.minimum)+B:0;0>B&&(B=0);B>k&&(B=k);return B*(this.maximum-
this.minimum)/k+this.minimum},_onBarClick:function(B){this.disabled||this.readOnly||(a("ie")||u.focus(this.progressBar),E.stop(B))},_onRemainingBarClick:function(B){if(!this.disabled&&!this.readOnly){a("ie")||u.focus(this.progressBar);var k=d.position(this.sliderBarContainer,!0),t=d.position(this.progressBar,!0),H=B[this._mousePixelCoord],r=t[this._startingPixelCoord];t=r+t[this._pixelCount];r=this._isReversed()?H<=r:H>=t;H=this._isReversed()?k[this._pixelCount]-H+k[this._startingPixelCoord]:H-k[this._startingPixelCoord];
this._setPixelValue(H,k[this._pixelCount],!0,r);E.stop(B)}},_setPixelValue:function(B,k,t,H){this.disabled||this.readOnly||(B=this._getValueByPixelValue(B,k),this._setValueAttr(B,t,H))},_getValueByPixelValue:function(B,k){var t=this.discreteValues;if(1>=t||Infinity==t)t=k;t--;return(this.maximum-this.minimum)*Math.round((0>B?0:k<B?k:B)/(k/t))/t+this.minimum},_setValueAttr:function(B,k,t){var H=F.clone(this.value);F.isArray(B)?H=B:H[t?1:0]=B;this._lastValueReported="";this.valueNode.value=B=H;H.sort(e);
this.sliderHandle.setAttribute("aria-valuenow",H[0]);this.sliderHandleMax.setAttribute("aria-valuenow",H[1]);p.prototype._setValueAttr.apply(this,arguments);this._printSliderBar(k,t)},_printSliderBar:function(B,k){k=this.maximum>this.minimum?(this.value[0]-this.minimum)/(this.maximum-this.minimum):0;var t=this.maximum>this.minimum?(this.value[1]-this.minimum)/(this.maximum-this.minimum):0,H=k;k>t&&(k=t,t=H);var r=this._isReversed()?100*(1-k):100*k,N=this._isReversed()?100*(1-t):100*t,x=this._isReversed()?
100*(1-t):100*k;if(B&&0<this.slideDuration&&this.progressBar.style[this._progressPixelSize]){if(parseFloat(this.progressBar.style[this._handleOffsetCoord]),B=this.slideDuration/10,0!==B){0>B&&(B=0-B);var D={},q={};H={};D[this._handleOffsetCoord]={start:this.sliderHandle.parentNode.style[this._handleOffsetCoord],end:r,units:"%"};q[this._handleOffsetCoord]={start:this.sliderHandleMax.parentNode.style[this._handleOffsetCoord],end:N,units:"%"};H[this._handleOffsetCoord]={start:this.progressBar.style[this._handleOffsetCoord],
end:x,units:"%"};H[this._progressPixelSize]={start:this.progressBar.style[this._progressPixelSize],end:100*(t-k),units:"%"};k=I.animateProperty({node:this.sliderHandle.parentNode,duration:B,properties:D});t=I.animateProperty({node:this.sliderHandleMax.parentNode,duration:B,properties:q});B=I.animateProperty({node:this.progressBar,duration:B,properties:H});G.combine([k,t,B]).play()}}else this.sliderHandle.parentNode.style[this._handleOffsetCoord]=r+"%",this.sliderHandleMax.parentNode.style[this._handleOffsetCoord]=
N+"%",this.progressBar.style[this._handleOffsetCoord]=x+"%",this.progressBar.style[this._progressPixelSize]=100*(t-k)+"%"}});var l=w("dijit.form._SliderMoverMax",m,{onMouseMove:function(B){var k=this.widget,t=k._abspos;t||(t=k._abspos=d.position(k.sliderBarContainer,!0),k._setPixelValue_=F.hitch(k,"_setPixelValue"),k._isReversed_=k._isReversed());B=B[k._mousePixelCoord]-t[k._startingPixelCoord];k._setPixelValue_(k._isReversed_?t[k._pixelCount]-B:B,t[k._pixelCount],!1,!0)},destroy:function(B){m.prototype.destroy.apply(this,
arguments);var k=this.widget;k._abspos=null;k._setValueAttr(k.value,!0)}}),y=w("dijit.form._SliderBarMover",m,{onMouseMove:function(B){var k=this.widget;if(!k.disabled&&!k.readOnly){var t=k._abspos,H=k._bar,r=k._mouseOffset;t||(t=k._abspos=d.position(k.sliderBarContainer,!0),k._setPixelValue_=F.hitch(k,"_setPixelValue"),k._getValueByPixelValue_=F.hitch(k,"_getValueByPixelValue"),k._isReversed_=k._isReversed());H||(H=k._bar=d.position(k.progressBar,!0));r||(r=k._mouseOffset=B[k._mousePixelCoord]-H[k._startingPixelCoord]);
B=B[k._mousePixelCoord]-t[k._startingPixelCoord]-r;pixelValues=[B,B+H[k._pixelCount]];pixelValues.sort(e);0>=pixelValues[0]&&(pixelValues[0]=0,pixelValues[1]=H[k._pixelCount]);pixelValues[1]>=t[k._pixelCount]&&(pixelValues[1]=t[k._pixelCount],pixelValues[0]=t[k._pixelCount]-H[k._pixelCount]);t=[k._getValueByPixelValue(k._isReversed_?t[k._pixelCount]-pixelValues[0]:pixelValues[0],t[k._pixelCount]),k._getValueByPixelValue(k._isReversed_?t[k._pixelCount]-pixelValues[1]:pixelValues[1],t[k._pixelCount])];
k._setValueAttr(t,!1,!1)}},destroy:function(){m.prototype.destroy.apply(this,arguments);var B=this.widget;B._abspos=null;B._bar=null;B._mouseOffset=null;B._setValueAttr(B.value,!0)}});return f})},"dojox/fx":function(){define(["./fx/_base"],function(w){return w})},"dojox/fx/_base":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/fx dojo/fx dojo/dom dojo/dom-style dojo/dom-geometry dojo/_base/connect dojo/_base/html".split(" "),function(w,F,L,I,E,a,b,d,g){w=F.getObject("dojox.fx",!0);
F.mixin(w,{anim:L.anim,animateProperty:L.animateProperty,fadeTo:L._fade,fadeIn:L.fadeIn,fadeOut:L.fadeOut,combine:I.combine,chain:I.chain,slideTo:I.slideTo,wipeIn:I.wipeIn,wipeOut:I.wipeOut});w.sizeTo=function(f){var m=f.node=E.byId(f.node),h=f.method||"chain";f.duration||(f.duration=500);"chain"==h&&(f.duration=Math.floor(f.duration/2));var p,u,G,e,l,y=null,B=function(k){return function(){var t=a.getComputedStyle(k),H=t.position,r=t.width,N=t.height;p="absolute"==H?k.offsetTop:parseInt(t.top)||0;
G="absolute"==H?k.offsetLeft:parseInt(t.left)||0;l="auto"==r?0:parseInt(r);y="auto"==N?0:parseInt(N);e=G-Math.floor((f.width-l)/2);u=p-Math.floor((f.height-y)/2);"absolute"!=H&&"relative"!=H&&(t=a.coords(k,!0),p=t.y,G=t.x,k.style.position="absolute",k.style.top=p+"px",k.style.left=G+"px")}}(m);m=L.animateProperty(F.mixin({properties:{height:function(){B();return{end:f.height||0,start:y}},top:function(){return{start:p,end:u}}}},f));h=L.animateProperty(F.mixin({properties:{width:function(){return{start:l,
end:f.width||0}},left:function(){return{start:G,end:e}}}},f));return I["combine"==f.method?"combine":"chain"]([m,h])};w.slideBy=function(f){var m,h,p=function(u){return function(){var G=a.getComputedStyle(u),e=G.position;m="absolute"==e?u.offsetTop:parseInt(G.top)||0;h="absolute"==e?u.offsetLeft:parseInt(G.left)||0;"absolute"!=e&&"relative"!=e&&(G=b.coords(u,!0),m=G.y,h=G.x,u.style.position="absolute",u.style.top=m+"px",u.style.left=h+"px")}}(f.node=E.byId(f.node));p();f=L.animateProperty(F.mixin({properties:{top:m+
(f.top||0),left:h+(f.left||0)}},f));d.connect(f,"beforeBegin",f,p);return f};w.crossFade=function(f){var m=f.nodes[0]=E.byId(f.nodes[0]),h=g.style(m,"opacity"),p=f.nodes[1]=E.byId(f.nodes[1]);g.style(p,"opacity");return I.combine([L[0==h?"fadeIn":"fadeOut"](F.mixin({node:m},f)),L[0==h?"fadeOut":"fadeIn"](F.mixin({node:p},f))])};w.highlight=function(f){var m=f.node=E.byId(f.node);f.duration=f.duration||400;var h=f.color||"#ffff99",p=g.style(m,"backgroundColor");"rgba(0, 0, 0, 0)"==p&&(p="transparent");
f=L.animateProperty(F.mixin({properties:{backgroundColor:{start:h,end:p}}},f));"transparent"==p&&d.connect(f,"onEnd",f,function(){m.style.backgroundColor=p});return f};w.wipeTo=function(f){f.node=E.byId(f.node);var m=f.node,h=m.style,p=f.width?"width":"height",u={};u[p]={start:function(){h.overflow="hidden";if("hidden"==h.visibility||"none"==h.display)return h[p]="1px",h.display="",h.visibility="",1;var G=g.style(m,p);return Math.max(G,1)},end:f[p]};return L.animateProperty(F.mixin({properties:u},
f))};return w})},"widgets/NetworkTrace/setting/SymbolChooserPopup":function(){define("dojo/_base/declare jimu/BaseWidgetSetting dijit/_WidgetsInTemplateMixin dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/on dojo/text!./SymbolChooserPopup.html jimu/dijit/SymbolChooser jimu/dijit/Popup dojo/domReady!".split(" "),function(w,F,L,I,E,a,b,d,g,f){return w([F,L],{templateString:d,baseClass:"jimu-widget-NetworkTrace-setting",postCreate:function(){this.own(b(this.okButton,"click",I.hitch(this,this._onOKButtonClicked)));
this._initSymbolChooser();this._createSymbolChooserPopup()},_initSymbolChooser:function(){this.symbolChooser=new g(this.symbolParams,a.create("div",{},this.symbolData));this.symbolChooser.startup()},_createSymbolChooserPopup:function(){this.popup=new f({titleLabel:this.symbolChooserTitle,width:420,height:400,content:this.domNode})},_onOKButtonClicked:function(){if(!E.contains(this.okButton,"jimu-state-disabled"))this.onOkClick()},onOkClick:function(m){return m}})})},"dijit/_editor/plugins/TextColor":function(){define("require dojo/colors dojo/_base/declare dojo/_base/lang ../_Plugin ../../form/DropDownButton".split(" "),
function(w,F,L,I,E,a){var b=L("dijit._editor.plugins.TextColor",E,{buttonClass:a,colorPicker:"dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command=this.name;this.inherited(arguments);var d=this;this.button.loadDropDown=function(g){function f(m){d.button.dropDown=new m({dir:d.editor.dir,ownerDocument:d.editor.ownerDocument,value:d.value,onChange:function(h){d.editor.execCommand(d.command,h)},onExecute:function(){d.editor.execCommand(d.command,this.get("value"))}});g()}"string"==
typeof d.colorPicker?w([d.colorPicker],f):f(d.colorPicker)}},updateState:function(){var d=this.editor,g=this.command;if(d&&d.isLoaded&&g.length){if(this.button){var f=this.get("disabled");this.button.set("disabled",f);if(f)return;try{var m=d.queryCommandValue(g)||""}catch(h){m=""}}""==m&&(m="#000000");"transparent"==m&&(m="#ffffff");"string"==typeof m?-1<m.indexOf("rgb")&&(m=F.fromRgb(m).toHex()):(m=((m&255)<<16|m&65280|(m&16711680)>>>16).toString(16),m="#000000".slice(0,7-m.length)+m);this.value=
m;(d=this.button.dropDown)&&d.get&&m!==d.get("value")&&d.set("value",m,!1)}}});E.registry.foreColor=function(d){return new b(d)};E.registry.hiliteColor=function(d){return new b(d)};return b})},"widgets/NetworkTrace/setting/inputOutputSettings":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/query dojo/dom-construct dojo/dom-style dojo/on ./SymbolChooserPopup jimu/symbolUtils esri/symbols/jsonUtils dojo/_base/html jimu/dijit/SimpleTable dojo/text!./inputOutputSettings.html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Editor dijit/form/Select dijit/_editor/plugins/LinkDialog dijit/_editor/plugins/ViewSource dijit/_editor/plugins/FontChoice dojox/editor/plugins/Preview dijit/_editor/plugins/TextColor dojox/editor/plugins/ToolbarLineBreak dojox/editor/plugins/FindReplace dojox/editor/plugins/PasteFromWord dojox/editor/plugins/InsertAnchor dojox/editor/plugins/Blockquote dojox/editor/plugins/UploadImage jimu/dijit/EditorChooseImage jimu/dijit/EditorTextColor jimu/dijit/EditorBackgroundColor".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y){return w([u,G,e],{templateString:p,baseClass:"jimu-widget-NetworkTrace-setting",_loadedPluginCSS:!1,hasSkipLocationsInput:!1,_editorObj:null,startup:function(){this.inherited(arguments);this.hasSkipLocationsInput=this._loadedPluginCSS=!1;this._editorObj=null},postCreate:function(){this.hasSkipLocationsInput=this._loadedPluginCSS=!1;this._createInputTable();this._initInputEditor();this._setInputSummaryText()},_createInputTable:function(){this._inputTable=
new h({fields:[{name:"displayName",title:this.nls.common.name,type:"text",width:"15%"},{name:"type",title:this.nls.inputOutputTab.typeText,type:"empty",width:"25%"},{name:"toolTip",title:this.nls.inputOutputTab.inputTooltip,editable:!0,type:"text",width:"40%"},{name:"symbol",title:this.nls.inputOutputTab.symbol,type:"empty",width:"10%"}],selectable:!1});this._inputTable.placeAt(this.inputTableNode);this._inputTable.startup();this.setInputSettings()},getInputSettings:function(){var B;var k=[];L.forEach(this._inputTable.getRows(),
F.hitch(this,function(t){var H={};t&&(H=this._inputTable.getRowData(t),B=this._getInputType(t.inputTypeDropdownObj),H={paramName:t.config.paramName,displayName:t.config.displayName,toolTip:H.toolTip,type:B,symbol:t.symbol},k.push(H))}));return k},setInputSettings:function(){this._inputTable.clear();this.inputConfig&&0<this.inputConfig.length&&L.forEach(this.inputConfig,F.hitch(this,function(B){var k;var t=this._inputTable.addRow(B);t.tr.config=B;B.type&&this.inputDataTypes.skip_locations===B.type&&
(this.hasSkipLocationsInput=!0);if(k=I(".simple-table-cell",t.tr))this._addInputTypesDropDown(k[1],t.tr,B),this._addSymbolPicker(k[3],t.tr,B)}))},_getFallbackSymbol:function(B){B||(B="esriGeometryPoint");switch(B){case "esriGeometryPoint":var k={color:[0,0,128,128],outline:{color:[0,0,128,255],width:.75,type:"esriSLS",style:"esriSLSSolid"},size:18,type:"esriSMS",style:"esriSMSCircle"};break;case "esriGeometryPolygon":k={color:[155,187,89,129],outline:{color:[115,140,61,255],width:1.5,type:"esriSLS",
style:"esriSLSSolid"},type:"esriSFS",style:"esriSFSSolid"};break;case "esriGeometryPolyline":k={color:[155,187,89,255],type:"esriSLS",style:"esriSLSSolid",width:2.25}}return k},_addSymbolPicker:function(B,k,t){var H={},r="";var N=t&&t.data&&t.data.defaultValue&&t.data.defaultValue.geometryType?t.data.defaultValue.geometryType:"esriGeometryPoint";t.displayName&&(r=t.displayName);H.symbol=k.symbol?f.fromJson(k.symbol):t&&t.symbol?f.fromJson(t.symbol):f.fromJson(this._getFallbackSymbol(N));var x={symbolChooserTitle:r,
symbolParams:H,nls:this.nls,symbolType:"graphicLocationSymbol"},D=E.create("div",{style:"height: 27px; overflow: hidden;"},B);this._showSelectedSymbol(D,H.symbol,k,N);this.own(b(D,"click",F.hitch(this,function(){x.symbolParams.symbol=f.fromJson(k.symbol);this._initSymbolChooserPopup(x,D,k,N)})))},_initSymbolChooserPopup:function(B,k,t,H){var r=new d(B);r.onOkClick=F.hitch(this,function(){var N=r.symbolChooser.getSymbol();this._showSelectedSymbol(k,N,t,H);r.popup.close()})},_showSelectedSymbol:function(B,
k,t,H){E.empty(B);if(k){if(26<k.height){var r=F.clone(k.height);k.height=26}if(26<k.width){var N=F.clone(k.width);k.width=26}if(20<k.size){var x=F.clone(k.size);k.size=20}var D=g.createSymbolNode(k);D||(D=E.create("div"));E.place(D,B);r&&(k.height=r);N&&(k.width=N);x&&(k.size=x);switch(H){case "esriGeometryPoint":a.set(B,"margin","0 24px");break;case "esriGeometryPolyline":a.set(D,"width","27px"),a.set(D,"overflow","hidden"),a.set(D,"margin","0 24px")}t.symbol=k.toJson()}},_addInputTypesDropDown:function(B,
k,t){B=E.create("div",{"class":"esriCTDropDownContainer"},B);var H=new y({options:[{label:this.nls.inputOutputTab.flag,value:this.inputDataTypes.flags},{label:this.nls.inputOutputTab.barrier,value:this.inputDataTypes.barriers},{label:this.nls.inputOutputTab.skip,value:this.inputDataTypes.skip_locations}],"class":"esriCTLayerFieldSelector"});H.placeAt(B);H.startup();t.paramName.toLowerCase()===Object.keys(this.inputDataTypes)[0].toLowerCase()&&H.set("value",this.inputDataTypes.flags);t.paramName.toLowerCase()===
Object.keys(this.inputDataTypes)[1].toLowerCase()&&H.set("value",this.inputDataTypes.barriers);t.paramName.toLowerCase()===Object.keys(this.inputDataTypes)[2].toLowerCase()&&H.set("value",this.inputDataTypes.skip_locations);k.inputTypeDropdownObj=H;k.config&&k.config.type&&H.set("value",k.config.type)},_getInputType:function(B){var k;""!==B&&null!==B&&void 0!==B&&(k=B.get("value"));return k},_initInputEditor:function(){this._editorObj||(this._editorObj=new l({plugins:["bold","italic","underline",
"|","foreColor"]},this.inputEditorContainer),m.setStyle(this._editorObj.domNode,{width:"100%",height:"100%"}),this.own(b(this._editorObj,"blur",F.hitch(this,function(){var B=this._editorObj.focusNode.innerHTML;B=B.replace(/&nbsp;/g,"");var k=/<div><br><\/div>/g;B=B.replace(k,"");k=/<p><br><\/p>/g;B=B.replace(k,"");k=/<p><\/p>/g;B=B.replace(k,"");B=B.replace(/<br>/g,"");B=F.trim(B);null!==B&&""!==B||this._editorObj.set("value","")}))),this._editorObj.onLoadDeferred.then(F.hitch(this,function(){this._editorObj&&
this._editorObj.hasOwnProperty("editNode")&&"title"in this._editorObj.editNode&&(null===this._editorObj.editNode.title||""===this._editorObj.editNode.title)&&(this._editorObj.editNode.title=this.nls.inputOutputTab.summaryEditorText)})),this._editorObj.startup())},getInputSummaryText:function(){if(""!==this._editorObj&&null!==this._editorObj&&void 0!==this._editorObj)return this._editorObj.value},_setInputSummaryText:function(){this.config.hasOwnProperty("inputSummaryText")&&""!==this._editorObj&&
null!==this._editorObj&&void 0!==this._editorObj&&this._editorObj.set("value",this.config.inputSummaryText)}})})},"dijit/_editor/plugins/LinkDialog":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/query dojo/string ../_Plugin ../../form/DropDownButton ../range".split(" "),function(w,F,L,I,E,a,b,d,g,f,m,h,p){var u=L("dijit._editor.plugins.LinkDialog",m,{allowUnsafeHtml:!1,linkFilter:[[/</g,"\x26lt;"]],buttonClass:h,useDefaultCommand:!1,
urlRegExp:"((https?|ftps?|file)\\://|./|../|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]{0,}(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",
emailRegExp:"\x3c?(mailto\\:)([!#-'*+\\-\\/-9\x3d?A-Z^-~]+[.])*[!#-'*+\\-\\/-9\x3d?A-Z^-~]+@((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*\x3e?",htmlTemplate:'\x3ca href\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" target\x3d"${targetSelect}"\x3e${textInput}\x3c/a\x3e',tag:"a",_hostRxp:/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,_userAtRxp:/^([!#-'*+\-\/-9=?A-Z^-~]+[.])*[!#-'*+\-\/-9=?A-Z^-~]+@/i,
linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_targetSelect'\x3e${target}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect id\x3d'${id}_targetSelect' name\x3d'targetSelect' data-dojo-type\x3d'dijit.form.Select'\x3e\x3coption selected\x3d'selected' value\x3d'_self'\x3e${currentWindow}\x3c/option\x3e\x3coption value\x3d'_blank'\x3e${newWindow}\x3c/option\x3e\x3coption value\x3d'_top'\x3e${topWindow}\x3c/option\x3e\x3coption value\x3d'_parent'\x3e${parentWindow}\x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){this.inherited(arguments);this.button.loadDropDown=a.hitch(this,"_loadDropDown");this._connectTagEvents()},_loadDropDown:function(e){w("dojo/i18n ../../TooltipDialog ../../registry ../../form/Button ../../form/Select ../../form/ValidationTextBox dojo/i18n!../../nls/common dojo/i18n!../nls/LinkDialog".split(" "),a.hitch(this,function(l,y,B){var k=this;this.tag="insertImage"==this.command?"img":"a";l=a.delegate(l.getLocalization("dijit","common",this.lang),l.getLocalization("dijit._editor",
"LinkDialog",this.lang));var t=this.dropDown=this.button.dropDown=new y({title:l[this.command+"Title"],ownerDocument:this.editor.ownerDocument,dir:this.editor.dir,execute:a.hitch(this,"setValue"),onOpen:function(){k._onOpenDialog();y.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(a.hitch(k,"_onCloseDialog"),0)}});l.urlRegExp=this.urlRegExp;l.id=B.getUniqueId(this.editor.id);this._uniqueId=l.id;this._setContent(t.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+
f.substitute(this.linkDialogTemplate,l));t.startup();this._urlInput=B.byId(this._uniqueId+"_urlInput");this._textInput=B.byId(this._uniqueId+"_textInput");this._setButton=B.byId(this._uniqueId+"_setButton");this.own(B.byId(this._uniqueId+"_cancelButton").on("click",a.hitch(this.dropDown,"onCancel")));this._urlInput&&this.own(this._urlInput.on("change",a.hitch(this,"_checkAndFixInput")));this._textInput&&this.own(this._textInput.on("change",a.hitch(this,"_checkAndFixInput")));this._urlRegExp=new RegExp("^"+
this.urlRegExp+"$","i");this._emailRegExp=new RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=a.hitch(this,function(){var H=this._urlInput.get("value");return this._urlRegExp.test(H)||this._emailRegExp.test(H)});this.own(b(t.domNode,"keydown",a.hitch(this,a.hitch(this,function(H){!H||H.keyCode!=E.ENTER||H.shiftKey||H.metaKey||H.ctrlKey||H.altKey||this._setButton.get("disabled")||(t.onExecute(),t.execute(t.get("value")))}))));e()}))},_checkAndFixInput:function(){var e=this,l=this._urlInput.get("value");
this._delayedCheck&&(clearTimeout(this._delayedCheck),this._delayedCheck=null);this._delayedCheck=setTimeout(function(){var y=l,B=!1,k=!1;y&&1<y.length&&(y=a.trim(y),0!==y.indexOf("mailto:")&&(0<y.indexOf("/")?-1===y.indexOf("://")&&"/"!==y.charAt(0)&&y.indexOf("./")&&0!==y.indexOf("../")&&e._hostRxp.test(y)&&(B=!0):e._userAtRxp.test(y)&&(k=!0)));B&&e._urlInput.set("value","http://"+y);k&&e._urlInput.set("value","mailto:"+y);e._setButton.set("disabled",!e._isValid())},250)},_connectTagEvents:function(){this.editor.onLoadDeferred.then(a.hitch(this,
function(){this.own(b(this.editor.editNode,"mouseup",a.hitch(this,"_onMouseUp")));this.own(b(this.editor.editNode,"dblclick",a.hitch(this,"_onDblClick")))}))},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid()},_setContent:function(e){this.dropDown.set({parserScope:"dojo",content:e})},_checkValues:function(e){e&&e.urlInput&&(e.urlInput=e.urlInput.replace(/"/g,"\x26quot;"));!this.allowUnsafeHtml&&e&&e.textInput&&("function"===typeof this.linkFilter?e.textInput=this.linkFilter(e.textInput):
F.forEach(this.linkFilter,function(l){e.textInput=e.textInput.replace(l[0],l[1])}));return e},_createlinkEnabledImpl:function(){return!0},setValue:function(e){this._onCloseDialog();if(9>d("ie")){var l=p.getSelection(this.editor.window).getRangeAt(0).endContainer;3===l.nodeType&&(l=l.parentNode);l&&l.nodeName&&l.nodeName.toLowerCase()!==this.tag&&(l=this.editor.selection.getSelectedElement(this.tag));l&&l.nodeName&&l.nodeName.toLowerCase()===this.tag&&this.editor.queryCommandEnabled("unlink")&&(this.editor.selection.selectElementChildren(l),
this.editor.execCommand("unlink"))}e=this._checkValues(e);this.editor.execCommand("inserthtml",f.substitute(this.htmlTemplate,e));g("a",this.editor.document).forEach(function(y){y.innerHTML||I.has(y,"name")||y.parentNode.removeChild(y)},this)},_onCloseDialog:function(){this.editor.focused&&this.editor.focus()},_getCurrentValues:function(e){if(e&&e.tagName.toLowerCase()===this.tag){var l=e.getAttribute("_djrealurl")||e.getAttribute("href");var y=e.getAttribute("target")||"_self";var B=e.textContent||
e.innerText;this.editor.selection.selectElement(e,!0)}else B=this.editor.selection.getSelectedText();return{urlInput:l||"",textInput:B||"",targetSelect:y||""}},_onOpenDialog:function(){if(d("ie")){var e=p.getSelection(this.editor.window);if(e.rangeCount){var l=e.getRangeAt(0);var y=l.endContainer;3===y.nodeType&&(y=y.parentNode);y&&y.nodeName&&y.nodeName.toLowerCase()!==this.tag&&(y=this.editor.selection.getSelectedElement(this.tag));if(!y||y.nodeName&&y.nodeName.toLowerCase()!==this.tag)(e=this.editor.selection.getAncestorElement(this.tag))&&
e.nodeName&&e.nodeName.toLowerCase()==this.tag?(y=e,this.editor.selection.selectElement(y)):l.startContainer===l.endContainer&&(e=l.startContainer.firstChild)&&e.nodeName&&e.nodeName.toLowerCase()==this.tag&&(y=e,this.editor.selection.selectElement(y))}}else y=this.editor.selection.getAncestorElement(this.tag);this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(y))},_onDblClick:function(e){if(e&&e.target&&(e=e.target,(e.tagName?e.tagName.toLowerCase():
"")===this.tag&&I.get(e,"href"))){var l=this.editor;this.editor.selection.selectElement(e);l.onDisplayChanged();l._updateTimer&&(l._updateTimer.remove(),delete l._updateTimer);l.onNormalizedDisplayChanged();var y=this.button;setTimeout(function(){y.set("disabled",!1);y.loadAndOpenDropDown().then(function(){y.dropDown.focus&&y.dropDown.focus()})},10)}},_onMouseUp:function(){if(d("ff")){var e=this.editor.selection.getAncestorElement(this.tag);if(e){var l=p.getSelection(this.editor.window).getRangeAt(0);
if(l.collapsed&&e.childNodes.length){var y=l.cloneRange();y.selectNodeContents(e.childNodes[e.childNodes.length-1]);y.setStart(e.childNodes[0],0);1!==l.compareBoundaryPoints(y.START_TO_START,y)?l.setStartBefore(e):-1!==l.compareBoundaryPoints(y.END_TO_START,y)&&l.setStartAfter(e)}}}}}),G=L("dijit._editor.plugins.ImgLinkDialog",[u],{linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' regExp\x3d'${urlRegExp}' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
htmlTemplate:'\x3cimg src\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" alt\x3d"${textInput}" /\x3e',tag:"img",_getCurrentValues:function(e){if(e&&e.tagName.toLowerCase()===this.tag){var l=e.getAttribute("_djrealurl")||e.getAttribute("src");var y=e.getAttribute("alt");this.editor.selection.selectElement(e,!0)}else y=this.editor.selection.getSelectedText();return{urlInput:l||"",textInput:y||""}},_isValid:function(){return this._urlInput.isValid()},_connectTagEvents:function(){this.inherited(arguments);
this.editor.onLoadDeferred.then(a.hitch(this,function(){this.own(b(this.editor.editNode,"mousedown",a.hitch(this,"_selectTag")))}))},_selectTag:function(e){e&&e.target&&(e=e.target,(e.tagName?e.tagName.toLowerCase():"")===this.tag&&this.editor.selection.selectElement(e))},_checkValues:function(e){e&&e.urlInput&&(e.urlInput=e.urlInput.replace(/"/g,"\x26quot;"));e&&e.textInput&&(e.textInput=e.textInput.replace(/"/g,"\x26quot;"));return e},_onDblClick:function(e){if(e&&e.target&&(e=e.target,(e.tagName?
e.tagName.toLowerCase():"")===this.tag&&I.get(e,"src"))){var l=this.editor;this.editor.selection.selectElement(e);l.onDisplayChanged();l._updateTimer&&(l._updateTimer.remove(),delete l._updateTimer);l.onNormalizedDisplayChanged();var y=this.button;setTimeout(function(){y.set("disabled",!1);y.loadAndOpenDropDown().then(function(){y.dropDown.focus&&y.dropDown.focus()})},10)}}});m.registry.createLink=function(e){var l={command:"createLink",allowUnsafeHtml:"allowUnsafeHtml"in e?e.allowUnsafeHtml:!1};
"linkFilter"in e&&(l.linkFilter=e.linkFilter);return new u(l)};m.registry.insertImage=function(){return new G({command:"insertImage"})};u.ImgLinkDialog=G;return u})},"dijit/_editor/plugins/ViewSource":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../.. ../../registry dojo/i18n!../nls/commands".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y){var B=L("dijit._editor.plugins.ViewSource",G,{stripScripts:!0,stripComments:!0,stripIFrames:!0,stripEventHandlers:!0,readOnly:!1,_fsPlugin:null,toggle:function(){h("webkit")&&(this._vsFocused=!0);this.button.set("checked",!this.button.get("checked"))},_initButton:function(){var k=d.getLocalization("dijit._editor","commands"),t=this.editor;this.button=new e({label:k.viewSource,ownerDocument:t.ownerDocument,dir:t.dir,lang:t.lang,showLabel:!1,iconClass:this.iconClassPrefix+
" "+this.iconClassPrefix+"ViewSource",tabIndex:"-1",onChange:f.hitch(this,"_showSource")});this.button.set("readOnly",!1)},setEditor:function(k){this.editor=k;this._initButton();this.removeValueFilterHandles();this._setValueFilterHandle=F.before(this.editor,"setValue",f.hitch(this,function(t){return[this._filter(t)]}));this._getValueFilterHandle=F.after(this.editor,"getValue",f.hitch(this,function(t){return this._filter(t)}));this.editor.addKeyHandler(g.F12,!0,!0,f.hitch(this,function(t){this.button.focus();
this.toggle();t.stopPropagation();t.preventDefault();setTimeout(f.hitch(this,function(){this.editor.focused&&this.editor.focus()}),100)}))},_showSource:function(k){var t=this.editor,H=t._plugins;this._sourceShown=k;var r=this;try{this.sourceArea||this._createSourceView();if(k)t._sourceQueryCommandEnabled=t.queryCommandEnabled,t.queryCommandEnabled=function(x){return"viewsource"===x.toLowerCase()},this.editor.onDisplayChanged(),w.forEach(H,function(x){!x||x instanceof B||!x.isInstanceOf(G)||x.set("disabled",
!0)}),this._fsPlugin&&(this._fsPlugin._getAltViewNode=function(){return r.sourceArea}),this.sourceArea.value=t.get("value"),this.sourceArea.style.height=t.iframe.style.height,this.sourceArea.style.width=t.iframe.style.width,t.iframe.parentNode.style.position="relative",b.set(t.iframe,{position:"absolute",top:0,visibility:"hidden"}),b.set(this.sourceArea,{display:"block"}),this._resizeHandle=m(window,"resize",f.hitch(this,function(){var x=p.getBox(t.ownerDocument);"_prevW"in this&&"_prevH"in this&&
x.w===this._prevW&&x.h===this._prevH||(this._prevW=x.w,this._prevH=x.h,this._resizer&&(clearTimeout(this._resizer),delete this._resizer),this._resizer=setTimeout(f.hitch(this,function(){delete this._resizer;this._resize()}),10))})),setTimeout(f.hitch(this,this._resize),100),this.editor.onNormalizedDisplayChanged(),this.editor.__oldGetValue=this.editor.getValue,this.editor.getValue=f.hitch(this,function(){var x=this.sourceArea.value;return x=this._filter(x)}),this._setListener=F.after(this.editor,
"setValue",f.hitch(this,function(x){this.sourceArea.value=x||""}),!0);else{if(!t._sourceQueryCommandEnabled)return;this._setListener.remove();delete this._setListener;this._resizeHandle.remove();delete this._resizeHandle;this.editor.__oldGetValue&&(this.editor.getValue=this.editor.__oldGetValue,delete this.editor.__oldGetValue);t.queryCommandEnabled=t._sourceQueryCommandEnabled;if(!this._readOnly){var N=this.sourceArea.value;t.beginEditing();t.set("value",N);t.endEditing()}w.forEach(H,function(x){x&&
x.isInstanceOf(G)&&x.set("disabled",!1)});b.set(this.sourceArea,"display","none");b.set(t.iframe,{position:"relative",visibility:"visible"});delete t._sourceQueryCommandEnabled;this.editor.onDisplayChanged()}setTimeout(f.hitch(this,function(){var x=t.domNode.parentNode;x&&(x=y.getEnclosingWidget(x))&&x.resize&&x.resize();t.resize()}),300)}catch(x){console.log(x)}},updateState:function(){this.button.set("disabled",this.get("disabled"))},_resize:function(){var k=this.editor,t=k.getHeaderHeight(),H=
k.getFooterHeight(),r=a.position(k.domNode),N=a.getPadBorderExtents(k.iframe.parentNode),x=a.getMarginExtents(k.iframe.parentNode),D=a.getPadBorderExtents(k.domNode),q=r.w-D.w;r=r.h-(t+D.h+H);this._fsPlugin&&this._fsPlugin.isFullscreen&&(k=p.getBox(k.ownerDocument),q=k.w-D.w,r=k.h-(t+D.h+H));a.setMarginBox(this.sourceArea,{w:Math.round(q-(N.w+x.w)),h:Math.round(r-(N.h+x.h))})},_createSourceView:function(){var k=this.editor,t=k._plugins;this.sourceArea=E.create("textarea");this.readOnly&&(I.set(this.sourceArea,
"readOnly",!0),this._readOnly=!0);b.set(this.sourceArea,{padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});I.set(this.sourceArea,"aria-label",this.editor.id);E.place(this.sourceArea,k.iframe,"before");h("ie")&&k.iframe.parentNode.lastChild!==k.iframe&&b.set(k.iframe.parentNode.lastChild,{width:"0px",height:"0px",padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});k._viewsource_oldFocus=k.focus;var H=this;k.focus=function(){if(H._sourceShown)H.setSourceAreaCaret();else try{this._vsFocused?
(delete this._vsFocused,u.focus(k.editNode)):k._viewsource_oldFocus()}catch(x){console.log("ViewSource focus code error: "+x)}};var r,N;for(r=0;r<t.length;r++)if((N=t[r])&&("dijit._editor.plugins.FullScreen"===N.declaredClass||N.declaredClass===l._scopeName+"._editor.plugins.FullScreen")){this._fsPlugin=N;break}this._fsPlugin&&(this._fsPlugin._viewsource_getAltViewNode=this._fsPlugin._getAltViewNode,this._fsPlugin._getAltViewNode=function(){return H._sourceShown?H.sourceArea:this._viewsource_getAltViewNode()});
this.own(m(this.sourceArea,"keydown",f.hitch(this,function(x){this._sourceShown&&x.keyCode==g.F12&&x.ctrlKey&&x.shiftKey&&(this.button.focus(),this.button.set("checked",!1),setTimeout(f.hitch(this,function(){k.focus()}),100),x.stopPropagation(),x.preventDefault())})))},_stripScripts:function(k){k&&(k=k.replace(/<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>/ig,""),k=k.replace(/<\s*script\b([^<>]|\s)*>?/ig,""),k=k.replace(/<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>/ig,""));return k},_stripComments:function(k){k&&
(k=k.replace(/\x3c!--(.|\s){1,}?--\x3e/g,""));return k},_stripIFrames:function(k){k&&(k=k.replace(/<\s*iframe[^>]*>((.|\s)*?)<\\?\/\s*iframe\s*>/ig,""));return k},_stripEventHandlers:function(k){if(k){var t=k.match(/<[a-z]+?\b(.*?on.*?(['"]).*?\2.*?)+>/gim);if(t)for(var H=0,r=t.length;H<r;H++){var N=t[H],x=N.replace(/\s+on[a-z]*\s*=\s*(['"])(.*?)\1/igm,"");k=k.replace(N,x)}}return k},_filter:function(k){k&&(this.stripScripts&&(k=this._stripScripts(k)),this.stripComments&&(k=this._stripComments(k)),
this.stripIFrames&&(k=this._stripIFrames(k)),this.stripEventHandlers&&(k=this._stripEventHandlers(k)));return k},removeValueFilterHandles:function(){this._setValueFilterHandle&&(this._setValueFilterHandle.remove(),delete this._setValueFilterHandle);this._getValueFilterHandle&&(this._getValueFilterHandle.remove(),delete this._getValueFilterHandle)},setSourceAreaCaret:function(){var k=this.sourceArea;u.focus(k);this._sourceShown&&!this.readOnly&&(k.setSelectionRange?k.setSelectionRange(0,0):this.sourceArea.createTextRange&&
(k=k.createTextRange(),k.collapse(!0),k.moveStart("character",-99999),k.moveStart("character",0),k.moveEnd("character",0),k.select()))},destroy:function(){this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizeHandle&&(this._resizeHandle.remove(),delete this._resizeHandle);this._setListener&&(this._setListener.remove(),delete this._setListener);this.removeValueFilterHandles();this.inherited(arguments)}});G.registry.viewSource=G.registry.viewsource=function(k){return new B({readOnly:"readOnly"in
k?k.readOnly:!1,stripComments:"stripComments"in k?k.stripComments:!0,stripScripts:"stripScripts"in k?k.stripScripts:!0,stripIFrames:"stripIFrames"in k?k.stripIFrames:!0,stripEventHandlers:"stripEventHandlers"in k?k.stripEventHandlers:!0})};return B})},"dijit/_editor/plugins/FontChoice":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-construct dojo/i18n dojo/_base/lang dojo/string dojo/store/Memory ../../registry ../../_Widget ../../_TemplatedMixin ../../_WidgetsInTemplateMixin ../../form/FilteringSelect ../_Plugin ../range dojo/i18n!../nls/FontChoice".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G){w=L("dijit._editor.plugins._FontDropDown",[f,m,h],{label:"",plainText:!1,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${selectId}'\x3e${label}\x3c/label\x3e\x3cinput data-dojo-type\x3d'../../form/FilteringSelect' required\x3d'false' data-dojo-props\x3d'labelType:\"html\", labelAttr:\"label\", searchAttr:\"name\"' class\x3d'${comboClass}' tabIndex\x3d'-1' id\x3d'${selectId}' data-dojo-attach-point\x3d'select' value\x3d''/\x3e\x3c/span\x3e",
contextRequire:w,postMixInProperties:function(){this.inherited(arguments);this.strings=E.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=g.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments)},postCreate:function(){this.select.set("store",new d({idProperty:"value",data:F.map(this.values,function(k){var t=this.strings[k]||k;return{label:this.getLabel(k,t),name:t,value:k}},this)}));this.select.set("value",
"",!1);this.disabled=this.select.get("disabled")},_setValueAttr:function(k,t){t=!1!==t;this.select.set("value",0>F.indexOf(this.values,k)?"":k,t);t||(this.select._lastValueReported=null)},_getValueAttr:function(){return this.select.get("value")},focus:function(){this.select.focus()},_setDisabledAttr:function(k){this._set("disabled",k);this.select.set("disabled",k)}});var e=L("dijit._editor.plugins._FontNameDropDown",w,{generic:!1,command:"fontName",comboClass:"dijitFontNameCombo",postMixInProperties:function(){this.values||
(this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"]);this.inherited(arguments)},getLabel:function(k,t){return this.plainText?t:"\x3cdiv style\x3d'font-family: "+k+"'\x3e"+t+"\x3c/div\x3e"},_normalizeFontName:function(k){var t=this.values;if(!k||!t)return k;var H=k.split(",");if(1<H.length)for(var r=0,N=H.length;r<N;r++){var x=b.trim(H[r]);if(-1<F.indexOf(t,x))return x}return k},_setValueAttr:function(k,t){t=!1!==
t;k=this._normalizeFontName(k);this.generic&&(k={Arial:"sans-serif",Helvetica:"sans-serif",Myriad:"sans-serif",Times:"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive",Courier:"monospace","Courier New":"monospace",Papyrus:"fantasy","Estrangelo Edessa":"cursive",Gabriola:"fantasy"}[k]||k);this.inherited(arguments,[k,t])}}),l=L("dijit._editor.plugins._FontSizeDropDown",w,{command:"fontSize",comboClass:"dijitFontSizeCombo",values:[1,2,3,4,5,6,7],getLabel:function(k,
t){return this.plainText?t:"\x3cfont size\x3d"+k+"'\x3e"+t+"\x3c/font\x3e"},_setValueAttr:function(k,t){t=!1!==t;k.indexOf&&-1!=k.indexOf("px")&&(k={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[parseInt(k,10)]||k);this.inherited(arguments,[k,t])}}),y=L("dijit._editor.plugins._FormatBlockDropDown",w,{command:"formatBlock",comboClass:"dijitFormatBlockCombo",values:"noFormat p h1 h2 h3 pre".split(" "),postCreate:function(){this.inherited(arguments);this.set("value","noFormat",!1)},getLabel:function(k,t){return this.plainText||
"noFormat"==k?t:"\x3c"+k+"\x3e"+t+"\x3c/"+k+"\x3e"},_execCommand:function(k,t,H){if("noFormat"===H){var r;if((t=G.getSelection(k.window))&&0<t.rangeCount&&(H=t.getRangeAt(0),H)){t=H.startContainer;for(r=H.endContainer;t&&t!==k.editNode&&t!==k.document.body&&1!==t.nodeType;)t=t.parentNode;for(;r&&r!==k.editNode&&r!==k.document.body&&1!==r.nodeType;)r=r.parentNode;var N=a.hitch(this,function(z,O){if(z.childNodes&&z.childNodes.length){var v;for(v=0;v<z.childNodes.length;v++){var c=z.childNodes[v];if(1==
c.nodeType&&k.selection.inSelection(c)){var n=c.tagName?c.tagName.toLowerCase():"";-1!==F.indexOf(this.values,n)&&O.push(c);N(c,O)}}}});H=a.hitch(this,function(z){if(z&&z.length){for(k.beginEditing();z.length;)this._removeFormat(k,z.pop());k.endEditing()}});var x=[];if(t==r){for(r=t;r&&r!==k.editNode&&r!==k.document.body;){if(1==r.nodeType){var D=r.tagName?r.tagName.toLowerCase():"";if(-1!==F.indexOf(this.values,D)){var q=r;break}}r=r.parentNode}N(t,x);q&&(x=[q].concat(x))}else for(r=t;k.selection.inSelection(r);)1==
r.nodeType&&(D=r.tagName?r.tagName.toLowerCase():"",-1!==F.indexOf(this.values,D)&&x.push(r),N(r,x)),r=r.nextSibling;H(x);k.onDisplayChanged()}}else k.execCommand(t,H)},_removeFormat:function(k,t){if(k.customUndo){for(;t.firstChild;)I.place(t.firstChild,t,"before");t.parentNode.removeChild(t)}else{k.selection.selectElementChildren(t);var H=k.selection.getSelectedHtml();k.selection.selectElement(t);k.execCommand("inserthtml",H||"")}}}),B=L("dijit._editor.plugins.FontChoice",u,{useDefaultCommand:!1,
_initButton:function(){var k={fontName:e,fontSize:l,formatBlock:y}[this.command],t=this.params;this.params.custom&&(t.values=this.params.custom);var H=this.editor;this.button=new k(a.delegate({dir:H.dir,lang:H.lang},t));this.own(this.button.select.on("change",a.hitch(this,function(r){this.editor.focused&&this.editor.focus();"fontName"==this.command&&-1!=r.indexOf(" ")&&(r="'"+r+"'");this.button._execCommand?this.button._execCommand(this.editor,this.command,r):this.editor.execCommand(this.command,
r)})))},updateState:function(){var k=this.editor,t=this.command;if(k&&k.isLoaded&&t.length&&this.button){var H=this.get("disabled");this.button.set("disabled",H);if(!H){try{var r=k.queryCommandValue(t)||""}catch(x){r=""}(H=a.isString(r)&&(r.match(/'([^']*)'/)||r.match(/"([^"]*)"/)))&&(r=H[1]);"fontSize"!==t||r||(r=3);if("formatBlock"===t)if(r&&"p"!=r)0>F.indexOf(this.button.values,r)&&(r="noFormat");else{r=null;if((t=G.getSelection(this.editor.window))&&0<t.rangeCount&&(t=t.getRangeAt(0)))var N=t.endContainer;
for(;N&&N!==k.editNode&&N!==k.document;){if((t=N.tagName?N.tagName.toLowerCase():"")&&-1<F.indexOf(this.button.values,t)){r=t;break}N=N.parentNode}r||(r="noFormat")}r!==this.button.get("value")&&this.button.set("value",r,!1)}}}});F.forEach(["fontName","fontSize","formatBlock"],function(k){u.registry[k]=function(t){return new B({command:k,plainText:t.plainText})}});B._FontDropDown=w;B._FontNameDropDown=e;B._FontSizeDropDown=l;B._FormatBlockDropDown=y;return B})},"dojox/editor/plugins/Preview":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/Button dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Preview".split(" "),
function(w,F,L,I){var E=w.declare("dojox.editor.plugins.Preview",I,{useDefaultCommand:!1,styles:"",stylesheets:null,iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=w.i18n.getLocalization("dojox.editor.plugins","Preview");this.button=new F.form.Button({label:this._nlsResources.preview,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Preview",tabIndex:"-1",onClick:w.hitch(this,"_preview")})},setEditor:function(a){this.editor=a;this._initButton()},
updateState:function(){this.button.set("disabled",this.get("disabled"))},_preview:function(){try{var a=this.editor.get("value"),b="\t\t\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html; charset\x3dUTF-8'\x3e\n",d;if(this.stylesheets)for(d=0;d<this.stylesheets.length;d++)b+="\t\t\x3clink rel\x3d'stylesheet' type\x3d'text/css' href\x3d'"+this.stylesheets[d]+"'\x3e\n";this.styles&&(b+="\t\t\x3cstyle\x3e"+this.styles+"\x3c/style\x3e\n");a="\x3chtml\x3e\n\t\x3chead\x3e\n"+b+"\t\x3c/head\x3e\n\t\x3cbody\x3e\n"+
a+"\n\t\x3c/body\x3e\n\x3c/html\x3e";var g=window.open("javascript: ''",this._nlsResources.preview,"status\x3d1,menubar\x3d0,location\x3d0,toolbar\x3d0");g.document.open();g.document.write(a);g.document.close()}catch(f){console.warn(f)}}});w.subscribe(F._scopeName+".Editor.getPlugin",null,function(a){a.plugin||"preview"!==a.args.name.toLowerCase()||(a.plugin=new E({styles:"styles"in a.args?a.args.styles:"",stylesheets:"stylesheets"in a.args?a.args.stylesheets:null}))});return E})},"dojox/editor/plugins/ToolbarLineBreak":function(){define("dojo dijit dojox dijit/_Widget dijit/_TemplatedMixin dijit/_editor/_Plugin dojo/_base/declare".split(" "),
function(w,F,L,I,E,a,b){var d=b("dojox.editor.plugins.ToolbarLineBreak",[I,E],{templateString:"\x3cspan class\x3d'dijit dijitReset'\x3e\x3cbr\x3e\x3c/span\x3e",postCreate:function(){w.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}});w.subscribe(F._scopeName+".Editor.getPlugin",null,function(g){if(!g.plugin){var f=g.args.name.toLowerCase();if("||"===f||"toolbarlinebreak"===f)g.plugin=new a({button:new d,setEditor:function(m){this.editor=m}})}});return d})},"dojox/editor/plugins/FindReplace":function(){define("dojo dijit dojox dijit/_base/manager dijit/_base/popup dijit/_Widget dijit/_TemplatedMixin dijit/_KeyNavContainer dijit/_WidgetsInTemplateMixin dijit/TooltipDialog dijit/Toolbar dijit/form/CheckBox dijit/form/_TextBoxMixin dijit/form/TextBox dijit/_editor/_Plugin dijit/form/Button dijit/form/DropDownButton dijit/form/ToggleButton ./ToolbarLineBreak dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/FindReplace".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G){w.experimental("dojox.editor.plugins.FindReplace");var e=w.declare("dojox.editor.plugins._FindReplaceCloseBox",[a,b,g],{btnId:"",widget:null,widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'float: right' class\x3d'dijitInline' tabindex\x3d'-1'\x3e\x3cbutton class\x3d'dijit dijitReset dijitInline' id\x3d'${btnId}' dojoAttachPoint\x3d'button' dojoType\x3d'dijit.form.Button' tabindex\x3d'-1' iconClass\x3d'dijitEditorIconsFindReplaceClose' showLabel\x3d'false'\x3eX\x3c/button\x3e\x3c/span\x3e",
postMixInProperties:function(){this.id=F.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.btnId=this.id+"_close";this.inherited(arguments)},startup:function(){this.connect(this.button,"onClick","onClick")},onClick:function(){}}),l=w.declare("dojox.editor.plugins._FindReplaceTextBox",[a,b,g],{textId:"",label:"",toolTip:"",widget:null,widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline dijitEditorFindReplaceTextBox' title\x3d'${tooltip}' tabindex\x3d'-1'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${textId}' tabindex\x3d'-1'\x3e${label}\x3c/label\x3e\x3cinput dojoType\x3d'dijit.form.TextBox' intermediateChanges\x3d'true' class\x3d'focusTextBox' tabIndex\x3d'0' id\x3d'${textId}' dojoAttachPoint\x3d'textBox, focusNode' value\x3d'' dojoAttachEvent\x3d'onKeyPress: _onKeyPress'/\x3e\x3c/span\x3e",
postMixInProperties:function(){this.id=F.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.textId=this.id+"_text";this.inherited(arguments)},postCreate:function(){this.textBox.set("value","");this.disabled=this.textBox.get("disabled");this.connect(this.textBox,"onChange","onChange");w.attr(this.textBox.textbox,"formnovalidate","true")},_setValueAttr:function(t){this.value=t;this.textBox.set("value",t)},focus:function(){this.textBox.focus()},_setDisabledAttr:function(t){this.disabled=t;this.textBox.set("disabled",
t)},onChange:function(t){this.value=t},_onKeyPress:function(t){var H=0,r=0;!t.target||t.ctrlKey||t.altKey||t.shiftKey||(t.keyCode==w.keys.LEFT_ARROW?(H=t.target.selectionStart,r=t.target.selectionEnd,H<r&&(F.selectInputText(t.target,H,H),w.stopEvent(t))):t.keyCode==w.keys.RIGHT_ARROW&&(H=t.target.selectionStart,r=t.target.selectionEnd,H<r&&(F.selectInputText(t.target,r,r),w.stopEvent(t))))}}),y=w.declare("dojox.editor.plugins._FindReplaceCheckBox",[a,b,g],{checkId:"",label:"",tooltip:"",widget:null,
widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'white-space: nowrap' tabindex\x3d'-1' class\x3d'dijit dijitReset dijitInline dijitEditorFindReplaceCheckBox' title\x3d'${tooltip}' \x3e\x3cinput dojoType\x3d'dijit.form.CheckBox' tabIndex\x3d'0' id\x3d'${checkId}' dojoAttachPoint\x3d'checkBox, focusNode' value\x3d''/\x3e\x3clabel tabindex\x3d'-1' class\x3d'dijitLeft dijitInline' for\x3d'${checkId}'\x3e${label}\x3c/label\x3e\x3c/span\x3e",postMixInProperties:function(){this.id=F.getUniqueId(this.declaredClass.replace(/\./g,
"_"));this.checkId=this.id+"_check";this.inherited(arguments)},postCreate:function(){this.checkBox.set("checked",!1);this.disabled=this.checkBox.get("disabled");this.checkBox.isFocusable=function(){return!1}},_setValueAttr:function(t){this.checkBox.set("value",t)},_getValueAttr:function(){return this.checkBox.get("value")},focus:function(){this.checkBox.focus()},_setDisabledAttr:function(t){this.disabled=t;this.checkBox.set("disabled",t)}}),B=w.declare("dojox.editor.plugins._FindReplaceToolbar",m,
{postCreate:function(){this.connectKeyNavHandlers([],[]);this.connect(this.containerNode,"onclick","_onToolbarEvent");this.connect(this.containerNode,"onkeydown","_onToolbarEvent");w.addClass(this.domNode,"dijitToolbar")},addChild:function(t,H){F._KeyNavContainer.superclass.addChild.apply(this,arguments)},_onToolbarEvent:function(t){t.stopPropagation()}}),k=w.declare("dojox.editor.plugins.FindReplace",[G],{buttonClass:F.form.ToggleButton,iconClassPrefix:"dijitEditorIconsFindReplace",editor:null,button:null,
_frToolbar:null,_closeBox:null,_findField:null,_replaceField:null,_findButton:null,_replaceButton:null,_replaceAllButton:null,_caseSensitive:null,_backwards:null,_promDialog:null,_promDialogTimeout:null,_strings:null,_bookmark:null,_initButton:function(){this._strings=w.i18n.getLocalization("dojox.editor.plugins","FindReplace");this.button=new F.form.ToggleButton({label:this._strings.findReplace,showLabel:!1,iconClass:this.iconClassPrefix+" dijitEditorIconFindString",tabIndex:"-1",onChange:w.hitch(this,
"_toggleFindReplace")});w.isOpera&&this.button.set("disabled",!0);this.connect(this.button,"set",w.hitch(this,function(t,H){"disabled"===t&&this._toggleFindReplace(!H&&this._displayed,!0,!0)}))},setEditor:function(t){this.editor=t;this._initButton()},toggle:function(){this.button.set("checked",!this.button.get("checked"))},_toggleFindReplace:function(t,H,r){var N=w.marginBox(this.editor.domNode);t&&!w.isOpera?(w.style(this._frToolbar.domNode,"display","block"),this._populateFindField(),H||(this._displayed=
!0)):(w.style(this._frToolbar.domNode,"display","none"),H||(this._displayed=!1),r||this.editor.focus());this.editor.resize({h:N.h})},_populateFindField:function(){var t=this.editor._sCall("getSelectedText",[null]);this._findField&&this._findField.textBox&&(t&&this._findField.textBox.set("value",t),this._findField.textBox.focus(),F.selectInputText(this._findField.textBox.focusNode))},setToolbar:function(t){this.inherited(arguments);if(!w.isOpera){var H=this._frToolbar=new B;w.style(H.domNode,"display",
"none");w.place(H.domNode,t.domNode,"after");H.startup();this._closeBox=new e;H.addChild(this._closeBox);this._findField=new l({label:this._strings.findLabel,tooltip:this._strings.findTooltip});H.addChild(this._findField);this._replaceField=new l({label:this._strings.replaceLabel,tooltip:this._strings.replaceTooltip});H.addChild(this._replaceField);H.addChild(new L.editor.plugins.ToolbarLineBreak);this._findButton=new F.form.Button({label:this._strings.findButton,showLabel:!0,iconClass:this.iconClassPrefix+
" dijitEditorIconFind"});this._findButton.titleNode.title=this._strings.findButtonTooltip;H.addChild(this._findButton);this._replaceButton=new F.form.Button({label:this._strings.replaceButton,showLabel:!0,iconClass:this.iconClassPrefix+" dijitEditorIconReplace"});this._replaceButton.titleNode.title=this._strings.replaceButtonTooltip;H.addChild(this._replaceButton);this._replaceAllButton=new F.form.Button({label:this._strings.replaceAllButton,showLabel:!0,iconClass:this.iconClassPrefix+" dijitEditorIconReplaceAll"});
this._replaceAllButton.titleNode.title=this._strings.replaceAllButtonTooltip;H.addChild(this._replaceAllButton);this._caseSensitive=new y({label:this._strings.matchCase,tooltip:this._strings.matchCaseTooltip});H.addChild(this._caseSensitive);this._backwards=new y({label:this._strings.backwards,tooltip:this._strings.backwardsTooltip});H.addChild(this._backwards);this._findButton.set("disabled",!0);this._replaceButton.set("disabled",!0);this._replaceAllButton.set("disabled",!0);this.connect(this._findField,
"onChange","_checkButtons");this.connect(this._findField,"onKeyDown","_onFindKeyDown");this.connect(this._replaceField,"onKeyDown","_onReplaceKeyDown");this.connect(this._findButton,"onClick","_find");this.connect(this._replaceButton,"onClick","_replace");this.connect(this._replaceAllButton,"onClick","_replaceAll");this.connect(this._closeBox,"onClick","toggle");this._promDialog=new F.TooltipDialog;this._promDialog.startup();this._promDialog.set("content","")}},_checkButtons:function(){this._findField.get("value")?
(this._findButton.set("disabled",!1),this._replaceButton.set("disabled",!1),this._replaceAllButton.set("disabled",!1)):(this._findButton.set("disabled",!0),this._replaceButton.set("disabled",!0),this._replaceAllButton.set("disabled",!0))},_onFindKeyDown:function(t){t.keyCode==w.keys.ENTER&&(this._find(),w.stopEvent(t))},_onReplaceKeyDown:function(t){t.keyCode==w.keys.ENTER&&(this._replace()||this._replace(),w.stopEvent(t))},_find:function(t){var H=this._findField.get("value")||"";if(H){var r=this._caseSensitive.get("value"),
N=this._backwards.get("value");H=this._findText(H,r,N);!H&&t&&(this._promDialog.set("content",w.string.substitute(this._strings.eofDialogText,{0:this._strings.eofDialogTextFind})),F.popup.open({popup:this._promDialog,around:this._findButton.domNode}),this._promDialogTimeout=setTimeout(w.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;F.popup.close(this._promDialog)}),3E3),setTimeout(w.hitch(this,function(){this.editor.focus()}),0));return H}return!1},_replace:function(t){var H=
!1,r=this.editor;r.focus();var N=this._findField.get("value")||"",x=this._replaceField.get("value")||"";if(N){var D=this._caseSensitive.get("value"),q=this._backwards.get("value"),z=r._sCall("getSelectedText",[null]);w.isMoz&&(N=w.trim(N),z=w.trim(z));N=this._filterRegexp(N,!D);z&&N.test(z)&&(r.execCommand("inserthtml",x),H=!0,q&&(this._findText(x,D,q),r._sCall("collapse",[!0])));!this._find(!1)&&t&&(this._promDialog.set("content",w.string.substitute(this._strings.eofDialogText,{0:this._strings.eofDialogTextReplace})),
F.popup.open({popup:this._promDialog,around:this._replaceButton.domNode}),this._promDialogTimeout=setTimeout(w.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;F.popup.close(this._promDialog)}),3E3),setTimeout(w.hitch(this,function(){this.editor.focus()}),0));return H}return null},_replaceAll:function(t){var H=0;this._backwards.get("value")?this.editor.placeCursorAtEnd():this.editor.placeCursorAtStart();this._replace(!1)&&H++;var r=w.hitch(this,function(){this._replace(!1)?
(H++,setTimeout(r,10)):t&&(this._promDialog.set("content",w.string.substitute(this._strings.replaceDialogText,{0:""+H})),F.popup.open({popup:this._promDialog,around:this._replaceAllButton.domNode}),this._promDialogTimeout=setTimeout(w.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;F.popup.close(this._promDialog)}),3E3),setTimeout(w.hitch(this,function(){this._findField.focus();this._findField.textBox.focusNode.select()}),0))});r()},_findText:function(t,H,
r){var N=this.editor,x=N.window,D=!1;if(t)if(x.find)D=x.find(t,H,r,!1,!1,!1,!1);else{var q=N.document;if(q.selection||x.getSelection)if(this.editor.focus(),N=q.body.createTextRange(),D=N.duplicate(),x.getSelection().getRangeAt(0),(q=q.selection?q.selection.createRange():null)?r?N.setEndPoint("EndToStart",q):N.setEndPoint("StartToEnd",q):this._bookmark&&(x=x.getSelection().toString(),N.moveToBookmark(this._bookmark),N.text!=x?(N=D.duplicate(),this._bookmark=null):(r?D.setEndPoint("EndToStart",N):D.setEndPoint("StartToEnd",
N),N=D.duplicate())),H=H?4:0,r&&(H|=1),D=N.findText(t,N.text.length,H))N.select(),this._bookmark=N.getBookmark()}return D},_filterRegexp:function(t,H){for(var r="",N=null,x=0;x<t.length;x++)switch(N=t.charAt(x),N){case "\\":r+=N;x++;r+=t.charAt(x);break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":r+="\\";default:r+=N}r="^"+r+"$";return H?new RegExp(r,"mi"):new RegExp(r,"m")},updateState:function(){this.button.set("disabled",this.get("disabled"))},
destroy:function(){this.inherited(arguments);this._promDialogTimeout&&(clearTimeout(this._promDialogTimeout),this._promDialogTimeout=null,F.popup.close(this._promDialog));this._frToolbar&&(this._frToolbar.destroyRecursive(),this._frToolbar=null);this._promDialog&&(this._promDialog.destroyRecursive(),this._promDialog=null)}});k._FindReplaceCloseBox=e;k._FindReplaceTextBox=l;k._FindReplaceCheckBox=y;k._FindReplaceToolbar=B;w.subscribe(F._scopeName+".Editor.getPlugin",null,function(t){t.plugin||"findreplace"!==
t.args.name.toLowerCase()||(t.plugin=new k({}))});return k})},"dojox/editor/plugins/PasteFromWord":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/RichText dijit/form/Button dijit/Dialog dojox/html/format dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/PasteFromWord dojo/i18n!dijit/nls/common dojo/i18n!dijit/_editor/nls/commands".split(" "),function(w,F,L,I){var E=w.declare("dojox.editor.plugins.PasteFromWord",
I,{iconClassPrefix:"dijitAdditionalEditorIcon",width:"400px",height:"300px",_template:"\x3cdiv class\x3d'dijitPasteFromWordEmbeddedRTE'\x3e\x3cdiv style\x3d'width: ${width}; padding-top: 5px; padding-bottom: 5px;'\x3e${instructions}\x3c/div\x3e\x3cdiv id\x3d'${uId}_rte' style\x3d'width: ${width}; height: ${height}'\x3e\x3c/div\x3e\x3ctable style\x3d'width: ${width}' tabindex\x3d'-1'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd align\x3d'center'\x3e\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_paste'\x3e${paste}\x3c/button\x3e\x26nbsp;\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_cancel'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e",
_filters:[{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,handler:""},{regexp:/(class="Mso[^"]*")|(\x3c!--(.|\s){1,}?--\x3e)/gi,handler:""},{regexp:/(<p[^>]*>\s*(&nbsp;|\u00A0)*\s*<\/p[^>]*>)|(<p[^>]*>\s*<font[^>]*>\s*(&nbsp;|\u00A0)*\s*<\/\s*font\s*>\s<\/p[^>]*>)/ig,handler:""},{regexp:/(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi,
handler:""},{regexp:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""},{regexp:/<(\/?)o:p[^>]*>/gi,handler:""}],_initButton:function(){this._filters=this._filters.slice(0);var a=w.i18n.getLocalization("dojox.editor.plugins","PasteFromWord");w.mixin(a,w.i18n.getLocalization("dijit","common"));w.mixin(a,w.i18n.getLocalization("dijit._editor","commands"));this.button=new F.form.Button({label:a.pasteFromWord,
showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"PasteFromWord",tabIndex:"-1",onClick:w.hitch(this,"_openDialog")});this._uId=F.getUniqueId(this.editor.id);a.uId=this._uId;a.width=this.width||"400px";a.height=this.height||"300px";this._dialog=(new F.Dialog({title:a.pasteFromWord})).placeAt(w.body());this._dialog.set("content",w.string.substitute(this._template,a));w.style(w.byId(this._uId+"_rte"),"opacity",.001);this.connect(F.byId(this._uId+"_paste"),"onClick","_paste");this.connect(F.byId(this._uId+
"_cancel"),"onClick","_cancel");this.connect(this._dialog,"onHide","_clearDialog")},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(a){this.editor=a;this._initButton()},_openDialog:function(){this._dialog.show();this._rte||setTimeout(w.hitch(this,function(){this._rte=new F._editor.RichText({height:this.height||"300px"},this._uId+"_rte");this._rte.startup();this._rte.onLoadDeferred.addCallback(w.hitch(this,function(){w.animateProperty({node:this._rte.domNode,
properties:{opacity:{start:.001,end:1}}}).play()}))}),100)},_paste:function(){var a=L.html.format.prettyPrint(this._rte.get("value"));this._dialog.hide();var b;for(b=0;b<this._filters.length;b++){var d=this._filters[b];a=a.replace(d.regexp,d.handler)}a=L.html.format.prettyPrint(a);this.editor.focus();this.editor.execCommand("inserthtml",a)},_cancel:function(){this._dialog.hide()},_clearDialog:function(){this._rte.set("value","")},destroy:function(){this._rte&&this._rte.destroy();this._dialog&&this._dialog.destroyRecursive();
delete this._dialog;delete this._rte;this.inherited(arguments)}});w.subscribe(F._scopeName+".Editor.getPlugin",null,function(a){a.plugin||"pastefromword"!==a.args.name.toLowerCase()||(a.plugin=new E({width:"width"in a.args?a.args.width:"400px",height:"height"in a.args?a.args.width:"300px"}))});return E})},"dojox/html/format":function(){define(["dojo/_base/kernel","./entities","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(w,F,L,I,E){var a=w.getObject("dojox.html.format",!0);a.prettyPrint=
function(b,d,g,f,m){var h=[],p=0,u=[],G="\t",e="",l=[],y,B=/[=]([^"']+?)(\s|>)/g,k=/style=("[^"]*"|'[^']*'|\S*)/gi,t=/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi;if(d&&0<d&&10>d)for(G="",y=0;y<d;y++)G+=" ";d=I.doc.createElement("div");d.innerHTML=b;var H=F.encode,r=F.decode,N=d.ownerDocument.createElement("div"),x=function(n){n=n.cloneNode(!1);N.appendChild(n);n=N.innerHTML;N.innerHTML="";return n},D=function(){var n;for(n=0;n<p;n++)h.push(G)},q=function(){h.push("\n")},z=function(n){var C;n=n.split("\n");for(C=
0;C<n.length;C++)n[C]=w.trim(n[C]);n=n.join(" ");n=w.trim(n);if(""!==n){var J=[];if(g&&0<g){var M="";for(C=0;C<p;C++)M+=G;C=M.length;M=g;for(g>C&&(M-=C);n;)if(n.length>g){for(C=M;0<C&&" "!==n.charAt(C);C--);if(!C)for(C=M;C<n.length&&" "!==n.charAt(C);C++);var P=n.substring(0,C);P=w.trim(P);n=w.trim(n.substring(C==n.length?n.length:C+1,n.length));if(P){var Q="";for(C=0;C<p;C++)Q+=G;P=Q+P+"\n"}J.push(P)}else{Q="";for(C=0;C<p;C++)Q+=G;n=Q+n+"\n";J.push(n);n=null}return J.join("")}Q="";for(C=0;C<p;C++)Q+=
G;return Q+n+"\n"}return""},O=function(n){if(n){var C=n;C&&(C=C.replace(/&quot;/gi,'"'),C=C.replace(/&gt;/gi,"\x3e"),C=C.replace(/&lt;/gi,"\x3c"),C=C.replace(/&amp;/gi,"\x26"));var J;n=0;var M=C.split("\n"),P=[];for(C=0;C<M.length;C++){var Q=M[C],S=-1<Q.indexOf("\n");if(Q=w.trim(Q)){S=n;for(J=0;J<Q.length;J++){var A=Q.charAt(J);"{"===A?n++:"}"===A&&(n--,S=n)}A="";for(J=0;J<p+S;J++)A+=G;P.push(A+Q+"\n")}else S&&0===C&&P.push("\n")}n=P.join("")}return n},v=function(n){var C=n.nodeName.toLowerCase(),
J=w.trim(x(n));n=J.substring(0,J.indexOf("\x3e")+1);n=n.replace(B,'\x3d"$1"$2');n=n.replace(k,function(P){var Q=P.substring(0,6);P=P.substring(6,P.length);var S=P.charAt(0);P=w.trim(P.substring(1,P.length-1));P=P.split(";");var A=[];L.forEach(P,function(R){if(R=w.trim(R))R=R.substring(0,R.indexOf(":")).toLowerCase()+R.substring(R.indexOf(":"),R.length),A.push(R)});A=A.sort();P=A.join("; ");var K=w.trim(P);return K&&";"!==K?Q+S+(P+";")+S:""});var M=[];n=n.replace(t,function(P){M.push(w.trim(P));return""});
M=M.sort();n="\x3c"+C;M.length&&(n+=" "+M.join(" "));-1!=J.indexOf("\x3c/")?(u.push(C),n+="\x3e"):(n=m?n+" /\x3e":n+"\x3e",u.push(!1));a:switch(C){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "small":C=!0;break a;default:C=!1}l.push(C);e&&!C&&(h.push(z(e)),e="");C?e+=n:(D(),h.push(n),q(),p++)},c=function(n){var C=n.childNodes;if(C){var J;for(J=0;J<C.length;J++){var M=C[J];if(1===
M.nodeType){var P=w.trim(M.tagName.toLowerCase());E("ie")&&M.parentNode!=n||P&&"/"===P.charAt(0)||(v(M),"script"===P?h.push(O(M.innerHTML)):"pre"===P?(M=M.innerHTML,E("mozilla")&&(M=M.replace("\x3cbr\x3e","\n"),M=M.replace("\x3cpre\x3e",""),M=M.replace("\x3c/pre\x3e","")),"\n"!==M.charAt(M.length-1)&&(M+="\n"),h.push(M)):c(M),M=l.pop(),e&&!M&&(h.push(z(e)),e=""),(P=u.pop())?(P="\x3c/"+P+"\x3e",M?e+=P:(p--,D(),h.push(P),q())):p--)}else 3===M.nodeType||4===M.nodeType?e+=H(M.nodeValue,f):8===M.nodeType&&
(M=r(M.nodeValue,f),D(),h.push("\x3c!--"),q(),p++,h.push(z(M)),p--,D(),h.push("--\x3e"),q())}}};c(d);e&&(h.push(z(e)),e="");return h.join("")};return a})},"dojox/editor/plugins/InsertAnchor":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/range dijit/_Templated dijit/TooltipDialog dijit/form/ValidationTextBox dijit/form/Select dijit/form/Button dijit/form/DropDownButton dojo/_base/declare dojo/i18n dojo/string dojo/NodeList-dom dojox/editor/plugins/ToolbarLineBreak dojo/i18n!dojox/editor/plugins/nls/InsertAnchor dojo/i18n!dijit/nls/common".split(" "),
function(w,F,L,I){var E=w.declare("dojox.editor.plugins.InsertAnchor",I,{htmlTemplate:'\x3ca name\x3d"${anchorInput}" class\x3d"dijitEditorPluginInsertAnchorStyle"\x3e${textInput}\x3c/a\x3e',iconClassPrefix:"dijitAdditionalEditorIcon",_template:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_anchorInput'\x3e${anchor}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_anchorInput' name\x3d'anchorInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${cancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){var a=this,b=w.i18n.getLocalization("dojox.editor.plugins","InsertAnchor",this.lang),d=this.dropDown=new F.TooltipDialog({title:b.title,execute:w.hitch(this,"setValue"),onOpen:function(){a._onOpenDialog();F.TooltipDialog.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(w.hitch(a,"_onCloseDialog"),0)}});this.button=new F.form.DropDownButton({label:b.insertAnchor,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"InsertAnchor",tabIndex:"-1",
dropDown:this.dropDown});b.id=F.getUniqueId(this.editor.id);this._uniqueId=b.id;this.dropDown.set("content",d.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+w.string.substitute(this._template,b));d.startup();this._anchorInput=F.byId(this._uniqueId+"_anchorInput");this._textInput=F.byId(this._uniqueId+"_textInput");this._setButton=F.byId(this._uniqueId+"_setButton");this.connect(F.byId(this._uniqueId+"_cancelButton"),"onClick",function(){this.dropDown.onCancel()});
this._anchorInput&&this.connect(this._anchorInput,"onChange","_checkInput");this._textInput&&this.connect(this._anchorInput,"onChange","_checkInput");this.editor.contentDomPreFilters.push(w.hitch(this,this._preDomFilter));this.editor.contentDomPostFilters.push(w.hitch(this,this._postDomFilter));this._setup()},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(a){this.editor=a;this._initButton()},_checkInput:function(){var a=!0;this._anchorInput.isValid()&&
(a=!1);this._setButton.set("disabled",a)},_setup:function(){this.editor.onLoadDeferred.addCallback(w.hitch(this,function(){this.connect(this.editor.editNode,"ondblclick",this._onDblClick);setTimeout(w.hitch(this,function(){this._applyStyles()}),100)}))},getAnchorStyle:function(){var a=w.moduleUrl(L._scopeName,"editor/plugins/resources").toString();if(!a.match(/^https?:\/\//i)&&!a.match(/^file:\/\//i)){var b="/"===a.charAt(0)?w.doc.location.protocol+"//"+w.doc.location.host:this._calcBaseUrl(w.global.location.href);
"/"!==b[b.length-1]&&"/"!==a.charAt(0)&&(b+="/");a=b+a}return"@media screen {\n\t.dijitEditorPluginInsertAnchorStyle {\n\t\tbackground-image: url({MODURL}/images/anchor.gif);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: top left;\n\t\tborder-width: 1px;\n\t\tborder-style: dashed;\n\t\tborder-color: #D0D0D0;\n\t\tpadding-left: 20px;\n\t}\n}\n".replace(/\{MODURL\}/gi,a)},_applyStyles:function(){if(!this._styled)try{this._styled=!0;var a=this.editor.document,b=this.getAnchorStyle();if(w.isIE)a.createStyleSheet("").cssText=
b;else{var d=a.createElement("style");d.appendChild(a.createTextNode(b));a.getElementsByTagName("head")[0].appendChild(d)}}catch(g){}},_calcBaseUrl:function(a){var b=null;null!==a&&(b=a.indexOf("?"),-1!=b&&(a=a.substring(0,b)),b=a.lastIndexOf("/"),b=0<b&&b<a.length?a.substring(0,b):a);return b},_checkValues:function(a){a&&(a.anchorInput&&(a.anchorInput=a.anchorInput.replace(/"/g,"\x26quot;")),a.textInput||(a.textInput="\x26nbsp;"));return a},setValue:function(a){this._onCloseDialog();if(!this.editor.window.getSelection){var b=
F.range.getSelection(this.editor.window).getRangeAt(0).endContainer;3===b.nodeType&&(b=b.parentNode);b&&b.nodeName&&"a"!==b.nodeName.toLowerCase()&&(b=this.editor._sCall("getSelectedElement",["a"]));b&&b.nodeName&&"a"===b.nodeName.toLowerCase()&&this.editor.queryCommandEnabled("unlink")&&(this.editor._sCall("selectElementChildren",[b]),this.editor.execCommand("unlink"))}a=this._checkValues(a);this.editor.execCommand("inserthtml",w.string.substitute(this.htmlTemplate,a))},_onCloseDialog:function(){this.editor.focus()},
_getCurrentValues:function(a){if(a&&"a"===a.tagName.toLowerCase()&&w.attr(a,"name")){var b=w.attr(a,"name");var d=a.textContent||a.innerText;this.editor._sCall("selectElement",[a,!0])}else d=this.editor._sCall("getSelectedText");return{anchorInput:b||"",textInput:d||""}},_onOpenDialog:function(){if(this.editor.window.getSelection)var a=this.editor._sCall("getAncestorElement",["a"]);else a=F.range.getSelection(this.editor.window).getRangeAt(0).endContainer,3===a.nodeType&&(a=a.parentNode),a&&a.nodeName&&
"a"!==a.nodeName.toLowerCase()&&(a=this.editor._sCall("getSelectedElement",["a"]));this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(a))},_onDblClick:function(a){a&&a.target&&(a=a.target,"a"===(a.tagName?a.tagName.toLowerCase():"")&&w.attr(a,"name")&&(this.editor.onDisplayChanged(),this.editor._sCall("selectElement",[a]),setTimeout(w.hitch(this,function(){this.button.set("disabled",!1);this.button.openDropDown();this.button.dropDown.focus&&this.button.dropDown.focus()}),
10)))},_preDomFilter:function(a){w.query("a[name]:not([href])",this.editor.editNode).addClass("dijitEditorPluginInsertAnchorStyle")},_postDomFilter:function(a){a&&w.query("a[name]:not([href])",a).removeClass("dijitEditorPluginInsertAnchorStyle");return a}});w.subscribe(F._scopeName+".Editor.getPlugin",null,function(a){if(!a.plugin){var b=a.args.name;b&&(b=b.toLowerCase());"insertanchor"===b&&(a.plugin=new E)}});return E})},"dojox/editor/plugins/Blockquote":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/ToggleButton dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Blockquote".split(" "),
function(w,F,L,I){var E=w.declare("dojox.editor.plugins.Blockquote",I,{iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=w.i18n.getLocalization("dojox.editor.plugins","Blockquote");this.button=new F.form.ToggleButton({label:this._nlsResources.blockquote,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Blockquote",tabIndex:"-1",onClick:w.hitch(this,"_toggleQuote")})},setEditor:function(a){this.editor=a;this._initButton();this.connect(this.editor,
"onNormalizedDisplayChanged","updateState");a.customUndo=!0},_toggleQuote:function(a){try{var b=this.editor;b.focus();var d=this.button.get("checked"),g=F.range.getSelection(b.window),f,m,h,p;g&&0<g.rangeCount&&(f=g.getRangeAt(0));if(f){b.beginEditing();if(d)if(f.startContainer===f.endContainer){if(this._isRootInline(f.startContainer)){for(h=f.startContainer;h&&h.parentNode!==b.editNode;)h=h.parentNode;for(;h&&h.previousSibling&&(this._isTextElement(h)||1===h.nodeType&&this._isInlineFormat(this._getTagName(h)));)h=
h.previousSibling;h&&1===h.nodeType&&!this._isInlineFormat(this._getTagName(h))&&(h=h.nextSibling);if(h){var u=b.document.createElement("blockquote");w.place(u,h,"after");u.appendChild(h);for(p=u.nextSibling;p&&(this._isTextElement(p)||1===p.nodeType&&this._isInlineFormat(this._getTagName(p)));)u.appendChild(p),p=u.nextSibling}}else{for(var G=f.startContainer;(this._isTextElement(G)||this._isInlineFormat(this._getTagName(G))||"li"===this._getTagName(G))&&G!==b.editNode&&G!==b.document.body;)G=G.parentNode;
G!==b.editNode&&G!==G.ownerDocument.documentElement&&(u=b.document.createElement("blockquote"),w.place(u,G,"after"),u.appendChild(G))}u&&(b._sCall("selectElementChildren",[u]),b._sCall("collapse",[!0]))}else{var e;h=f.startContainer;for(p=f.endContainer;h&&this._isTextElement(h)&&h.parentNode!==b.editNode;)h=h.parentNode;for(e=h;e.nextSibling&&b._sCall("inSelection",[e]);)e=e.nextSibling;p=e;if(p===b.editNode||p===b.document.body){u=b.document.createElement("blockquote");w.place(u,h,"after");var l=
this._getTagName(h);if(this._isTextElement(h)||this._isInlineFormat(l))for(b=h;b&&(this._isTextElement(b)||1===b.nodeType&&this._isInlineFormat(this._getTagName(b)));)u.appendChild(b),b=u.nextSibling;else u.appendChild(h);return}p=p.nextSibling;for(e=h;e&&e!==p;){if(1===e.nodeType){if(l=this._getTagName(e),"br"!==l){if(!window.getSelection&&"p"===l&&this._isEmpty(e)){e=e.nextSibling;continue}this._isInlineFormat(l)?u||(u=b.document.createElement("blockquote"),w.place(u,e,"after")):(u&&this._isEmpty(u)&&
u.parentNode.removeChild(u),u=b.document.createElement("blockquote"),w.place(u,e,"after"));u.appendChild(e);e=u}}else this._isTextElement(e)&&(u||(u=b.document.createElement("blockquote"),w.place(u,e,"after")),u.appendChild(e),e=u);e=e.nextSibling}u&&(this._isEmpty(u)?u.parentNode.removeChild(u):(b._sCall("selectElementChildren",[u]),b._sCall("collapse",[!0])),u=null)}else if(u=!1,f.startContainer===f.endContainer){for(m=f.endContainer;m&&m!==b.editNode&&m!==b.document.body;){if("blockquote"===(m.tagName?
m.tagName.toLowerCase():"")){u=!0;break}m=m.parentNode}if(u){for(var y;m.firstChild;)y=m.firstChild,w.place(y,m,"before");m.parentNode.removeChild(m);y&&(b._sCall("selectElementChildren",[y]),b._sCall("collapse",[!0]))}}else{h=f.startContainer;for(p=f.endContainer;h&&this._isTextElement(h)&&h.parentNode!==b.editNode;)h=h.parentNode;for(f=[];h&&h.nextSibling&&b._sCall("inSelection",[h]);)h.parentNode&&"blockquote"===this._getTagName(h.parentNode)&&(h=h.parentNode),f.push(h),h=h.nextSibling;for(var B=
this._findBlockQuotes(f);B.length;){var k=B.pop();if(k.parentNode){for(;k.firstChild;)w.place(k.firstChild,k,"before");k.parentNode.removeChild(k)}}}b.endEditing()}b.onNormalizedDisplayChanged()}catch(t){}},updateState:function(){var a=this.editor,b=this.get("disabled");if(a&&a.isLoaded&&this.button&&(this.button.set("disabled",b),!b)){b=!1;var d=F.range.getSelection(a.window);if(d&&0<d.rangeCount&&(d=d.getRangeAt(0)))var g=d.endContainer;for(;g&&g!==a.editNode&&g!==a.document;){if("blockquote"===
(g.tagName?g.tagName.toLowerCase():"")){b=!0;break}g=g.parentNode}this.button.set("checked",b)}},_findBlockQuotes:function(a){var b=[];if(a){var d;for(d=0;d<a.length;d++){var g=a[d];1===g.nodeType&&("blockquote"===this._getTagName(g)&&b.push(g),g.childNodes&&0<g.childNodes.length&&(b=b.concat(this._findBlockQuotes(g.childNodes))))}}return b},_getTagName:function(a){var b="";a&&1===a.nodeType&&(b=a.tagName?a.tagName.toLowerCase():"");return b},_isRootInline:function(a){var b=this.editor;if(this._isTextElement(a)&&
a.parentNode===b.editNode||1===a.nodeType&&this._isInlineFormat(a)&&a.parentNode===b.editNode)return!0;if(this._isTextElement(a)&&this._isInlineFormat(this._getTagName(a.parentNode))){for(a=a.parentNode;a&&a!==b.editNode&&this._isInlineFormat(this._getTagName(a));)a=a.parentNode;if(a===b.editNode)return!0}return!1},_isTextElement:function(a){return a&&3===a.nodeType||4===a.nodeType?!0:!1},_isEmpty:function(a){if(a.childNodes){var b=!0,d;for(d=0;d<a.childNodes.length;d++){var g=a.childNodes[d];if(1===
g.nodeType){if("p"!==this._getTagName(g)||w.trim(g.innerHTML)){b=!1;break}}else if(this._isTextElement(g)){if((g=w.trim(g.nodeValue))&&"\x26nbsp;"!==g&&"\u00a0"!==g){b=!1;break}}else{b=!1;break}}return b}return!0},_isInlineFormat:function(a){switch(a){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "img":case "small":return!0;default:return!1}}});w.subscribe(F._scopeName+".Editor.getPlugin",
null,function(a){a.plugin||"blockquote"!==a.args.name.toLowerCase()||(a.plugin=new E({}))});return E})},"dojox/editor/plugins/UploadImage":function(){define("dojo dijit dojox dijit/_editor/_Plugin dojo/_base/connect dojo/_base/declare dojox/form/FileUploader dijit/_editor/_Plugin".split(" "),function(w,F,L,I){w.experimental("dojox.editor.plugins.UploadImage");var E=w.declare("dojox.editor.plugins.UploadImage",I,{tempImageUrl:"",iconClassPrefix:"editorIcon",useDefaultCommand:!1,uploadUrl:"",button:null,
label:"Upload",setToolbar:function(a){this.button.destroy();this.createFileInput();a.addChild(this.button)},_initButton:function(){this.command="uploadImage";this.editor.commands[this.command]="Upload Image";this.inherited("_initButton",arguments);delete this.command},updateState:function(){this.button.set("disabled",this.get("disabled"))},createFileInput:function(){var a=w.create("span",{innerHTML:"."},document.body);w.style(a,{width:"40px",height:"20px",paddingLeft:"8px",paddingRight:"8px"});this.button=
new L.form.FileUploader({isDebug:!0,uploadUrl:this.uploadUrl,uploadOnChange:!0,selectMultipleFiles:!1,baseClass:"dojoxEditorUploadNorm",hoverClass:"dojoxEditorUploadHover",activeClass:"dojoxEditorUploadActive",disabledClass:"dojoxEditorUploadDisabled"},a);this.connect(this.button,"onChange","insertTempImage");this.connect(this.button,"onComplete","onComplete")},onComplete:function(a,b,d){a=a[0];b=w.byId(this.currentImageId,this.editor.document);d=this.downloadPath?this.downloadPath+a.name:a.file;
b.src=d;w.attr(b,"_djrealurl",d);a.width&&(b.width=a.width,b.height=a.height)},insertTempImage:function(){this.currentImageId="img_"+(new Date).getTime();this.editor.execCommand("inserthtml",'\x3cimg id\x3d"'+this.currentImageId+'" src\x3d"'+this.tempImageUrl+'" width\x3d"32" height\x3d"32"/\x3e')}});w.subscribe(F._scopeName+".Editor.getPlugin",null,function(a){if(!a.plugin)switch(a.args.name){case "uploadImage":a.plugin=new E({url:a.args.url})}});return E})},"dojox/form/FileUploader":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/window dojo/_base/sniff dojo/query dojo/dom dojo/dom-style dojo/dom-geometry dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-form dojo/_base/config dijit/_base/manager dojo/io/iframe dojo/_base/Color dojo/_base/unload dijit/_Widget dijit/_TemplatedMixin dijit/_Contained dojox/embed/Flash dojox/embed/flashVars dojox/html/styles".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H,r,N,x,D){w.deprecated("dojox.form.FileUploader","Use dojox.form.Uploader","2.0");return F("dojox.form.FileUploader",[t,H,r],{swfPath:e.uploaderPath||require.toUrl("dojox/form/resources/fileuploader.swf"),templateString:'\x3cdiv\x3e\x3cdiv dojoAttachPoint\x3d"progNode"\x3e\x3cdiv dojoAttachPoint\x3d"progTextNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"insideNode" class\x3d"uploaderInsideNode"\x3e\x3c/div\x3e\x3c/div\x3e',uploadUrl:"",
isDebug:!1,devMode:!1,baseClass:"dojoxUploaderNorm",hoverClass:"dojoxUploaderHover",activeClass:"dojoxUploaderActive",disabledClass:"dojoxUploaderDisabled",force:"",uploaderType:"",flashObject:null,flashMovie:null,insideNode:null,deferredUploading:1,fileListId:"",uploadOnChange:!1,selectMultipleFiles:!0,htmlFieldName:"uploadedfile",flashFieldName:"flashUploadFiles",fileMask:null,minFlashVersion:9,tabIndex:-1,showProgress:!1,progressMessage:"Loading",progressBackgroundUrl:require.toUrl("dijit/themes/tundra/images/buttonActive.png"),
progressBackgroundColor:"#ededed",progressWidgetId:"",skipServerCheck:!1,serverTimeout:5E3,log:function(){this.isDebug&&console.log(Array.prototype.slice.call(arguments).join(" "))},constructor:function(){this._subs=[]},postMixInProperties:function(){this.fileList=[];this._cons=[];this.fileMask=this.fileMask||[];this.fileInputs=[];this.fileCount=0;this._disabled=this.flashReady=!1;this.force=this.force.toLowerCase();this.uploaderType=(N.available>=this.minFlashVersion||"flash"==this.force)&&"html"!=
this.force?"flash":"html";this.deferredUploading=!0===this.deferredUploading?1:this.deferredUploading;this._refNode=this.srcNodeRef;this.getButtonStyle()},startup:function(){},postCreate:function(){this.inherited(arguments);this.setButtonStyle();if("flash"==this.uploaderType)var q="createFlashUploader";else this.uploaderType="html",q="createHtmlUploader";this[q]();this.fileListId&&this.connect(g.byId(this.fileListId),"click",function(z){z=z.target.parentNode.parentNode.parentNode;z.id&&-1<z.id.indexOf("file_")&&
this.removeFile(z.id.split("file_")[1])});k.addOnUnload(this,this.destroy)},getHiddenNode:function(q){if(!q)return null;var z=null;for(q=q.parentNode;q&&"body"!=q.tagName.toLowerCase();){if("none"==f.get(q,"display")){z=q;break}q=q.parentNode}return z},getButtonStyle:function(){var q=this.srcNodeRef;(this._hiddenNode=this.getHiddenNode(q))&&f.set(this._hiddenNode,"display","block");if(!q&&this.button&&this.button.domNode){var z=!0;q=this.button.domNode.className+" dijitButtonNode";var O=this.getText(d(".dijitButtonText",
this.button.domNode)[0]);this.srcNodeRef=q=u.place('\x3cbutton id\x3d"'+this.button.id+'" class\x3d"'+q+'"\x3e'+O+"\x3c/button\x3e",this.button.domNode,"after");this.button.destroy();this.baseClass="dijitButton";this.hoverClass="dijitButtonHover";this.pressClass="dijitButtonActive";this.disabledClass="dijitButtonDisabled"}else!this.srcNodeRef&&this.button&&(q=this.button);h.get(q,"class")&&(this.baseClass+=" "+h.get(q,"class"));h.set(q,"class",this.baseClass);this.norm=this.getStyle(q);this.width=
this.norm.w;this.height=this.norm.h;"flash"==this.uploaderType?(this.over=this.getTempNodeStyle(q,this.baseClass+" "+this.hoverClass,z),this.down=this.getTempNodeStyle(q,this.baseClass+" "+this.activeClass,z),this.dsbl=this.getTempNodeStyle(q,this.baseClass+" "+this.disabledClass,z),this.fhtml={cn:this.getText(q),nr:this.norm,ov:this.over,dn:this.down,ds:this.dsbl}):(this.fhtml={cn:this.getText(q),nr:this.norm},"middle"==this.norm.va&&(this.norm.lh=this.norm.h));this.devMode&&(this.log("classes - base:",
this.baseClass," hover:",this.hoverClass,"active:",this.activeClass),this.log("fhtml:",this.fhtml),this.log("norm:",this.norm),this.log("over:",this.over),this.log("down:",this.down))},setButtonStyle:function(){f.set(this.domNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+"px",padding:"0px",lineHeight:"normal",position:"relative"});"html"==this.uploaderType&&"middle"==this.norm.va&&f.set(this.domNode,"lineHeight",this.norm.lh+"px");this.showProgress?(this.progTextNode.innerHTML=this.progressMessage,
f.set(this.progTextNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",lineHeight:this.fhtml.nr.h+0+"px",position:"absolute"}),f.set(this.progNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",position:"absolute",display:"none",backgroundImage:"url("+this.progressBackgroundUrl+")",backgroundPosition:"bottom",backgroundRepeat:"repeat-x",backgroundColor:this.progressBackgroundColor})):u.destroy(this.progNode);
f.set(this.insideNode,{position:"absolute",top:"0px",left:"0px",display:""});p.add(this.domNode,this.srcNodeRef.className);-1<this.fhtml.nr.d.indexOf("inline")&&p.add(this.domNode,"dijitInline");try{this.insideNode.innerHTML=this.fhtml.cn}catch(z){if("flash"==this.uploaderType){this.insideNode=this.insideNode.parentNode.removeChild(this.insideNode);a.body().appendChild(this.insideNode);this.insideNode.innerHTML=this.fhtml.cn;var q=E.connect(this,"onReady",this,function(){E.disconnect(q);this.insideNode=
this.insideNode.parentNode.removeChild(this.insideNode);this.domNode.appendChild(this.insideNode)})}else this.insideNode.appendChild(document.createTextNode(this.fhtml.cn))}this._hiddenNode&&f.set(this._hiddenNode,"display","none")},onChange:function(q){},onProgress:function(q){},onComplete:function(q){},onCancel:function(){},onError:function(q){},onReady:function(q){},onLoad:function(q){},submit:function(q){q=q?G.toObject(q):null;this.upload(q);return!1},upload:function(q){if(!this.fileList.length)return!1;
if(!this.uploadUrl)return console.warn("uploadUrl not provided. Aborting."),!1;this.showProgress||this.set("disabled",!0);if(this.progressWidgetId){var z=l.byId(this.progressWidgetId).domNode;"none"==f.get(z,"display")&&(this.restoreProgDisplay="none",f.set(z,"display","block"));"hidden"==f.get(z,"visibility")&&(this.restoreProgDisplay="hidden",f.set(z,"visibility","visible"))}q&&!q.target&&(this.postData=q);this.log("upload type:",this.uploaderType," - postData:",this.postData);for(q=0;q<this.fileList.length;q++)z=
this.fileList[q],z.bytesLoaded=0,z.bytesTotal=z.size||1E5,z.percent=0;"flash"==this.uploaderType?this.uploadFlash():this.uploadHTML();return!1},removeFile:function(q,z){var O;for(O=0;O<this.fileList.length;O++)if(this.fileList[O].name==q){z||this.fileList.splice(O,1);break}"flash"==this.uploaderType?this.flashMovie.removeFile(q):z||(u.destroy(this.fileInputs[O]),this.fileInputs.splice(O,1),this._renumberInputs());this.fileListId&&u.destroy("file_"+q)},destroy:function(){"flash"!=this.uploaderType||
this.flashMovie?(I.forEach(this._subs,E.unsubscribe,dojo),I.forEach(this._cons,E.disconnect,dojo),this.scrollConnect&&E.disconnect(this.scrollConnect),"flash"==this.uploaderType?(this.flashObject.destroy(),delete this.flashObject):(u.destroy(this._fileInput),u.destroy(this._formNode)),this.inherited(arguments)):this._cons.push(E.connect(this,"onLoad",this,"destroy"))},_displayProgress:function(q){!0===q?("flash"==this.uploaderType?f.set(this.insideNode,"top","-2500px"):f.set(this.insideNode,"display",
"none"),f.set(this.progNode,"display","")):!1===q?(f.set(this.insideNode,{display:"",top:"0"}),f.set(this.progNode,"display","none")):f.set(this.progNode,"width",q*this.fhtml.nr.w+"px")},_animateProgress:function(){this._displayProgress(!0);var q=!1,z=E.connect(this,"_complete",function(){E.disconnect(z);q=!0}),O=0,v=setInterval(L.hitch(this,function(){O+=5;O>this.fhtml.nr.w&&(O=0,q=!0);this._displayProgress(O/this.fhtml.nr.w);q&&(clearInterval(v),setTimeout(L.hitch(this,function(){this._displayProgress(!1)}),
500))}),50)},_error:function(q){"string"==typeof q&&(q=Error(q));this.onError(q)},_addToFileList:function(){if(this.fileListId){var q="";I.forEach(this.fileList,function(z){q+='\x3ctable id\x3d"file_'+z.name+'" class\x3d"fileToUpload"\x3e\x3ctr\x3e\x3ctd class\x3d"fileToUploadClose"\x3e\x3c/td\x3e\x3ctd class\x3d"fileToUploadName"\x3e'+z.name+'\x3c/td\x3e\x3ctd class\x3d"fileToUploadSize"\x3e'+(z.size?Math.ceil(.001*z.size)+"kb":"")+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"},this);g.byId(this.fileListId).innerHTML=
q}},_change:function(q){b("ie")&&I.forEach(q,function(z){z.name=z.name.split("\\")[z.name.split("\\").length-1]});this.selectMultipleFiles?this.fileList=this.fileList.concat(q):(this.fileList[0]&&this.removeFile(this.fileList[0].name,!0),this.fileList=q);this._addToFileList();this.onChange(q);this.uploadOnChange?("html"==this.uploaderType&&this._buildFileInput(),this.upload()):"html"==this.uploaderType&&this.selectMultipleFiles&&(this._buildFileInput(),this._connectInput())},_complete:function(q){q=
L.isArray(q)?q:[q];I.forEach(q,function(z){z.ERROR&&this._error(z.ERROR)},this);I.forEach(this.fileList,function(z){z.bytesLoaded=1;z.bytesTotal=1;z.percent=100;this._progress(z)},this);I.forEach(this.fileList,function(z){this.removeFile(z.name,!0)},this);this.onComplete(q);this.fileList=[];this._resetHTML();this.set("disabled",!1);this.restoreProgDisplay&&setTimeout(L.hitch(this,function(){f.set(l.byId(this.progressWidgetId).domNode,"none"==this.restoreProgDisplay?"display":"visibility",this.restoreProgDisplay)}),
500)},_progress:function(q){for(var z=0,O=0,v=0;v<this.fileList.length;v++){var c=this.fileList[v];c.name==q.name&&(c.bytesLoaded=q.bytesLoaded,c.bytesTotal=q.bytesTotal,c.percent=Math.ceil(c.bytesLoaded/c.bytesTotal*100),this.log(c.name,"percent:",c.percent));O+=Math.ceil(.001*c.bytesLoaded);z+=Math.ceil(.001*c.bytesTotal)}q=Math.ceil(O/z*100);this.progressWidgetId&&l.byId(this.progressWidgetId).update({progress:q+"%"});this.showProgress&&this._displayProgress(.01*q);this.onProgress(this.fileList)},
_getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(q){if(this._disabled!=q){if("flash"==this.uploaderType){if(!this.flashReady){var z=E.connect(this,"onLoad",this,function(){E.disconnect(z);this._setDisabledAttr(q)});return}this._disabled=q;this.flashMovie.doDisable(q)}else this._disabled=q,f.set(this._fileInput,"display",this._disabled?"none":"");p.toggle(this.domNode,this.disabledClass,q)}},_onFlashBlur:function(){this.flashMovie.blur();if(!this.nextFocusObject&&this.tabIndex)for(var q=
d("[tabIndex]"),z=0;z<q.length;z++)if(q[z].tabIndex>=Number(this.tabIndex)+1){this.nextFocusObject=q[z];break}this.nextFocusObject.focus()},_disconnect:function(){I.forEach(this._cons,E.disconnect,dojo)},uploadHTML:function(){this.selectMultipleFiles&&u.destroy(this._fileInput);this._setHtmlPostData();this.showProgress&&this._animateProgress();y.send({url:this.uploadUrl.toString(),form:this._formNode,handleAs:"json",error:L.hitch(this,function(q){this._error("HTML Upload Error:"+q.message)}),load:L.hitch(this,
function(q,z,O){this._complete(q)})})},createHtmlUploader:function(){this._buildForm();this._setFormStyle();this._buildFileInput();this._connectInput();this._styleContent();f.set(this.insideNode,"visibility","visible");this.onReady()},_connectInput:function(){this._disconnect();this._cons.push(E.connect(this._fileInput,"mouseover",this,function(q){p.add(this.domNode,this.hoverClass);this.onMouseOver(q)}));this._cons.push(E.connect(this._fileInput,"mouseout",this,function(q){setTimeout(L.hitch(this,
function(){p.remove(this.domNode,this.activeClass);p.remove(this.domNode,this.hoverClass);this.onMouseOut(q);this._checkHtmlCancel("off")}),0)}));this._cons.push(E.connect(this._fileInput,"mousedown",this,function(q){p.add(this.domNode,this.activeClass);p.remove(this.domNode,this.hoverClass);this.onMouseDown(q)}));this._cons.push(E.connect(this._fileInput,"mouseup",this,function(q){p.remove(this.domNode,this.activeClass);this.onMouseUp(q);this.onClick(q);this._checkHtmlCancel("up")}));this._cons.push(E.connect(this._fileInput,
"change",this,function(){this._checkHtmlCancel("change");var q=this._fileInput.value;q?this._change([{name:q,type:"",size:0}]):this._change([])}));0<=this.tabIndex&&h.set(this.domNode,"tabIndex",this.tabIndex)},_checkHtmlCancel:function(q){"change"==q&&(this.dialogIsOpen=!1);"up"==q&&(this.dialogIsOpen=!0);if("off"==q){if(this.dialogIsOpen)this.onCancel();this.dialogIsOpen=!1}},_styleContent:function(){var q=this.fhtml.nr;f.set(this.insideNode,{width:q.w+"px",height:"middle"==q.va?q.h+"px":"auto",
textAlign:q.ta,paddingTop:q.p[0]+"px",paddingRight:q.p[1]+"px",paddingBottom:q.p[2]+"px",paddingLeft:q.p[3]+"px"});try{f.set(this.insideNode,"lineHeight","inherit")}catch(z){}},_resetHTML:function(){"html"==this.uploaderType&&this._formNode&&(this.fileInputs=[],d("*",this._formNode).forEach(function(q){u.destroy(q)}),this.fileCount=0,this._buildFileInput(),this._connectInput())},_buildForm:function(){this._formNode||(9>b("ie")||b("ie")&&b("quirks")?(this._formNode=document.createElement('\x3cform enctype\x3d"multipart/form-data" method\x3d"post"\x3e'),
this._formNode.encoding="multipart/form-data",this._formNode.id=l.getUniqueId("FileUploaderForm"),this.domNode.appendChild(this._formNode)):this._formNode=u.create("form",{enctype:"multipart/form-data",method:"post",id:l.getUniqueId("FileUploaderForm")},this.domNode))},_buildFileInput:function(){this._fileInput&&(this._disconnect(),this._fileInput.id+=this.fileCount,f.set(this._fileInput,"display","none"));this._fileInput=document.createElement("input");this.fileInputs.push(this._fileInput);var q=
this.htmlFieldName;this.selectMultipleFiles&&(q+=this.fileCount,this.fileCount++);h.set(this._fileInput,{id:this.id,name:q,type:"file"});p.add(this._fileInput,"dijitFileInputReal");this._formNode.appendChild(this._fileInput);q=m.getMarginBox(this._fileInput);f.set(this._fileInput,{position:"relative",left:this.fhtml.nr.w-q.w+"px",opacity:0})},_renumberInputs:function(){if(this.selectMultipleFiles){var q;this.fileCount=0;I.forEach(this.fileInputs,function(z){q=this.htmlFieldName+this.fileCount;this.fileCount++;
h.set(z,"name",q)},this)}},_setFormStyle:function(){D.insertCssRule("#"+this._formNode.id+" input","font-size:"+Math.max(2,Math.max(Math.ceil(this.fhtml.nr.w/60),Math.ceil(this.fhtml.nr.h/15)))+"em");f.set(this.domNode,{overflow:"hidden",position:"relative"});f.set(this.insideNode,"position","absolute")},_setHtmlPostData:function(){if(this.postData)for(var q in this.postData)u.create("input",{type:"hidden",name:q,value:this.postData[q]},this._formNode)},uploadFlash:function(){try{if(this.showProgress){this._displayProgress(!0);
var q=E.connect(this,"_complete",this,function(){E.disconnect(q);this._displayProgress(!1)})}var z={},O;for(O in this.postData)z[O]=this.postData[O];this.flashMovie.doUpload(z)}catch(v){this._error("FileUploader - Sorry, the SWF failed to initialize."+v)}},createFlashUploader:function(){if(this.uploadUrl=this.uploadUrl.toString())if(0>this.uploadUrl.toLowerCase().indexOf("http")&&0!=this.uploadUrl.indexOf("/")){var q=window.location.href.split("/");q.pop();q=q.join("/")+"/";this.uploadUrl=q+this.uploadUrl;
this.log("SWF Fixed - Relative loc:",q," abs loc:",this.uploadUrl)}else this.log("SWF URL unmodified:",this.uploadUrl);else console.warn("Warning: no uploadUrl provided.");q={expressInstall:!0,path:this.swfPath.uri||this.swfPath,width:this.fhtml.nr.w,height:this.fhtml.nr.h,allowScriptAccess:"always",allowNetworking:"all",vars:{uploadDataFieldName:this.flashFieldName,uploadUrl:this.uploadUrl,uploadOnSelect:this.uploadOnChange,deferredUploading:this.deferredUploading||0,selectMultipleFiles:this.selectMultipleFiles,
id:this.id,isDebug:this.isDebug,devMode:this.devMode,flashButton:x.serialize("fh",this.fhtml),fileMask:x.serialize("fm",this.fileMask),noReturnCheck:this.skipServerCheck,serverTimeout:this.serverTimeout},params:{scale:"noscale",wmode:"opaque",allowScriptAccess:"always",allowNetworking:"all"}};this.flashObject=new N(q,this.insideNode);this.flashObject.onError=L.hitch(function(z){this._error("Flash Error: "+z)});this.flashObject.onReady=L.hitch(this,function(){f.set(this.insideNode,"visibility","visible");
this.log("FileUploader flash object ready");this.onReady(this)});this.flashObject.onLoad=L.hitch(this,function(z){this.flashMovie=z;this.flashReady=!0;this.onLoad(this)});this._connectFlash()},_connectFlash:function(){this._doSub("/filesSelected","_change");this._doSub("/filesUploaded","_complete");this._doSub("/filesProgress","_progress");this._doSub("/filesError","_error");this._doSub("/filesCanceled","onCancel");this._doSub("/stageBlur","_onFlashBlur");this._doSub("/up","onMouseUp");this._doSub("/down",
"onMouseDown");this._doSub("/over","onMouseOver");this._doSub("/out","onMouseOut");this.connect(this.domNode,"focus",function(){this.flashMovie.focus();this.flashMovie.doFocus()});0<=this.tabIndex&&h.set(this.domNode,"tabIndex",this.tabIndex)},_doSub:function(q,z){this._subs.push(E.subscribe(this.id+q,this,z))},urlencode:function(q){return q&&"none"!=q?q.replace(/:/g,"||").replace(/\./g,"^^").replace("url(","").replace(")","").replace(/'/g,"").replace(/"/g,""):!1},isButton:function(q){q=q.tagName.toLowerCase();
return"button"==q||"input"==q},getTextStyle:function(q){var z={};z.ff=f.get(q,"fontFamily");if(z.ff){z.ff=z.ff.replace(", ",",");z.ff=z.ff.replace(/"|'/g,"");z.ff="sans-serif"==z.ff?"Arial":z.ff;z.fw=f.get(q,"fontWeight");z.fi=f.get(q,"fontStyle");z.fs=parseInt(f.get(q,"fontSize"),10);if(-1<f.get(q,"fontSize").indexOf("%"))for(var O=q;O.tagName;){if(-1==f.get(O,"fontSize").indexOf("%")){z.fs=parseInt(f.get(O,"fontSize"),10);break}"body"==O.tagName.toLowerCase()&&(z.fs=.16*parseInt(f.get(O,"fontSize"),
10));O=O.parentNode}z.fc=(new B(f.get(q,"color"))).toHex();z.fc=parseInt(z.fc.substring(1,Infinity),16)}z.lh=f.get(q,"lineHeight");z.ta=f.get(q,"textAlign");z.ta="start"!=z.ta&&z.ta?z.ta:"left";z.va=this.isButton(q)?"middle":z.lh==z.h?"middle":f.get(q,"verticalAlign");return z},getText:function(q){q=L.trim(q.innerHTML);-1<q.indexOf("\x3c")&&(q=escape(q));return q},getStyle:function(q){var z={},O=m.getContentBox(q),v=m.getPadExtents(q);z.p=[v.t,v.w-v.l,v.h-v.t,v.l];z.w=O.w+v.w;z.h=O.h+v.h;z.d=f.get(q,
"display");O=new B(f.get(q,"backgroundColor"));z.bc=0==O.a?"#ffffff":O.toHex();z.bc=parseInt(z.bc.substring(1,Infinity),16);if(O=this.urlencode(f.get(q,"backgroundImage")))z.bi={url:O,rp:f.get(q,"backgroundRepeat"),pos:escape(f.get(q,"backgroundPosition"))},z.bi.pos||(O=f.get(q,"backgroundPositionX"),v=f.get(q,"backgroundPositionY"),z.bi.pos=escape(("left"==O?"0%":"right"==O?"100%":O)+" "+("top"==v?"0%":"bottom"==v?"100%":v)));return L.mixin(z,this.getTextStyle(q))},getTempNodeStyle:function(q,z,
O){if(O){O=u.place("\x3c"+q.tagName+"\x3e\x3cspan\x3e"+q.innerHTML+"\x3c/span\x3e\x3c/"+q.tagName+"\x3e",q.parentNode);var v=O.firstChild;p.add(v,q.className);p.add(O,z);q=this.getStyle(v)}else O=u.place("\x3c"+q.tagName+"\x3e"+q.innerHTML+"\x3c/"+q.tagName+"\x3e",q.parentNode),p.add(O,q.className),p.add(O,z),O.id=q.id,q=this.getStyle(O);u.destroy(O);return q}})})},"dojo/io/iframe":function(){define("../_base/config ../_base/json ../_base/kernel ../_base/lang ../_base/xhr ../sniff ../_base/window ../dom ../dom-construct ../query require ../aspect ../request/iframe".split(" "),
function(w,F,L,I,E,a,b,d,g,f,m,h,p){L.deprecated("dojo/io/iframe","Use dojo/request/iframe.","2.0");a=p._iframeName;a=a.substring(0,a.lastIndexOf("_"));var u=I.delegate(p,{create:function(){return u._frame=p.create.apply(p,arguments)},get:null,post:null,send:function(G){var e=E._ioSetArgs(G,function(H){t&&t.cancel()},function(H){var r=null;H=H.ioArgs;try{var N=H.handleAs;"xml"===N||"html"===N?r=t.response.data:(r=t.response.text,"json"===N?r=F.fromJson(r):"javascript"===N&&(r=L.eval(r)))}catch(x){r=
x}return r},function(H,r){r.ioArgs._hasError=!0;return H}),l=e.ioArgs,y="GET",B=d.byId(G.form);G.method&&"POST"===G.method.toUpperCase()&&B&&(y="POST");G={method:y,handleAs:"json"===G.handleAs||"javascript"===G.handleAs?"text":G.handleAs,form:G.form,query:B?null:G.content,data:B?G.content:null,timeout:G.timeout,ioArgs:l};G.method&&(G.method=G.method.toUpperCase());if(w.ioPublish&&L.publish&&!1!==l.args.ioPublish)var k=h.after(p,"_notifyStart",function(H){H.options.ioArgs===l&&(k.remove(),E._ioNotifyStart(e))},
!0);var t=p(l.url,G,!0);l._callNext=t._callNext;t.then(function(){e.resolve(e)}).otherwise(function(H){e.ioArgs.error=H;e.reject(H)});return e},_iframeOnload:b.global[a+"_onload"]});I.setObject("dojo.io.iframe",u);return u})},"dojox/embed/Flash":function(){define("dojo/_base/lang dojo/_base/unload dojo/_base/array dojo/query dojo/has dojo/dom dojo/on dojo/window dojo/string".split(" "),function(w,F,L,I,E,a,b,d,g){function f(e){e=w.delegate(h,e);if(!("path"in e))return console.error("dojox.embed.Flash(ctor):: no path reference to a Flash movie was provided."),
null;"id"in e||(e.id="dojox-embed-flash-"+m++);return e}var m=0,h={expressInstall:!1,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};if(E("ie")){var p=function(e){e=f(e);if(!e)return null;var l,y=e.path;if(e.vars){var B=[];for(l in e.vars)B.push(encodeURIComponent(l)+"\x3d"+encodeURIComponent(e.vars[l]));e.params.FlashVars=B.join("\x26");delete e.vars}y='\x3cobject id\x3d"'+g.escape(String(e.id))+'" classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width\x3d"'+
g.escape(String(e.width))+'" height\x3d"'+g.escape(String(e.height))+'"'+(e.style?' style\x3d"'+g.escape(String(e.style))+'"':"")+'\x3e\x3cparam name\x3d"movie" value\x3d"'+g.escape(String(y))+'" /\x3e';if(e.params)for(l in e.params)y+='\x3cparam name\x3d"'+g.escape(l)+'" value\x3d"'+g.escape(String(e.params[l]))+'" /\x3e';return{id:e.id,markup:y+"\x3c/object\x3e"}};var u=function(){for(var e=10,l=null;!l&&7<e;)try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+e--)}catch(y){}return l?(e=l.GetVariable("$version").split(" ")[1].split(","),
{major:null!=e[0]?parseInt(e[0]):0,minor:null!=e[1]?parseInt(e[1]):0,rev:null!=e[2]?parseInt(e[2]):0}):{major:0,minor:0,rev:0}}();F.addOnWindowUnload(function(){console.warn("***************UNLOAD");var e=function(){};I("object").reverse().style("display","none").forEach(function(l){for(var y in l)if("FlashVars"!=y&&"function"==typeof l[y])try{l[y]=e}catch(B){}})})}else p=function(e){e=f(e);if(!e)return null;var l,y=e.path;if(e.vars){var B=[];for(l in e.vars)B.push(encodeURIComponent(l)+"\x3d"+encodeURIComponent(e.vars[l]));
e.params.flashVars=B.join("\x26");delete e.vars}y='\x3cembed type\x3d"application/x-shockwave-flash" src\x3d"'+g.escape(String(y))+'" id\x3d"'+g.escape(String(e.id))+'" width\x3d"'+g.escape(String(e.width))+'" height\x3d"'+g.escape(String(e.height))+'"'+(e.style?' style\x3d"'+g.escape(String(e.style))+'" ':"")+'pluginspage\x3d"'+window.location.protocol+'//www.adobe.com/go/getflashplayer" ';if(e.params)for(l in e.params)y+=" "+g.escape(l)+'\x3d"'+g.escape(String(e.params[l]))+'"';return{id:e.id,markup:y+
" /\x3e"}},u=function(){var e=navigator.plugins["Shockwave Flash"];return e&&e.description?(e=e.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."),{major:null!=e[0]?parseInt(e[0]):0,minor:null!=e[1]?parseInt(e[1]):0,rev:null!=e[2]?parseInt(e[2]):0}):{major:0,minor:0,rev:0}}();var G=function(e,l){if(-1<location.href.toLowerCase().indexOf("file://"))throw Error("dojox.embed.Flash can't be run directly from a file. To instatiate the required SWF correctly it must be run from a server, like localHost.");
this.available=u.major;this.minimumVersion=e.minimumVersion||9;this.domNode=this.movie=this.id=null;l&&(l=a.byId(l));setTimeout(w.hitch(this,function(){if(e.expressInstall||this.available&&this.available>=this.minimumVersion)if(e&&l)this.init(e,l);else this.onError("embed.Flash was not provided with the proper arguments.");else if(this.available)this.onError("Flash version detected: "+this.available+" is out of date. Minimum required: "+this.minimumVersion);else this.onError("Flash is not installed.")}),
100)};w.extend(G,{onReady:function(e){},onLoad:function(e){},onError:function(e){},_onload:function(){clearInterval(this._poller);delete this._poller;delete this._pollCount;delete this._pollMax;this.onLoad(this.movie)},init:function(e,l){this.destroy();l=a.byId(l||this.domNode);if(!l)throw Error("dojox.embed.Flash: no domNode reference has been passed.");var y=0;this._poller=null;this._pollCount=0;this._pollMax=15;this.pollTime=100;G.initialized&&(this.id=G.place(e,l),this.domNode=l,setTimeout(w.hitch(this,
function(){this.movie=this.byId(this.id,e.doc);this.onReady(this.movie);this._poller=setInterval(w.hitch(this,function(){try{y=this.movie.PercentLoaded()}catch(B){console.warn("this.movie.PercentLoaded() failed",B,this.movie)}if(100==y)this._onload();else if(0==y&&this._pollCount++>this._pollMax)throw clearInterval(this._poller),Error("Building SWF failed.");}),this.pollTime)}),1))},_destroy:function(){try{this.domNode.removeChild(this.movie)}catch(e){}this.id=this.movie=this.domNode=null},destroy:function(){if(this.movie){var e=
w.delegate({id:!0,movie:!0,domNode:!0,onReady:!0,onLoad:!0}),l;for(l in this)e[l]||delete this[l];this._poller?b(this,"Load",this,"_destroy"):this._destroy()}},byId:function(e,l){l=l||document;return l.embeds[e]?l.embeds[e]:l[e]?l[e]:window[e]?window[e]:document[e]?document[e]:null}});w.mixin(G,{minSupported:8,available:u.major,supported:u.major>=u.required,minimumRequired:u.required,version:u,initialized:!1,onInitialize:function(){G.initialized=!0},__ie_markup__:function(e){return p(e)},proxy:function(e,
l){L.forEach(l instanceof Array?l:[l],function(y){this[y]=w.hitch(this,function(){return function(){return eval(this.movie.CallFunction('\x3cinvoke name\x3d"'+y+'" returntype\x3d"javascript"\x3e\x3carguments\x3e'+L.map(arguments,function(B){return __flash__toXML(B)}).join("")+"\x3c/arguments\x3e\x3c/invoke\x3e"))}.apply(this,arguments||[])})},e)}});G.place=function(e,l){e=p(e);l=a.byId(l);l||(l=d.doc.createElement("div"),l.id=e.id+"-container",d.body().appendChild(l));return e?(l.innerHTML=e.markup,
e.id):null};G.onInitialize();w.setObject("dojox.embed.Flash",G);return G})},"dojox/embed/flashVars":function(){define(["dojo"],function(w){w.deprecated("dojox.embed.flashVars","Will be removed in 2.0","2.0");var F={serialize:function(L,I){var E=function(g){"string"==typeof g&&(g=g.replace(/;/g,"_sc_"),g=g.replace(/\./g,"_pr_"),g=g.replace(/:/g,"_cl_"));return g},a=dojox.embed.flashVars.serialize,b="";if(w.isArray(I)){for(var d=0;d<I.length;d++)b+=a(L+"."+d,E(I[d]))+";";return b.replace(/;{2,}/g,";")}if(w.isObject(I)){for(d in I)b+=
a(L+"."+d,E(I[d]))+";";return b.replace(/;{2,}/g,";")}return L+":"+I}};w.setObject("dojox.embed.flashVars",F);return F})},"dojox/html/styles":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(w,F,L,I){var E=w.getObject("dojox.html",!0),a={},b={},d=[];E.insertCssRule=function(g,f,m){m=E.getDynamicStyleSheet(m);var h=g+" {"+f+"}";console.log("insertRule:",h);I("ie")?(m.cssText+=h,console.log("ss.cssText:",m.cssText)):m.sheet?m.sheet.insertRule(h,
m._indicies.length):m.appendChild(L.doc.createTextNode(h));m._indicies.push(g+" "+f);return g};E.removeCssRule=function(g,f,m){var h=-1,p,u;for(p in a)if(!m||m===p){var G=a[p];for(u=0;u<G._indicies.length;u++)if(g+" "+f===G._indicies[u]){h=u;break}if(-1<h)break}if(!G)return console.warn("No dynamic style sheet has been created from which to remove a rule."),!1;if(-1===h)return console.warn("The css rule was not found and could not be removed."),!1;G._indicies.splice(h,1);I("ie")?G.removeRule(h):G.sheet&&
G.sheet.deleteRule(h);return!0};E.modifyCssRule=function(g,f,m){};E.getStyleSheet=function(g){if(a[g||"default"])return a[g||"default"];if(!g)return!1;var f=E.getStyleSheets();if(f[g])return E.getStyleSheets()[g];for(var m in f)if(f[m].href&&-1<f[m].href.indexOf(g))return f[m];return!1};E.getDynamicStyleSheet=function(g){g||(g="default");a[g]||(L.doc.createStyleSheet?(a[g]=L.doc.createStyleSheet(),9>I("ie")&&(a[g].title=g)):(a[g]=L.doc.createElement("style"),a[g].setAttribute("type","text/css"),L.doc.getElementsByTagName("head")[0].appendChild(a[g]),
console.log(g," ss created: ",a[g].sheet)),a[g]._indicies=[]);return a[g]};E.enableStyleSheet=function(g){if(g=E.getStyleSheet(g))g.sheet?g.sheet.disabled=!1:g.disabled=!1};E.disableStyleSheet=function(g){if(g=E.getStyleSheet(g))g.sheet?g.sheet.disabled=!0:g.disabled=!0};E.activeStyleSheet=function(g){var f=E.getToggledStyleSheets(),m;if(1===arguments.length)F.forEach(f,function(h){h.disabled=h.title===g?!1:!0});else for(m=0;m<f.length;m++)if(!1===f[m].disabled)return f[m];return!0};E.getPreferredStyleSheet=
function(){};E.getToggledStyleSheets=function(){var g;if(!d.length){var f=E.getStyleSheets();for(g in f)f[g].title&&d.push(f[g])}return d};E.getStyleSheets=function(){if(b.collected)return b;F.forEach(L.doc.styleSheets,function(g){var f=g.sheet?g.sheet:g;g=f.title||f.href;if(I("ie"))-1===f.cssText.indexOf("#default#VML")&&(f.href?b[g]=f:f.imports.length?F.forEach(f.imports,function(m){b[m.title||m.href]=m}):b[g]=f);else{b[g]=f;b[g].id=f.ownerNode.id;g=[];try{g=f[f.cssRules?"cssRules":"rules"]}catch(m){console.warn("Reading css rules from stylesheet "+
f.href+" is forbidden due to same-origin policy. See http://www.w3.org/TR/CSP/#cascading-style-sheet-css-parsing",f)}F.forEach(g,function(m){m.href&&(b[m.href]=m.styleSheet,b[m.href].id=f.ownerNode.id)})}});b.collected=!0;return b};return E})},"jimu/dijit/EditorChooseImage":function(){define("dojo dijit dijit/_editor/_Plugin jimu/dijit/ImageChooser dojo/_base/html dojo/_base/lang dojo/i18n dojo/_base/connect dojo/_base/declare".split(" "),function(w,F,L,I,E,a,b){w.experimental("dojox.editor.plugins.ChooseImage");
var d=w.declare("dojox.editor.plugins.ChooseImage",L,{iconClassPrefix:"editorIcon",useDefaultCommand:!1,_initButton:function(){this.createFileInput();this.command="chooseImage";var g=b.getLocalization("dijit._editor","commands");this.button=new F.form.Button({label:g.insertImage,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"UploadImage",tabIndex:"-1",onClick:a.hitch(this,this._chooseImage)});this.button.set("readOnly",!1);this.editor.commands[this.command]="Upload Image";this.inherited("_initButton",
arguments);delete this.command},updateState:function(){var g=this.get("disabled");this.button.set("disabled",this.get("disabled"));!0===g?(E.addClass(this.button,"dijitButtonDisabled"),this.imageChooser.disableChooseImage()):(E.removeClass(this.button,"dijitButtonDisabled"),this.imageChooser.enableChooseImage())},createFileInput:function(){var g=w.create("span",{innerHTML:"."},document.body);this.imageChooser=new I({showSelfImg:!1,cropImage:!1,format:[I.GIF,I.JPEG,I.PNG]},g);this.connect(this.imageChooser,
"onImageChange","insertTempImage")},_chooseImage:function(){E.setStyle(this.imageChooser.domNode,"display","none");this.imageChooser.triggerImgUpload()},onComplete:function(g){g=g[0];var f=w.byId(this.currentImageId,this.editor.document);var m=this.downloadPath?this.downloadPath+g.name:g.file;f.src=m;w.attr(f,"_djrealurl",m);g.width&&(f.width=g.width,f.height=g.height)},insertTempImage:function(g,f){f=f&&f.fileName?'alt\x3d"'+f.fileName+'"':"";this.currentImageId="img_"+(new Date).getTime();this.editor.execCommand("inserthtml",
'\x3cimg id\x3d"'+this.currentImageId+'" src\x3d"'+g+'" '+f+"/\x3e")},destroy:function(){this.imageChooser&&this.imageChooser.destroy();this.inherited(arguments)}});w.subscribe(F._scopeName+".Editor.getPlugin",null,function(g){if(!g.plugin)switch(g.args.name){case "chooseImage":g.plugin=new d({url:g.args.url})}});L.registry.chooseImage=function(g){return new d(g)};return d})},"jimu/dijit/EditorTextColor":function(){define("require dojo dijit dojo/_base/declare dijit/_editor/_Plugin dijit/form/DropDownButton".split(" "),
function(w,F,L,I,E,a){F.experimental("dijit.editor.plugins.EditorTextColor");var b=I("dijit.editor.plugins.EditorTextColor",E,{buttonClass:a,colorPicker:"jimu/dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command="editorTextColor";this.hackCommand="foreColor";this.inherited(arguments);var d="",g=!1;this.params.custom&&(this.params.custom.recordUID&&(d=this.params.custom.recordUID),this.params.custom.forceAttr&&(g=this.params.custom.forceAttr));var f=this;this.button.set("iconClass",
this.iconClassPrefix+" "+this.iconClassPrefix+"ForeColor");this.button.set("title",this.getLabel(this.hackCommand));this.button.loadDropDown=function(m){function h(p){f.button.dropDown=new p({dir:f.editor.dir,ownerDocument:f.editor.ownerDocument,value:f.value,appearance:{showTransparent:!1,showColorPalette:!0,showCoustom:!0,showColorPickerApply:!1,showCoustomRecord:!0},recordUID:d,onChange:function(u){f.editor.execCommand("useCSS",g);f.editor.execCommand("styleWithCSS",!g);f.editor.execCommand(f.hackCommand,
u)},onClose:function(){f.button.closeDropDown()}});m()}"string"===typeof f.colorPicker?w([f.colorPicker],h):h(f.colorPicker)}},updateState:function(){var d=this.editor,g=this.hackCommand;if(d&&d.isLoaded&&g.length){if(this.button){var f=this.get("disabled");this.button.set("disabled",f);if(f)return;try{var m=d.queryCommandValue(g)||""}catch(h){m=""}}""===m?m="#000000":"transparent"===m&&(m="rgba(0, 0, 0, 0)");this.value=m;(d=this.button.dropDown)&&d.getColor&&m!==d.getColor()&&(d.refreshRecords(),
d.setColor(m))}}});F.subscribe(L._scopeName+".Editor.getPlugin",null,function(d){if(!d.plugin)switch(d.args.name){case "editorTextColor":d.plugin=new b}});return b})},"jimu/dijit/EditorBackgroundColor":function(){define("require dojo dijit dojo/_base/declare dijit/_editor/_Plugin dijit/form/DropDownButton".split(" "),function(w,F,L,I,E,a){F.experimental("dijit.editor.plugins.EditorBackgroundColor");var b=I("dijit.editor.plugins.EditorBackgroundColor",E,{buttonClass:a,colorPicker:"jimu/dijit/ColorPalette",
useDefaultCommand:!1,_initButton:function(){this.command="editorBackgroundColor";this.hackCommand="hiliteColor";this.inherited(arguments);var d="";this.params.custom&&this.params.custom.recordUID&&(d=this.params.custom.recordUID);var g=this;this.button.set("iconClass",this.iconClassPrefix+" "+this.iconClassPrefix+"HiliteColor");this.button.set("title",this.getLabel(this.hackCommand));this.button.loadDropDown=function(f){function m(h){g.button.dropDown=new h({dir:g.editor.dir,ownerDocument:g.editor.ownerDocument,
value:g.value,appearance:{showTransparent:!0,showColorPalette:!0,showCoustom:!0,showColorPickerOK:!0,showColorPickerApply:!1,showCoustomRecord:!0},recordUID:d,onChange:function(p){g.editor.execCommand("useCSS",!1);g.editor.execCommand("styleWithCSS",!0);g.editor.execCommand(g.hackCommand,p)},onExecute:function(){g.editor.execCommand(g.hackCommand,this.get("value"))},onClose:function(){g.button.closeDropDown()}});f()}"string"===typeof g.colorPicker?w([g.colorPicker],m):m(g.colorPicker)}},updateState:function(){var d=
this.editor,g=this.hackCommand;if(d&&d.isLoaded&&g.length){if(this.button){var f=this.get("disabled");this.button.set("disabled",f);if(f)return;try{var m=d.queryCommandValue(g)||""}catch(h){m=""}}""===m?m="#000000":"transparent"===m&&(m="rgba(0, 0, 0, 0)");this.value=m;(d=this.button.dropDown)&&d.getColor&&m!==d.getColor()&&(d.refreshRecords(),d.setColor(m))}}});F.subscribe(L._scopeName+".Editor.getPlugin",null,function(d){if(!d.plugin)switch(d.args.name){case "editorBackgroundColor":d.plugin=new b}});
return b})},"widgets/NetworkTrace/setting/projectSetting":function(){define("dojo/_base/declare dojo/Evented dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./projectSetting.html dojo/_base/lang dojo/on dojo/_base/array jimu/dijit/Message".split(" "),function(w,F,L,I,E,a,b,d,g,f){return w([L,F,I,E],{templateString:a,baseClass:"jimu-widget-NetworkTrace-setting",projectPolygonLayerOptions:[],projectPointLayerOptions:[],outputParametersOptions:[],startup:function(){this.inherited(arguments)},
postCreate:function(){this._defaultSelectOption={value:"",label:this.nls.projectSetting.selectLabel};this.outputParametersOptions=[b.clone(this._defaultSelectOption)];this.projectPolygonLayerOptions=[b.clone(this._defaultSelectOption)];this.projectPointLayerOptions=[b.clone(this._defaultSelectOption)];this.layers=this.map.itemInfo.itemData.operationalLayers;0<this.layers.length&&this._getLayerOptions(this.layers);this.populateLayerOptions();this.populateOutParams();this.own(d(this.polygonLayerHelp,
"click",b.hitch(this,function(){this._showMessage(this.nls.projectSetting.polygonLayerHelp)})));this.own(d(this.outputParameterHelp,"click",b.hitch(this,function(){this._showMessage(this.nls.projectSetting.outputParameterHelp)})));this.own(d(this.pointLayerHelp,"click",b.hitch(this,function(){this._showMessage(this.nls.projectSetting.pointLayerHelp)})));this.setProjectSettings(this.config)},enableDisableProjectSettings:function(m){m||(this.projetPolygonLayerSelect.set("value",""),this.projectPointLayerSelect.set("value",
""),this.outputParameters.set("value",""));this.projetPolygonLayerSelect.set("disabled",!m);this.projectPointLayerSelect.set("disabled",!m);this.outputParameters.set("disabled",!m)},getProjectSettings:function(){var m="",h="",p="";this.projetPolygonLayerSelect&&(m=this._getSelectedOptionValue(this.projetPolygonLayerSelect));this.projectPointLayerSelect&&(h=this._getSelectedOptionValue(this.projectPointLayerSelect));this.outputParameters&&(p=this._getSelectedOptionValue(this.outputParameters));return{polygonLayerId:m,
pointLayerId:h,outputParamName:p}},setProjectSettings:function(m){m&&(this.projetPolygonLayerSelect&&m.polygonLayerId&&this.projetPolygonLayerSelect.set("value",m.polygonLayerId),this.projectPointLayerSelect&&m.pointLayerId&&this.projectPointLayerSelect.set("value",m.pointLayerId),this.outputParameters&&m.outputParamName&&this.outputParameters.set("value",m.outputParamName))},_getSelectedOptionValue:function(m){var h="";m&&m.options&&1<m.options.length&&g.some(m.options,function(p){if(p.selected)return h=
p.value,!0});return h},_showMessage:function(m){(new f({message:m})).message=m},_getLayerOptions:function(m){var h;g.forEach(m,b.hitch(this,function(p){p&&p.layerObject&&p.layerObject.capabilities&&((h=p.layerObject.capabilities)&&h.indexOf&&-1<h.indexOf("Create")&&-1<h.indexOf("Delete")&&-1<h.indexOf("Update")&&"esriGeometryPolygon"===p.layerObject.geometryType&&this._isValidProjectPolygonLayer(p)&&this.projectPolygonLayerOptions.push({value:p.id,label:p.title}),h&&h.indexOf&&-1<h.indexOf("Create")&&
-1<h.indexOf("Delete")&&-1<h.indexOf("Update")&&"esriGeometryPoint"===p.layerObject.geometryType&&this._isValidProjectPointLayer(p)&&this.projectPointLayerOptions.push({value:p.id,label:p.title}))}))},populateLayerOptions:function(){0<this.projectPolygonLayerOptions.length&&(this.projetPolygonLayerSelect.set("options",this.projectPolygonLayerOptions),this.projetPolygonLayerSelect.set("value",this.projetPolygonLayerSelect.options[0]));0<this.projectPointLayerOptions.length&&(this.projectPointLayerSelect.set("options",
this.projectPointLayerOptions),this.projectPointLayerSelect.set("value",this.projectPointLayerSelect.options[0]))},_isValidProjectPolygonLayer:function(m){var h;m=m.layerObject.fields;var p=[];for(h in m){var u=m[h].type;var G=m[h].name.toLowerCase();("name"===G&&"esriFieldTypeString"===u||"esriFieldTypeGlobalID"===u)&&p.push(G)}return 2<=p.length?!0:!1},_isValidProjectPointLayer:function(m){var h;m=m.layerObject.fields;var p=[];for(h in m){var u=m[h].type;var G=m[h].name.toLowerCase();("inputtype"===
G&&"esriFieldTypeString"===u||"projectid"===G&&"esriFieldTypeGUID"===u)&&p.push(G)}return 2===p.length?!0:!1},populateOutParams:function(){var m=[b.clone(this._defaultSelectOption)];g.forEach(this.outputParametersArray,b.hitch(this,function(h){"esriGeometryPolygon"===h.defaultValue.geometryType&&"esriGPParameterDirectionOutput"===h.direction&&m.push({label:h.displayName,value:h.name})}));this.outputParameters.set("options",m);this.outputParameters.set("value",this.outputParameters.options[0])},projectSettingsChanged:function(){this.emit("settingsChanged",
this.getProjectSettings())}})})},"widgets/NetworkTrace/setting/_build-generate_module":function(){define(["dojo/text!./Setting.html","dojo/text!./css/style.css","dojo/i18n!./nls/strings"],function(){})},"url:jimu/dijit/templates/GpSource.html":'\x3cdiv\x3e\r\n  \x3cdiv style\x3d"display: flex;"\x3e\r\n    \x3cdiv\x3e\r\n      \x3cinput name\x3d"gpsource_mode" id\x3d"gpsource_fromportal_${uniqueID}" data-dojo-attach-point\x3d"portalRadio" data-dojo-type\x3d"dijit/form/RadioButton"/\x3e\r\n      \x3clabel for\x3d"gpsource_fromportal_${uniqueID}" data-dojo-attach-point\x3d"portalLabel"\x3e${nls.selectFromPortal}\x3c/label\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv style\x3d"margin-left: 20px;"\x3e\r\n      \x3cinput name\x3d"gpsource_mode" id\x3d"gpsource_fromurl_${uniqueID}" data-dojo-attach-point\x3d"urlRadio" data-dojo-type\x3d"dijit/form/RadioButton"/\x3e\r\n      \x3clabel for\x3d"gpsource_fromurl_${uniqueID}" data-dojo-attach-point\x3d"urlLabel"\x3e${nls.addServiceUrl}\x3c/label\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"source-content"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"operationTip" class\x3d"operation-tip"\x3e\x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"hflcContainer" class\x3d"dijit-container hflc-container" style\x3d"display:none;"\x3e\x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"flscContainer" class\x3d"dijit-container flsc-container" style\x3d"display:none;"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
"url:jimu/dijit/templates/GpChooserFromPortal.html":'\x3cdiv\x3e\r\n\t\x3cdiv class\x3d"selector-container" data-dojo-attach-point\x3d"selectorContainer"\x3e\x3c/div\x3e\r\n\t\x3cdiv class\x3d"layers" data-dojo-attach-point\x3d"browserContainer"\x3e\r\n\t\t\x3cdiv data-dojo-type\x3d"jimu/dijit/GpServiceBrowser" data-dojo-attach-point\x3d"gpServiceBrowser"\x3e\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv class\x3d"footer"\x3e\r\n\t\t\x3cdiv class\x3d"jimu-btn  jimu-float-trailing cancel" data-dojo-attach-point\x3d"btnCancel" data-dojo-attach-event\x3d"onclick:_onBtnCancelClicked"\x3e${nls.cancel}\x3c/div\x3e\r\n\t\t\x3cdiv class\x3d"jimu-btn  jimu-float-trailing next jimu-state-disabled" data-dojo-attach-point\x3d"btnNext" data-dojo-attach-event\x3d"onclick:_onBtnNextClicked"\x3e${nls.next}\x3c/div\x3e\r\n\t\t\x3cdiv class\x3d"jimu-btn  jimu-float-trailing ok jimu-state-disabled" data-dojo-attach-point\x3d"btnOk" data-dojo-attach-event\x3d"onclick:_onBtnOkClicked"\x3e${nls.ok}\x3c/div\x3e\r\n\t\t\x3cdiv class\x3d"jimu-btn  jimu-float-trailing back" data-dojo-attach-point\x3d"btnBack" data-dojo-attach-event\x3d"onclick:_onBtnBackClicked"\x3e${nls.back}\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\x3c/div\x3e',
"url:jimu/dijit/templates/ItemSelector.html":'\r\n\x3cdiv\x3e\r\n\t\x3cdiv class\x3d"setting-tab-container"\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"tabNode"\x3e\x3c/div\x3e\r\n\r\n\t\t\x3cdiv class\x3d"tab-content mycontent-tab" data-dojo-attach-point\x3d"mycontentTabNode"\x3e\r\n\t\t\t\x3cdiv class\x3d"tab-content-main mycontent-tab-content-main"\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"mycontentSearch" data-dojo-type\x3d"jimu/dijit/Search" data-dojo-props\x3d\'searchWhenInput:false\' data-dojo-attach-event\x3d"onSearch:_onMyContentSearch" style\x3d"position:absolute;width:100%;top:0;"\x3e\x3c/div\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"mycontentItemTable" data-dojo-type\x3d"jimu/dijit/_ItemTable" data-dojo-props\x3d\'types:${_itemTypes},typeKeywords:${_typeKeywords}\' style\x3d"top:50px;"\x3e\x3c/div\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\x3c/div\x3e\r\n\r\n\t\t\x3cdiv class\x3d"tab-content organization-tab" data-dojo-attach-point\x3d"organizationTabNode"\x3e\r\n\t\t\t\x3cdiv class\x3d"tab-content-main organization-tab-content-main"\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"organizationSearch" data-dojo-type\x3d"jimu/dijit/Search" data-dojo-props\x3d\'searchWhenInput:false\' data-dojo-attach-event\x3d"onSearch:_onOrganizationSearch" style\x3d"position:absolute;width:100%;top:0;"\x3e\x3c/div\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"organizationItemTable" data-dojo-type\x3d"jimu/dijit/_ItemTable" data-dojo-props\x3d\'types:${_itemTypes},typeKeywords:${_typeKeywords}\' style\x3d"top:50px;"\x3e\x3c/div\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\x3c/div\x3e\r\n\r\n\t\t\x3cdiv class\x3d"tab-content group-tab" data-dojo-attach-point\x3d"groupTabNode"\x3e\r\n\t\t\t\x3cdiv class\x3d"tab-content-main group-tab-content-main"\x3e\r\n\t\t\t\t\x3cdiv class\x3d"groups-section" data-dojo-attach-point\x3d"groupsSection"\x3e\r\n\t\t\t\t\t\x3cdiv\x3e${nls.groups}:\x3c/div\x3e\r\n\t\t\t\t\t\x3cselect class\x3d"groups-select" data-dojo-attach-point\x3d"groupsSelect"\x3e\r\n\t\t\t\t\t\t\x3coption value\x3d"nodata"\x3e${nls.noneGroups}\x3c/option\x3e\r\n\t\t\t\t\t\x3c/select\x3e\r\n\t\t\t\t\x3c/div\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"groupSearch" data-dojo-type\x3d"jimu/dijit/Search" data-dojo-props\x3d\'searchWhenInput:false\' data-dojo-attach-event\x3d"onSearch:_onGroupSearch" style\x3d"position:absolute;width:100%;top:0;"\x3e\x3c/div\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"groupItemTable" data-dojo-type\x3d"jimu/dijit/_ItemTable" data-dojo-props\x3d\'types:${_itemTypes},typeKeywords:${_typeKeywords}\' style\x3d"top:85px;"\x3e\x3c/div\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\x3c/div\x3e\r\n\r\n\t\t\x3cdiv class\x3d"tab-content public-tab" data-dojo-attach-point\x3d"publicTabNode"\x3e\r\n\t\t\t\x3cdiv class\x3d"tab-content-main public-tab-content-main"\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"publicSearch" data-dojo-type\x3d"jimu/dijit/Search" data-dojo-props\x3d\'searchWhenInput:false\' data-dojo-attach-event\x3d"onSearch:_onPublicSearch" style\x3d"position:absolute;width:100%;top:0;"\x3e\x3c/div\x3e\r\n\t\t\t\t\x3cdiv class\x3d"public-search-radios"\x3e\r\n\t\t\t\t\t\x3cfieldset id\x3d"publicSearchRaido"\x3e\r\n\t\t\t\t\t\t\x3cinput data-dojo-attach-point\x3d"portalPublicRaido" data-dojo-type\x3d"dijit/form/RadioButton" \r\n\t\t\t\t\t\t\tdata-label-id\x3d"portalPublicRaido" name\x3d"publicSearchRaido" class\x3d"jimu-float-leading portal-public-radio" /\x3e\r\n\t\t\t\t\t\t\x3clabel data-dojo-attach-point\x3d"portalPublicLabel" data-label-for\x3d"portalPublicRaido" class\x3d"jimu-float-leading portal-public-label"\x3ePortal\x3c/label\x3e\r\n\r\n\t\t\t\t\t\t\x3cinput data-dojo-attach-point\x3d"onlinePublicRaido" data-dojo-type\x3d"dijit/form/RadioButton"\r\n\t\t\t\t\t\t\tdata-label-id\x3d"onlinePublicRaido" name\x3d"publicSearchRaido" class\x3d"jimu-float-leading online-public-radio" /\x3e\r\n\t\t\t\t\t\t\x3clabel data-dojo-attach-point\x3d"onlinePublicLabel" data-label-for\x3d"onlinePublicRaido" class\x3d"jimu-float-leading portal-public-label"\x3eArcGIS Online\x3c/label\x3e\r\n\t\t\t\t\t\x3c/fieldset\x3e\r\n\t\t\t\t\x3c/div\x3e\r\n\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"publicItemSection" class\x3d"public-item-section"\x3e\r\n\t\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"publicPortalItemTable" data-dojo-type\x3d"jimu/dijit/_ItemTable" data-dojo-props\x3d\'types:${_itemTypes},typeKeywords:${_typeKeywords}\'\x3e\x3c/div\x3e\r\n\t\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"publicOnlineItemTable" data-dojo-type\x3d"jimu/dijit/_ItemTable" data-dojo-props\x3d\'types:${_itemTypes},typeKeywords:${_typeKeywords}\'\x3e\x3c/div\x3e\r\n\t\t\t\t\x3c/div\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv class\x3d"signin-section" data-dojo-attach-point\x3d"signinSection" style\x3d"display:none;"\x3e\r\n\t\t\x3cdiv class\x3d"signin-tip"\x3e${nls.signInTip}\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\x3c/div\x3e',
"url:jimu/dijit/templates/_ItemTable.html":'\x3cdiv\x3e\r\n\t\x3cdiv class\x3d"items-section all-items-section" data-dojo-attach-point\x3d"allItemsSection"\x3e\r\n\t\t\x3cdiv class\x3d"items-table-div" data-dojo-attach-point\x3d"allItemsTableDiv" data-dojo-attach-event\x3d"onscroll:_onAllItemsSectionScroll"\x3e\r\n\t\t\t\x3ctable class\x3d"items-table" cellpadding\x3d"10" data-dojo-attach-point\x3d"allItemsTable" data-dojo-attach-event\x3d"onclick:_onItemsTableClicked"\x3e\r\n\t\t\t\t\x3ctbody data-dojo-attach-point\x3d"allItemTbody"\x3e\x3c/tbody\x3e\r\n\t\t\t\x3c/table\x3e\r\n\t\t\x3c/div\x3e\r\n\t\t\x3cdiv data-dojo-type\x3d"jimu/dijit/LoadingIndicator" data-dojo-attach-point\x3d"allItemsShelter" data-dojo-props\x3d\'hidden:true\'\x3e\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv class\x3d"items-section filtered-items-section" data-dojo-attach-point\x3d"filteredItemsSection"\x3e\r\n\t\t\x3cdiv class\x3d"items-table-div" data-dojo-attach-point\x3d"filteredItemsTableDiv" data-dojo-attach-event\x3d"onscroll:_onFilteredItemsSectionScroll"\x3e\r\n\t\t\t\x3ctable class\x3d"items-table" cellpadding\x3d"10" data-dojo-attach-point\x3d"filteredItemsTable" data-dojo-attach-event\x3d"onclick:_onItemsTableClicked"\x3e\r\n\t\t\t\t\x3ctbody data-dojo-attach-point\x3d"filteredItemsTbody"\x3e\x3c/tbody\x3e\r\n\t\t\t\x3c/table\x3e\r\n\t\t\x3c/div\x3e\r\n\t\t\x3cdiv class\x3d"search-none-tip-section" data-dojo-attach-point\x3d"searchNoneTipSection" style\x3d"display:none;"\x3e\r\n\t\t\t\x3cspan class\x3d"search-none-icon jimu-icon jimu-icon-error"\x3e\x3c/span\x3e\r\n\t\t\t\x3cspan class\x3d"search-none-tip jimu-state-error-text"\x3e${nls.searchNone}\x3c/span\x3e\r\n\t\t\x3c/div\x3e\r\n\t\t\x3cdiv data-dojo-type\x3d"jimu/dijit/LoadingIndicator" data-dojo-attach-point\x3d"filteredItemShelter" data-dojo-props\x3d\'hidden:true\'\x3e\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\x3c/div\x3e',
"url:jimu/dijit/templates/_TreeNode.html":'\x3cdiv class\x3d"dijitTreeNode" role\x3d"presentation"\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"rowNode" class\x3d"dijitTreeRow" role\x3d"presentation"\x3e\r\n\t\t\x3cspan data-dojo-attach-point\x3d"expandoNode" class\x3d"dijitInline dijitTreeExpando" role\x3d"presentation"\x3e\x3c/span\x3e\r\n\t\t\x3cspan data-dojo-attach-point\x3d"expandoNodeText" class\x3d"dijitExpandoText" role\x3d"presentation"\x3e\x3c/span\x3e\r\n\t\t\x3cspan data-dojo-attach-point\x3d"contentNode" class\x3d"dijitTreeContent" role\x3d"presentation"\x3e\r\n\t\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTreeIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\r\n\t\t\t\x3cspan data-dojo-attach-point\x3d"labelNode,focusNode" class\x3d"dijitTreeLabel" role\x3d"treeitem" tabindex\x3d"-1" aria-selected\x3d"false"\x3e\x3c/span\x3e\r\n\t\t\x3c/span\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeNodeContainer" role\x3d"presentation" style\x3d"display: none;"\x3e\x3c/div\x3e\r\n\x3c/div\x3e',
"url:dijit/templates/TreeNode.html":'\x3cdiv class\x3d"dijitTreeNode" role\x3d"presentation"\r\n\t\x3e\x3cdiv data-dojo-attach-point\x3d"rowNode" class\x3d"dijitTreeRow" role\x3d"presentation"\r\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNode" class\x3d"dijitInline dijitTreeExpando" role\x3d"presentation"\x3e\x3c/span\r\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNodeText" class\x3d"dijitExpandoText" role\x3d"presentation"\x3e\x3c/span\r\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"contentNode"\r\n\t\t\tclass\x3d"dijitTreeContent" role\x3d"presentation"\x3e\r\n\t\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTreeIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"labelNode,focusNode" class\x3d"dijitTreeLabel" role\x3d"treeitem"\r\n\t\t\t\t   tabindex\x3d"-1" aria-selected\x3d"false" id\x3d"${id}_label"\x3e\x3c/span\x3e\r\n\t\t\x3c/span\r\n\t\x3e\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeNodeContainer" role\x3d"presentation"\r\n\t\t style\x3d"display: none;" aria-labelledby\x3d"${id}_label"\x3e\x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:dijit/templates/Tree.html":'\x3cdiv role\x3d"tree"\x3e\r\n\t\x3cdiv class\x3d"dijitInline dijitTreeIndent" style\x3d"position: absolute; top: -9999px" data-dojo-attach-point\x3d"indentDetector"\x3e\x3c/div\x3e\r\n\t\x3cdiv class\x3d"dijitTreeExpando dijitTreeExpandoLoading" data-dojo-attach-point\x3d"rootLoadingIndicator"\x3e\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeContainer" role\x3d"presentation"\x3e\r\n\t\x3c/div\x3e\r\n\x3c/div\x3e\r\n',"url:jimu/dijit/templates/_BasicServiceChooserContent.html":'\x3cdiv\x3e\r\n\t\x3cdiv class\x3d"content-section"\x3e\r\n\t\t\x3ctable class\x3d"layout"\x3e\r\n\t\t\t\x3ccolgroup\x3e\r\n\t\t\t\t\x3ccol width\x3d"80px" align\x3d"right"\x3e\x3c/col\x3e\r\n\t\t\t\t\x3ccol width\x3d"auto"\x3e\x3c/col\x3e\r\n\t\t\t\t\x3ccol width\x3d"170px"\x3e\x3c/col\x3e\r\n\t\t\t\x3c/colgroup\x3e\r\n\t\t\t\x3ctbody\x3e\r\n\t\t\t\t\x3ctr\x3e\r\n\t\t\t\t\t\x3ctd class\x3d"first-td"\x3e\r\n\t\t\t\t\t\t\x3cspan\x3eURL:\x3c/span\x3e\r\n\t\t\t\t\t\x3c/td\x3e\r\n\t\t\t\t\t\x3ctd\x3e\r\n\t\t\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"urlInput" data-dojo-type\x3d"jimu/dijit/URLInput" style\x3d"width:100%;"\x3e\x3c/div\x3e\r\n\t\t\t\t\t\x3c/td\x3e\r\n\t\t\t\t\t\x3ctd\x3e\r\n\t\t\t\t\t\t\x3cdiv class\x3d"jimu-btn jimu-state-disabled validate-btn jimu-float-trailing" data-dojo-attach-point\x3d"btnValidate" data-dojo-attach-event\x3d"onclick:_onBtnValidateClick"\x3e${nls.validate}\x3c/div\x3e\r\n\t\t\t\t\t\x3c/td\x3e\r\n\t\t\t\t\x3c/tr\x3e\r\n\t\t\t\t\x3ctr data-dojo-attach-point\x3d"exampleTr" class\x3d"example-tr"\x3e\r\n\t\t\t\t\t\x3ctd class\x3d"first-td" style\x3d"padding-top:5px;"\x3e\r\n\t\t\t\t\t\t\x3cspan title\x3d"${nls.example}:"\x3e${nls.example}:\x3c/span\x3e\r\n\t\t\t\t\t\x3c/td\x3e\r\n\t\t\t\t\t\x3ctd data-dojo-attach-point\x3d"exampleTd" colspan\x3d"2" style\x3d"padding-top:5px;font-style:italic;color:#ccc;"\x3e\r\n\t\t\t\t\t\x3c/td\x3e\r\n\t\t\t\t\x3c/tr\x3e\r\n\t\t\t\x3c/tbody\x3e\r\n\t\t\x3c/table\x3e\r\n\t\t\x3cdiv class\x3d"service-browser-container" data-dojo-attach-point\x3d"serviceBrowserContainer"\x3e\r\n\t\t\t\x3cdiv class\x3d"error-section" data-dojo-attach-point\x3d"errorSection"\x3e\r\n\t\t\t\t\x3cspan class\x3d"jimu-icon jimu-icon-error"\x3e\x3c/span\x3e\r\n\t\t\t\t\x3cspan class\x3d"error-message" data-dojo-attach-point\x3d"errorNode"\x3e\x3c/span\x3e\r\n\t\t\t\x3c/div\x3e\r\n\t\t\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv class\x3d"operations"\x3e\r\n\t\t\x3cdiv class\x3d"jimu-btn jimu-float-trailing cancel jimu-btn-vacation" data-dojo-attach-event\x3d"onclick:_onBtnCancelClick"\x3e${nls.cancel}\x3c/div\x3e\r\n\t\t\x3cdiv class\x3d"jimu-btn jimu-float-trailing jimu-state-disabled ok" data-dojo-attach-point\x3d"btnOk" data-dojo-attach-event\x3d"onclick:_onBtnOkClick"\x3e${nls.ok}\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"loading" data-dojo-type\x3d"jimu/dijit/LoadingIndicator" data-dojo-props\x3d\'hidden:true\'\x3e\x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/NetworkTrace/setting/summarySetting.html":'\x3cdiv class\x3d"ParameterDiv"\x3e\r\n    \x3cdiv class\x3d"esriCTSummaryParentDiv"\x3e\r\n        \x3c!-- Table --\x3e\r\n        \x3cdiv class\x3d"esriCTOutPutSettingsParent esriCTClearBoth"\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"outputTableNode"\x3e\r\n            \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Summary text --\x3e\r\n        \x3cdiv class\x3d"esriCTClearBoth esriCTSummaryTextParentContainer"\x3e\r\n            ${nls.summaryTab.summaryTextTitle}\r\n        \x3c/div\x3e\r\n        \x3c!-- Summary hint --\x3e\r\n        \x3cdiv class\x3d"esriCTSummaryHintField"\x3e\r\n            ${nls.hintText.inputTextHint}\r\n        \x3c/div\x3e\r\n        \x3c!-- Summary editor --\x3e\r\n        \x3cdiv class\x3d"esriCTSummaryEditor esriCTClearBoth"\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"editorContainer"\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCTButtonContainer"\x3e\r\n                \x3cdiv style\x3d"float: left;margin-top: 5px;" title\x3d"${nls.summaryTab.expressionVerifyButtonText}"\r\n                    data-dojo-attach-event\x3d"onclick:_onClickVerifyExpressionBtn"\r\n                    data-dojo-attach-point\x3d"verifySummaryExpression"\r\n                    class\x3d"jimu-state-disabled jimu-btn jimu-float-trailing esriSetButton jimu-leading-margin1"\x3e\r\n                    ${nls.summaryTab.expressionVerifyButtonText}\r\n                \x3c/div\x3e\r\n            \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3c!-- Auto zoom checkbox --\x3e\r\n        \x3cdiv class\x3d"esriCTSummaryAutoZoom esriCTClearBoth"\x3e\r\n            \x3cdiv data-dojo-type\x3d"jimu/dijit/CheckBox" data-dojo-attach-point\x3d"autoZoomAfterTrace" class\x3d"jimu-checkbox"\r\n                title\x3d"${nls.summaryTab.zoomText}" label\x3d"${nls.summaryTab.zoomText}"\x3e\r\n            \x3c/div\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/NetworkTrace/setting/summarySettingSelector.html":'\x3cdiv class\x3d"summarySelector"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"showSummarySettingsButton" class\x3d"jimu-icon jimu-icon-add esriCTHover"\r\n        title\x3d"${nls.summaryTab.addSummaryItemsTitle}"\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e',"url:widgets/NetworkTrace/setting/FieldSelector.html":'\x3cdiv\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"showFieldsButton" class\x3d"jimu-icon jimu-icon-add esriCTHover"\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:esri/dijit/VisibleScaleRangeSlider/templates/ScaleMenu.html":'\x3cdiv\x3e\r\n  \x3cdiv class\x3d"${css.section}"\x3e\r\n    \x3cdiv class\x3d"${css.header}"\x3e${labels.current}\x3c/div\x3e\r\n    \x3cdiv class\x3d"${css.content}"\x3e\r\n      \x3cdiv data-dojo-attach-point\x3d"dap_currentScaleLabel" class\x3d"${css.item} ${css.current}"\x3e\x3c/div\x3e\r\n      \x3cdiv data-dojo-attach-point\x3d"dap_scaleInput" data-dojo-type\x3d"dijit/form/TextBox" class\x3d"${css.input}"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"${css.section}" data-dojo-attach-point\x3d"dap_recommendedScaleSection"\x3e\r\n    \x3cdiv class\x3d"${css.header}" data-dojo-attach-point\x3d"dap_scaleListHeader"\x3e\x3c/div\x3e\r\n    \x3cdiv class\x3d"${css.content}"\x3e\r\n      \x3col data-dojo-attach-point\x3d"dap_recommendedScales" class\x3d"${css.list}"\x3e\r\n        \x3cli data-dojo-attach-point\x3d"dap_mapScaleItem" class\x3d"${css.item} ${css.selectable}"\x3e\x3c/li\x3e\r\n        \x3c!--additional list items added dynamically--\x3e\r\n      \x3c/ol\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:esri/dijit/VisibleScaleRangeSlider/templates/ScalePreview.html":'\x3cdiv\x3e\r\n  \x3cdiv class\x3d"${css.header}"\x3e${labels.preview}\x3c/div\x3e\r\n  \x3cdiv data-dojo-attach-point\x3d"dap_scalePreviewThumbnail" class\x3d"${css.thumbnail}"\x3e\x3c/div\x3e\r\n\x3c/div\x3e\r\n',"url:dojox/form/resources/HorizontalRangeSlider.html":'\x3ctable class\x3d"dijit dijitReset dijitSlider dijitSliderH dojoxRangeSlider" cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"0" rules\x3d"none" dojoAttachEvent\x3d"onkeypress:_onKeyPress,onkeyup:_onKeyUp" role\x3d"presentation"\r\n\t\x3e\x3ctr class\x3d"dijitReset"\r\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\r\n\t\t\x3e\x3ctd dojoAttachPoint\x3d"topDecoration" class\x3d"dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH"\x3e\x3c/td\r\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\r\n\t\x3e\x3c/tr\r\n\t\x3e\x3ctr class\x3d"dijitReset"\r\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderDecrementIconH" tabIndex\x3d"-1" style\x3d"display:none" dojoAttachPoint\x3d"decrementButton"\x3e\x3cspan class\x3d"dijitSliderButtonInner"\x3e-\x3c/span\x3e\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd class\x3d"dijitReset"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper" dojoAttachEvent\x3d"onmousedown:_onClkDecBumper"\x3e\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd class\x3d"dijitReset"\r\n\t\t\t\x3e\x3cinput dojoAttachPoint\x3d"valueNode" type\x3d"hidden" ${!nameAttrSetting}\r\n\t\t\t/\x3e\x3cdiv role\x3d"presentation" class\x3d"dojoxRangeSliderBarContainer" dojoAttachPoint\x3d"sliderBarContainer"\r\n\t\t\t\t\x3e\x3cdiv class\x3d"dijitSliderMoveable dijitSliderMoveableH"\r\n\t\t\t\t\t\x3e\x3cdiv class\x3d"dijitSliderImageHandle dijitSliderImageHandleH" dojoAttachPoint\x3d"sliderHandle,focusNode" tabIndex\x3d"${tabIndex}" dojoAttachEvent\x3d"onmousedown:_onHandleClick" role\x3d"slider"\x3e\x3c/div\r\n\t\t\t\t\x3e\x3c/div\r\n\t\t\t\t\x3e\x3cdiv role\x3d"presentation" dojoAttachPoint\x3d"progressBar" class\x3d"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH" dojoAttachEvent\x3d"onmousedown:_onBarClick"\x3e\x3c/div\r\n\t\t\t\t\x3e\x3cdiv class\x3d"dijitSliderMoveable dijitSliderMoveableH"\r\n\t\t\t\t\t\x3e\x3cdiv class\x3d"dijitSliderImageHandle dijitSliderImageHandleH" dojoAttachPoint\x3d"sliderHandleMax" tabIndex\x3d"${tabIndex}" dojoAttachEvent\x3d"onmousedown:_onHandleClickMax" role\x3d"slider"\x3e\x3c/div\r\n\t\t\t\t\x3e\x3c/div\r\n\t\t\t\t\x3e\x3cdiv role\x3d"presentation" dojoAttachPoint\x3d"remainingBar" class\x3d"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH" dojoAttachEvent\x3d"onmousedown:_onRemainingBarClick"\x3e\x3c/div\r\n\t\t\t\x3e\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd class\x3d"dijitReset"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper" dojoAttachEvent\x3d"onmousedown:_onClkIncBumper"\x3e\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitSliderIncrementIconH" tabIndex\x3d"-1" style\x3d"display:none" dojoAttachPoint\x3d"incrementButton"\x3e\x3cspan class\x3d"dijitSliderButtonInner"\x3e+\x3c/span\x3e\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\x3e\x3c/tr\r\n\t\x3e\x3ctr class\x3d"dijitReset"\r\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\r\n\t\t\x3e\x3ctd dojoAttachPoint\x3d"containerNode,bottomDecoration" class\x3d"dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH"\x3e\x3c/td\r\n\t\t\x3e\x3ctd class\x3d"dijitReset" colspan\x3d"2"\x3e\x3c/td\r\n\t\x3e\x3c/tr\r\n\x3e\x3c/table\x3e\r\n',
"url:widgets/NetworkTrace/setting/SymbolChooserPopup.html":'\x3cdiv style\x3d"width: 100%; height: 100%;"\x3e\r\n    \x3cdiv class\x3d"esriCTSymbolChooserContainer"\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"symbolData" title\x3d"${symbolChooserTitle}" class\x3d"common-input esriCTSymbolData"\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"buttonsDiv" class\x3d"buttonsDiv"\x3e\r\n        \x3cdiv class\x3d"button-container button-container-absolute" style\x3d"padding: 0px;"\x3e\r\n            \x3cdiv class\x3d"jimu-btn jimu-float-trailing jimu-leading-margin1" data-dojo-attach-point\x3d"okButton"\x3e\r\n                ${nls.common.ok}\x3c/div\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:widgets/NetworkTrace/setting/inputOutputSettings.html":'\x3cdiv\x3e\r\n    \x3c!-- Input table node --\x3e\r\n    \x3cdiv class\x3d"esriCTClearBoth esriCTInputTableParentContainer"\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"inputTableNode"\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3c!-- Summary text --\x3e\r\n    \x3cdiv class\x3d"esriCTClearBoth esriCTSummaryTextParentContainer"\x3e${nls.inputOutputTab.summaryTextTitle}\x3c/div\x3e\r\n    \x3c!-- Summary text container --\x3e\r\n    \x3cdiv class\x3d"esriCTClearBoth esriCTInputEditorParentContainer"\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"inputEditorContainer"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/NetworkTrace/setting/projectSetting.html":'\x3cdiv data-dojo-attach-point\x3d"ProjectSettings" class\x3d"esriCTProjectSettings"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"layerSelectorWrapper" class\x3d"esriCTWrapper"\x3e\r\n        \x3cdiv class\x3d"esriCTLabel"\x3e${nls.projectSetting.projectPolygonLayer}\x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTSelect"\x3e\r\n            \x3cdiv class\x3d"esriCTlayerField" style\x3d"width: 100%"\x3e\r\n                \x3cselect data-dojo-attach-point\x3d"projetPolygonLayerSelect" data-dojo-type\x3d"dijit/form/Select"\r\n                    data-dojo-attach-event\x3d"change:projectSettingsChanged" style\x3d"width: 100%"\x3e\r\n                \x3c/select\x3e\r\n            \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTHelpIcon" data-dojo-attach-point\x3d"polygonLayerHelp"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"esriCTWrapper"\x3e\r\n        \x3cdiv class\x3d"esriCTLabel"\x3e${nls.projectSetting.outputParameterName}\x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTSelect"\x3e\r\n            \x3cdiv class\x3d"esriCTlayerField" style\x3d"width: 100%"\x3e\r\n                \x3cselect data-dojo-attach-point\x3d"outputParameters" data-dojo-type\x3d"dijit/form/Select"\r\n                    data-dojo-attach-event\x3d"change:projectSettingsChanged" style\x3d"width: 100%"\x3e\r\n                \x3c/select\x3e\r\n            \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTHelpIcon" data-dojo-attach-point\x3d"outputParameterHelp"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"esriCTWrapper"\x3e\r\n        \x3cdiv class\x3d"esriCTLabel"\x3e${nls.projectSetting.projectPointLayer}\x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTSelect"\x3e\r\n            \x3cdiv class\x3d"esriCTlayerField" style\x3d"width: 100%"\x3e\r\n                \x3cselect data-dojo-attach-point\x3d"projectPointLayerSelect" data-dojo-type\x3d"dijit/form/Select"\r\n                    data-dojo-attach-event\x3d"change:projectSettingsChanged" style\x3d"width: 100%"\x3e\r\n                \x3c/select\x3e\r\n            \x3c/div\x3e\r\n        \x3c/div\x3e\r\n        \x3cdiv class\x3d"esriCTHelpIcon" data-dojo-attach-point\x3d"pointLayerHelp"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/NetworkTrace/setting/Setting.html":'\x3cdiv style\x3d"height: calc(100% - 15px); overflow: hidden !important;"\x3e\r\n    \x3cdiv class\x3d"url-section"\x3e\r\n        \x3cdiv class\x3d"label jimu-float-leading esriCTFontStyle" title\x3d"${nls.taskUrl}"\x3e\r\n            ${nls.taskUrl}\x3c/div\x3e\r\n        \x3cdiv class\x3d"service-browser jimu-float-trailing"\x3e\r\n            \x3ctable cellpadding\x3d"0" cellspacing\x3d"0" style\x3d"width: 100%; border-collapse: collapse;"\x3e\r\n                \x3ctbody\x3e\r\n                    \x3ctr\x3e\r\n                        \x3ctd\x3e\r\n                            \x3cdiv class\x3d"esriCTTaskURL"\x3e\r\n                                \x3cdiv data-dojo-type\x3d"dijit/form/ValidationTextBox" data-dojo-attach-point\x3d"txtURL"\r\n                                    data-dojo-props\x3d\'required:true,trim:true,disabled:true\' title\x3d"${nls.taskUrl}"\x3e\r\n                                \x3c/div\x3e\r\n                            \x3c/div\x3e\r\n                        \x3c/td\x3e\r\n                        \x3ctd\x3e\r\n                            \x3cdiv data-dojo-attach-event\x3d"onclick:_onChooseTaskClicked" id\x3d"validateUrl"\r\n                                class\x3d"jimu-btn jimu-float-trailing esriSetButton" title\x3d"${nls.validate}"\r\n                                style\x3d"width: 80px;"\x3e\r\n                                ${nls.validate}\x3c/div\x3e\r\n                        \x3c/td\x3e\r\n                    \x3c/tr\x3e\r\n                \x3c/tbody\x3e\r\n            \x3c/table\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"mainContainer" class\x3d"esriCTMainContainer esriCTHidden"\x3e\r\n        \x3cdiv style\x3d"width: 100%; height:100%" data-dojo-attach-point\x3d"tabDiv"\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"projectSettingTabNode" class\x3d"esriCTTabNode"\x3e\r\n                \x3cdiv class\x3d"esriCTProjectSettingsContainer"\x3e\r\n                    \x3cdiv data-dojo-attach-point\x3d"ProjectSettingsDiv"\x3e\x3c/div\x3e\r\n                    \x3cdiv class\x3d"esriCTProjectSettingsNote"\x3e${nls.projectSetting.note}\x3c/div\x3e\r\n                    \x3cdiv data-dojo-attach-point\x3d"projectSettingWarning" class\x3d"esriCTProjectSettingsNote esriCTHidden"\r\n                        style\x3d"color: red;"\x3e\r\n                        ${nls.invalidOutputGeometry}\x3c/div\x3e\r\n                \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"inputOutputTabNode" class\x3d"esriCTTabNode"\x3e\r\n                \x3cdiv class\x3d"esriCTtaskDataContainer" data-dojo-attach-point\x3d"inputOutputSettingsNode"\x3e\x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"summaryTabNode" class\x3d"esriCTTabNode"\x3e\r\n                \x3cdiv class\x3d"summaryData esriCTtaskDataContainer" data-dojo-attach-point\x3d"summaryTextData"\x3e\r\n                \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"generalSettingsTabNode" class\x3d"esriCTTabNode"\x3e\r\n                \x3cdiv class\x3d"othersData esriCTtaskDataContainer" data-dojo-attach-point\x3d"othersData"\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/NetworkTrace/setting/css/style.css":".jimu-widget-NetworkTrace-setting .body{font-family: Avenir LT 35 Light; color: #2b2d39;}.jimu-widget-NetworkTrace-setting .esriCTTaskURL .dijitValidationTextBox{width: 780px; margin-right: 10px;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTTaskURL .dijitValidationTextBox{margin-left: 10px;}.jimu-widget-NetworkTrace-setting .url-section .label{overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 75px; margin-top: 9px; margin-right: 10px;}.jimu-widget-NetworkTrace-setting .dijitTreeRow{width: 758px;}.jimu-widget-NetworkTrace-setting .taskRow{float: left; width: 100%; margin-top: 5px;}.jimu-widget-NetworkTrace-setting .esriCTTaskInput{float: left; width: 50px;}.jimu-widget-NetworkTrace-setting .esriCTInputTitlepaneHolder, .jimu-widget-NetworkTrace-setting .esriCTOutputTitlepaneHolder{width: 100%; float: left;}.jimu-widget-NetworkTrace-setting .esriCTInputField, .jimu-widget-NetworkTrace-setting .esriCTOutputField{cursor: pointer; padding: 5px 5px 5px 40px; font-size: 12px; font-family: Avenir LT 35 Light; height: 30px; line-height: 20px;}.jimu-widget-NetworkTrace-setting .esriCTSelected, .jimu-widget-NetworkTrace-setting .esriCTSelectedOutput{background-color: #E0EDF2 !important; border-right: 3px solid #9ACA40 !important; padding-left: 40px; color: #15a4fa; height: 30px;}.jimu-widget-NetworkTrace-setting .claro .dijitTitlePaneTitleFocus{margin: 0; padding: 0; margin-top: 0; padding-bottom: 0;}.jimu-widget-NetworkTrace-setting .esriCTInputTitlepaneHolder .dijitTitlePaneContentInner, .jimu-widget-NetworkTrace-setting .esriCTOutputTitlepaneHolder .dijitTitlePaneContentInner{padding: 0;}.jimu-widget-NetworkTrace-setting .inputValue{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-NetworkTrace-setting .jimu-btn{max-width: 110px;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .common-property .field{margin-top: 10px; min-height: 30px; height: auto; margin-left: 20px;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .common-property .field{margin-left: 0;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .field{position: relative; overflow: hidden; margin-top: 10px; min-height: 30px; height: auto; margin-left: 20px;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .field label{width: 115px; float: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 5px; vertical-align: middle; padding: 3px; font-family: Avenir LT 35 Light; font-size: 14px; color: #596679;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .field label{float: right;}.jimu-widget-NetworkTrace-setting .esriCTOutageFieldParams .esriCTFieldName{width: 165px !important;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .common-property .field .common-input, .jimu-widget-NetworkTrace-setting .othersData .field .common-input{width: calc(100% - 125px);}.jimu-widget-NetworkTrace-setting .esriCTHidden{display: none;}.jimu-widget-NetworkTrace-setting .dijitTreeRow{padding: 4px 0 2px 0; background-color: none; background-color: transparent; background-color: rgba(171, 214, 255, 0); background-position: 0 0; background-repeat: repeat-x; border: solid 0 transparent; color: #000000;}.jimu-widget-NetworkTrace-setting div.dijitTreeRow:hover{background-color: #abd6ff; transition-duration: 0.25s; padding: 4px 0 2px 0; border-color: #759dc0; border-width: 0.5px 0; color: #000000; background-image: linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);}.jimu-widget-NetworkTrace-setting .esriCTInputTitlepaneHolder .dijitTitlePaneTitleClosed, .esriCTOutputTitlepaneHolder .dijitTitlePaneTitleClosed{margin-bottom: 10px; height: 30px; background-color: #ffffff; border: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.claro .dijitTitlePaneTextNode, .claro .dijitFieldsetLegendNode{margin-left: 10px; font-weight: bold; font-family: Avenir LT 35 Light; color: #2b2d39; font-size: 14px;}.jimu-widget-NetworkTrace-setting .esriCTInputTitlepaneHolder .dijitTitlePaneTitleOpen, .esriCTOutputTitlepaneHolder .dijitTitlePaneTitleOpen{background-color: #ffffff; color: #000; border: none; background-image: none; height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-NetworkTrace-setting .dijitTitlePaneTitleFocus{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-NetworkTrace-setting .esriCTOtherHolder{background-color: #ffffff; float: left; width: 100%; padding: 4px; vertical-align: middle; height: 30px; cursor: pointer; padding-left: 23px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; line-height: 20px;}.jimu-widget-NetworkTrace-setting .esriCTSelectedOthers{background-color: #e3ecf2 !important; border-left: 3px solid #15A4FA !important;}.jimu-widget-NetworkTrace-setting .esriCTLayoutLeft{float: left;}.jimu-widget-NetworkTrace-setting .esriCTLayoutRight{float: right;}.jimu-widget-NetworkTrace-setting .esriCTImg{margin-bottom: 20px;}.jimu-widget-NetworkTrace-setting .esriCTFieldset{border: 1px solid #d9dde0 !important;}.jimu-widget-NetworkTrace-setting .esriCTlegend{margin-left: 7px; margin-bottom: 16px; color: #7AD;}.jimu-widget-NetworkTrace-setting .esriCTOthersData{margin-left: 10px;}.jimu-widget-NetworkTrace-setting .esriCTHeight{height: 25px;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .common-property .field .common-input, .outageData .field .common-input{width: calc(100% - 125px); color: #2b2d39; font-family: Avenir LT 35 Light;}.jimu-widget-NetworkTrace-setting .esriCTSelectedOutageHolder, .jimu-widget-NetworkTrace-setting .esriCTSummaryHolder{background-color: #ffffff; float: left; width: 100%; padding: 4px; vertical-align: middle; margin-bottom: 10px; height: 30px; cursor: pointer; padding-left: 23px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; line-height: 20px;}.jimu-widget-NetworkTrace-setting .esriCTselectedOutage{background-color: #e3ecf2 !important; border-left: 3px solid #15A4FA !important;}.jimu-widget-NetworkTrace-setting .common-inputspin{width: 200px; float: left;}.jimu-widget-NetworkTrace-setting .esriCTunitsForOther{font-size: 12px; font-style: italic;}.jimu-widget-NetworkTrace-setting .esriCTOutageAreaDropDown{width: 81%; height: 30px;}.jimu-widget-NetworkTrace-setting .esriCTOutageAreaFieldName{width: 200px; height: 30px;}.jimu-widget-NetworkTrace-setting .esriCTOutageAreaParamValue{width: 30%; height: 30px;}.jimu-widget-NetworkTrace-setting .esriCTParamValue{margin-top: 0px !important; margin-right: 10px;}.jimu-widget-NetworkTrace-setting .esriCTDoubleLinedText{margin-top: 0px !important;}.jimu-widget-NetworkTrace-setting .esriCTFloatLeftCommon{float: left;}.jimu-widget-NetworkTrace-setting .esriCTHintField{font-size: 12px; font-style: italic; margin-left: 114px; height: auto; min-height: 10px; margin-top: 5px; font-family: Avenir LT 35 Light; color: #bbbdc3; float: left; clear: both;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTHintField{float: right; margin-left: 0; margin-right: 114px;}.jimu-widget-NetworkTrace-setting .esriCTfieldContainer{height: auto; margin-top: 0px;}.jimu-widget-NetworkTrace-setting .esriCTOutageFieldParams{width: 80%; float: left; margin-left: 10px; margin-top: 5px;}.jimu-widget-NetworkTrace-setting .img-chooser{width: 80px; height: 74px;}.jimu-widget-NetworkTrace-setting .esriCTMargin{margin-bottom: 10px;}.widget-setting-page .widget-setting{height: calc(100% - 90px) !important;}.jimu-widget-NetworkTrace-setting .esriCTMainContainer{width: 100%; height: 100%; float: left; clear: both; margin-top: 20px;}.jimu-widget-NetworkTrace-setting .esriCTFieldMappingHint{font-family: Avenir LT 35 Light; color: #bbbdc3; font-size: 12px; font-style: italic; margin-bottom: 5px; margin-left: 10px;}.jimu-widget-NetworkTrace-setting .esriCTFieldMappingLegend{margin-left: 20px; margin-bottom: 5px; color: #7AD;}.jimu-widget-NetworkTrace-setting .esriCTFieldMapPadding{font-family: Avenir LT 35 Light; color: #bbbdc3; font-size: 12px; font-style: italic; margin-left: 2px; padding: 5px 0px 5px 0px;}.jimu-widget-NetworkTrace-setting .esriCTSummaryHintField{float: left; color: #bbbdc3; font-size: 12px; font-style: italic; height: auto; margin: 5px 0px; clear: both;}.jimu-widget-NetworkTrace-setting .esriCTSkippableHintText{margin-left: 20px !important;}.jimu-widget-NetworkTrace-setting .esriCTSaveToLayerHintText{margin-left: 6px !important;}.jimu-widget-NetworkTrace-setting .esriCTExportToCsvHintText{margin-left: 1px !important;}.jimu-widget-NetworkTrace-setting .esriCTVisibleHintText{margin-left: 39px !important;}.jimu-widget-NetworkTrace-setting .esriCTOverviewSaveToLayerHintText{margin-left: 8px !important;}.claro .dijitTitlePaneContentOuter{border: none !important;}.dj_webkit .claro .dijitDisabled input, .claro .dijitTextBox, .claro .dijitTextBox .dijitInputInner{font-family: Avenir LT 35 Light; color: #2b2d39; font-size: 12px;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .common-property .fieldHeader, .jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .fieldHeader{font-family: Avenir LT 35 Light; color: #2b2d39; font-size: 14px; font-weight: bold; padding-bottom: 10px;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .esriCTSubFieldHeader{font-family: Avenir LT 35 Light; color: #2b2d39; font-size: 14px; font-weight: bold; padding: 10px 0px 10px 20px;}.jimu-widget-NetworkTrace-setting .esriCTInputOutputParameters .dijitValidationTextBox, .jimu-widget-NetworkTrace-setting .esriCTIntigerNumberTextBoxField{width: 200px;}.jimu-widget-NetworkTrace-setting .esriCTSelectField{width: 200px;}.jimu-widget-NetworkTrace-setting .claro .dijitTextBox .dijitInputInner{font-size: 12px; font-family: Avenir LT 35 Light; color: #2b2d39;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .field label.esriCTCheckboxLabel{float: left; margin-right: 7px; width: auto; margin-top: 0;}.jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .field .esriCTCheckboxHint{margin-top: 0; padding: 3px; margin-left: 0px; clear: none;}.jimu-widget-NetworkTrace-setting .esriCTFontStyle{font-family: Avenir LT 35 Light; color: #2b2d39; font-size: 14px !important; font-weight: bold;}.jimu-widget-NetworkTrace-setting .dijitSelect .dijitButtonContents{border-style: none none none none; background-color: #FFFFFF;}.claro .dijitSelect .dijitArrowButton{background-color: #FFFFFF; background-image: none;}.claro .dijitSpinner .dijitSpinnerButtonContainer{background-color: #FFFFFF; border: none; padding-right: 10px;}.claro .dijitSelect .dijitInputField{margin-right: 8px;}.claro .esriCTOutageField .dijitSelect .dijitInputField{margin-right: 0px;}.dijitReset.dijitLeft.dijitButtonNode.dijitArrowButton.dijitUpArrowButton .dijitArrowButtonInner, .claro .dijitSpinner .dijitArrowButton{background-color: #FFFFFF; border: none;}.claro .dijitTextBox{background-color: #FFFFFF;}.claro .dijitSpinner .dijitArrowButtonInner{background-position: -138px center;}.claro .dijitSpinner .dijitUpArrowButtonHover .dijitArrowButtonInner{background-position: -173px;}.dijitSpinner .dijitSpinnerButtonContainer .dijitUpArrowButton{top: 7px;}.dijitSpinner .dijitSpinnerButtonContainer .dijitArrowButton{height: 30%;}.jimu-widget-NetworkTrace-setting .esriCTSummarySettingSelector .esriCTButtonContainer{float: right;}.jimu-widget-NetworkTrace-setting .esriCTSummarySettingSelector td{padding-left: 5px;}.jimu-widget-NetworkTrace-setting .esriCTSummaryExpressionSelect{width: 100%; margin-bottom: 2px;}.jimu-widget-NetworkTrace-setting .esriCTSummarySettingSelector{max-height: 250px; min-width: 250px; overflow: auto;}.jimu-widget-NetworkTrace-setting .esriCTOutputHeaderLabel{font-weight: bold; margin-top: 5px; margin-bottom: 5px;}.jimu-widget-NetworkTrace-setting .esriCTPopupTable{width: 100%}.jimu-widget-NetworkTrace-setting .esriCTSummaryExpressionTextArea{height: 100px; width: 100%; resize: none;}.jimu-widget-NetworkTrace-setting .urlButton{border: 0px; width: 60px; margin-top: 29px;}.jimu-widget-NetworkTrace-setting .esriCTBtnEllipsis{overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 19px;}.jimu-widget-NetworkTrace-setting .summaryData{width: 100%; height: 100%;}.jimu-widget-NetworkTrace-setting .ParameterDiv{width: 100%; height: 100%;}.jimu-widget-NetworkTrace-setting .esriCTMultiSelectParent{position: relative; margin: 0 auto; left: 0px; width: 100%; height: 100%;}.jimu-widget-NetworkTrace-setting .esriCTMultiSelectContainer{float: left; margin: 0 auto; position: relative; width: 33%; height: 100%;}.jimu-widget-NetworkTrace-setting .esriCTLblContainer{background-color: #EDF0F0; padding: 9px; text-align: left; font-size: 14px; font-weight: bold; color: #2b2d39; font-weight: bold;}.jimu-widget-NetworkTrace-setting .esriCTButtonContainer{float: right; position: relative; margin: 0 auto; clear: both;}.jimu-widget-NetworkTrace-setting .esriCTSummarySettingText{color: #2b2d39; font-weight: bold; margin-bottom: 10px; margin-top: 10px;}.jimu-widget-NetworkTrace-setting .esriCTSummaryEditorText{color: #2b2d39; font-weight: bold; clear: both; margin-top: 10px; max-width: 95%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left;}.jimu-widget-NetworkTrace-setting .esriCTSummaryEditor{float: left; position: relative; width: 100%; height: 100%;}.jimu-widget-NetworkTrace-setting .esriCTInputOutputOptions{height: 30px; padding-left: 10px; padding-top: 6px; text-align: left; padding-bottom: 6px; border-bottom: 1px solid #E3E6E7;}.jimu-widget-NetworkTrace-setting .esriCTBlankOptions{height: 30px; padding-left: 10px; padding-top: 6px; text-align: left; padding-bottom: 6px;}.jimu-widget-NetworkTrace-setting .esriCTInputOutputOptionsBorderNone{border-bottom: none !important;}.jimu-widget-NetworkTrace-setting .esriCTInputPanel{width: 100%; overflow: hidden; float: left; border-left: 1px solid #E3E6E7; border-right: 1px solid #E3E6E7; border-bottom: 1px solid #E3E6E7;}.jimu-widget-NetworkTrace-setting .esriCTFieldPanel{overflow: hidden; float: left; width: 100%; border-bottom: 1px solid #E3E6E7;}.jimu-widget-NetworkTrace-setting .esriCTOperatorPanel{overflow: hidden; float: left; width: 100%; border-left: 1px solid #E3E6E7; border-right: 1px solid #E3E6E7; border-bottom: 1px solid #E3E6E7;}.jimu-widget-NetworkTrace-setting .esriCTPanelSelect{border: none; width: 110%;}.jimu-widget-NetworkTrace-setting .esriCTOperatorPanelSelect{border: none; width: 110%;}.jimu-widget-NetworkTrace-setting .esriCTFieldPanelSelect{border: none; width: 110%;}.jimu-widget-NetworkTrace-setting .esriCTHidden{visibility: hidden;}.jimu-widget-NetworkTrace-setting .esriCTInputOutputPanelLblContainer{border-right: 1px solid #E3E6E7;}.jimu-widget-NetworkTrace-setting .esriCTOperatorPanelLblContainer{border-left: 1px solid #E3E6E7;}.jimu-widget-NetworkTrace-setting .esriCTSummaryText{color: #2b2d39; font-size: 14px; font-weight: bold; padding-bottom: 10px;}.claro .jimu-widget-NetworkTrace-setting .dijitEditorIFrame{background-color: #ffffff; border: none !important; width: 100% !important; height: 91px !important;}.claro .dijitTitlePaneTitleActive, .claro .dijitSpinner .dijitDownArrowButtonActive{background-image: none;}.jimu-widget-NetworkTrace-setting .summarySelector{display: inline-block;}.jimu-widget-NetworkTrace-setting .summarySelector .jimu-icon{vertical-align: middle; cursor: pointer;}.jimu-widget-NetworkTrace-setting .esriCTAddButtonMargin{margin-right: 5px;}.jimu-widget-NetworkTrace-settingPopup {box-shadow: none !important;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTAddButtonMargin{margin-left: 5px;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTMultiSelectContainer,.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTSummaryHintField,.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTOperatorPanel{float: right;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTInputOutputOptions{padding-right: 10px; text-align: right;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTLblContainer{text-align: right;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTButtonContainer{float: left;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTtaskDataContainer .field{margin-right: 20px;}.jimu-widget-NetworkTrace-setting .esriCTPreview{float: left; margin-top: 5px; width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-NetworkTrace-setting .esriCTSymbolPreview{float: left; width: 50px; border-radius: 3px; margin-left: 10px; cursor: pointer;}.jimu-widget-NetworkTrace-setting .url-section{float: left; width: 100%;}.jimu-widget-NetworkTrace-setting .service-browser{float: left; width: 90%;}.jimu-widget-NetworkTrace-setting .esriSetButton{float: left;}.jimu-widget-NetworkTrace-setting .esriCTDisplayText{margin-top: 30px;}.claro .dijitTextBox, .claro .dijitSelect{border-color: #d9d9d9;}.jimu-widget-NetworkTrace-setting .esriCTLayerFieldSelector{height: 26px; width: 220px; border-color: rgb(217, 217, 217);}.jimu-widget-NetworkTrace-setting .esriCTSymbolChooserContainer{height: calc(100% - 50px); overflow-y: auto;}.jimu-widget-NetworkTrace-setting .buttonsDiv .jimu-popup .button-container{padding: 0px;}.jimu-widget-NetworkTrace-setting .esriCTFieldset{height: auto; width: 100%; border: 1px solid #a0acbf! important; border-radius: 3px; font-size: 14px; color: #596679; min-width: 0px; padding: 10px; margin-top: 15px;}.jimu-widget-NetworkTrace-setting .esriCTLegendTitle{margin-left: 5px; font-weight: bold;}.jimu-widget-NetworkTrace-setting .esriCTLegendTitle {margin-left: 0px; margin-right: 5px;}.jimu-widget-NetworkTrace-setting .esriCTToleranceSettingsIcon{background-image: url(../images/settings.png); cursor: pointer; width: 16px; height: 16px; margin: auto;}.jimu-widget-NetworkTrace-setting .edit-description-box {width: calc(100% - 125px); float: right; margin-right: 10px;}.jimu-rtl .jimu-widget-NetworkTrace-setting .edit-description-box {float: left; margin-right: 0px; margin-left: 10px;}.claro .jimu-widget-NetworkTrace-setting .edit-description-box label{width:inherit;}.jimu-widget-NetworkTrace-setting .esriCTAddFieldContainer {position: relative; cursor: pointer; float: right; margin-top: 8px; margin-right: 75px;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTAddFieldContainer {float: left; margin-right: 0px; margin-left: 75px;}.jimu-widget-NetworkTrace-setting .esriCTHorizantalSlider{width: 300px; margin-top: 10px;}.jimu-widget-NetworkTrace-setting .esriCTScaleButtonContainer{width: calc(100% - 120px);}.jimu-widget-NetworkTrace-setting .esriCTMinScale{width: 50%; float: left; color: #2b2d39; font-size: 12px;}.jimu-widget-NetworkTrace-setting .esriCTMaxScale{width: 14%; float: right; color: #2b2d39; font-size: 12px;}.claro .jimu-widget-NetworkTrace-setting .esriCTScaleButton .dijitDropDownButton .dijitButtonNode{background: none; border: none; width: 25px; box-shadow: none; padding: 0;}.jimu-widget-NetworkTrace-setting .esriCTSliderContainer{width: 67%; float:left; margin-top: 14px;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTSliderContainer{float: right;}.jimu-widget-NetworkTrace-setting .esriCTPopup{height: 200px; width: 200px;}.jimu-widget-NetworkTrace-setting .esriCTCurrentLabel{height: 30px; width: 200px; background-color: gray; color: white; padding: 10px;}.jimu-widget-NetworkTrace-setting .esriCTMargin{margin-top: 20px;}.jimu-widget-NetworkTrace-setting .esriCTProjectSettingsContainer{overflow-y: auto; max-height: 325px; padding: 5px; margin-top: 15px;}.jimu-widget-NetworkTrace-setting .esriCTProjectSettingsNote {font-size: 12px; font-style: italic; font-family: Avenir LT 35 Light; color: #bbbdc3; margin: 5px 0 20px 0;}.jimu-widget-NetworkTrace-setting .esriCTProjectSettings{width:100%;}.jimu-widget-NetworkTrace-setting .esriCTWrapper{width:100%; overflow: hidden; margin-bottom: 5px; padding-bottom: 5px;}.jimu-widget-NetworkTrace-setting .esriCTLabel{width: 30%; padding: 0px 10px 0px 0px; word-break: break-word; float: left; font-size: 14px; color: #596679}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTLabel{float: right;}.jimu-widget-NetworkTrace-setting .esriCTSelect{width: calc( 70% - 30px); float: left; box-sizing: border-box;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTSelect{float: right;}.jimu-widget-NetworkTrace-setting .esriCTHelpIcon{height: 30px; width: 20px; background-repeat: no-repeat; background-position: center center; background-image: url(../images/help.png); vertical-align: top; margin: 0 5px; cursor: pointer; float: right;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTHelpIcon,.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTSaveTolayerHelpIcon {float: left;}.jimu-widget-NetworkTrace-setting .esriCTMainContainer .jimu-tab3 {height: 100%; overflow: hidden;}.jimu-widget-NetworkTrace-setting .esriCTMainContainer .jimu-viewstack {max-height: calc(100% - 100px); overflow: auto;}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {.jimu-widget-NetworkTrace-setting .esriCTMainContainer .jimu-viewstack {height: calc(100% - 100px);}}.jimu-widget-NetworkTrace-setting .esriCTMainContainer .esriCTTabNode {padding: 0 10px;}.claro .jimu-widget-NetworkTrace-setting .esriCTDropDownContainer .dijitSelect {height: 27px; margin-top: 1px; width: 100%; float: left;}.jimu-widget-NetworkTrace-setting .esriCTDropDownContainer {float: left;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTDropDownContainer {float: right;}.jimu-widget-NetworkTrace-setting .esriCTDropDownContainer .dijitSelectLabel {overflow: hidden; width: 170px; float: left;}.jimu-widget-NetworkTrace-setting .esriCTDropDownContainer .dijitSelect .dijitInputField {overflow: hidden;}.jimu-widget-NetworkTrace-setting .esriCTDropDownContainer .dijitSelectLabel {text-align: left;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTDropDownContainer .dijitSelectLabel {text-align: right;}.jimu-widget-NetworkTrace-setting .esriCTSaveTolayerHelpIcon {height: 36px; width: 20px; background-repeat: no-repeat; background-position: center center; background-image: url(../images/help.png); vertical-align: top; cursor: pointer; float: right;}.claro .jimu-widget-NetworkTrace-setting .dijitSelectDisabled .dijitButtonContents {background-color: #efefef;}.jimu-widget-NetworkTrace-setting .esriCTSaveToLayerMainDiv {width: 100%; overflow: hidden;}.jimu-widget-NetworkTrace-setting .esriCTSaveToLayerLabelDiv {width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left;}.jimu-rtl .jimu-widget-NetworkTrace-setting .esriCTSaveToLayerLabelDiv {float: right;}.jimu-widget-NetworkTrace-setting .esriCTClearBoth {clear: both;}.jimu-widget-NetworkTrace-setting .esriCTInputTableParentContainer {padding-top: 20px;}.jimu-widget-NetworkTrace-setting .esriCTSummaryTextParentContainer {padding-top: 20px;}.jimu-widget-NetworkTrace-setting .esriCTInputEditorParentContainer {padding-top: 5px;}.jimu-widget-NetworkTrace-setting .esriCTOutPutSettingsParent {padding-top: 20px;}.jimu-widget-NetworkTrace-setting .esriCTOthersData {padding-top: 20px;}.jimu-widget-NetworkTrace-setting .esriCTSummaryAutoZoom {padding-top: 20px;}",
"*now":function(w){w(['dojo/i18n!*preload*widgets/NetworkTrace/setting/nls/Setting*["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/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin jimu/BaseWidgetSetting dojox/validate/regexp esri/request dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/on dojo/string jimu/dijit/GpSource jimu/dijit/TabContainer3 jimu/dijit/Popup dojo/_base/array jimu/dijit/Message jimu/dijit/LoadingIndicator dijit/registry ./summarySetting ./inputOutputSettings ./projectSetting".split(" "),function(w,F,L,I,E,a,b,d,g,f,m,h,p,u,G,e,l,y,B,k,t,H){return w([E,F,
L,I],{baseClass:"jimu-widget-NetworkTrace-setting",url:null,config:{},gpServiceTasks:null,inputParametersArray:[],outputParametersArray:[],validConfig:!1,inputDataTypes:{flags:"Flag",barriers:"Barrier",skip_locations:"Skip"},tab:null,_summarySettingInstance:null,startup:function(){this.inherited(arguments)},postMixInProperties:function(){this.nls.common={};d.mixin(this.nls.common,window.jimuNls.common)},postCreate:function(){this._summarySettingInstance=this.tab=null;setTimeout(d.hitch(this,function(){this.config&&
this.config.geoprocessing&&this.config.geoprocessing.url&&(this.txtURL.set("value",this.config.geoprocessing.url),this._resetConfigParams(),this._validateGPServiceURL(!0))}),200);this._initLoading()},_createProjectSettings:function(){this._projectSettingInstance=new H({map:this.map,nls:this.nls,config:this.config.projectSettings,outputParametersArray:this.outputParametersArray});this.own(m(this._projectSettingInstance,"settingsChanged",d.hitch(this,function(r){this._summarySettingInstance.onProjectSettingsChanged(r)})));
this._projectSettingInstance.placeAt(this.ProjectSettingsDiv);this._projectSettingInstance.startup()},_initTabs:function(){this.tab=new u({tabs:[{title:this.nls.projectSetting.title,content:this.projectSettingTabNode},{title:this.nls.inputOutputTab.title,content:this.inputOutputTabNode},{title:this.nls.summaryTab.title,content:this.summaryTabNode}]});this.own(m(this.tab,"tabChanged",d.hitch(this,function(){this.tab.containerNode.scrollTop=0})));this.tab.placeAt(this.tabDiv)},_resetConfigParams:function(){var r=
this.txtURL.get("value");if(null===r||""===r)g.empty(this.othersData),f.add(this.mainContainer,"esriCTHidden");this.tab&&this.tab.selectTab(this.nls.projectSetting.title)},_onChooseTaskClicked:function(){var r=new p({portalUrl:this.appConfig.portalUrl}),N=new G({titleLabel:this.nls.setTaskPopupTitle,width:830,height:560,content:r});this.own(m(r,"ok",d.hitch(this,function(x){0!==x.length&&(this.config={},this.txtURL.set("value",x[0].url),this._resetConfigParams(),this._validateGPServiceURL());N.close()})));
this.own(m(r,"cancel",d.hitch(this,function(){N.close()})))},_validateGPServiceURL:function(r){this.gpServiceTasks=[];var N=[];this.loading.show();if(this.map){this.url=this.txtURL.value;var x={url:this.url,content:{f:"json"},handleAs:"json",callbackParamName:"callback",timeout:2E4};b(x).then(d.hitch(this,function(D){D.hasOwnProperty("name")?null!==D.name&&(N=D.parameters)&&this._validateGpTaskResponseParameters(N,r):(this._refreshConfigContainer(),this.loading.hide())}),d.hitch(this,function(){this._errorMessage(this.nls.validationErrorMessage.UnableToLoadGeoprocessError);
this._refreshConfigContainer();this.loading.hide()}))}else this.loading.hide(),this._errorMessage(this.nls.validationErrorMessage.webMapError)},_validateGpTaskResponseParameters:function(r,N){var x,D=[],q=!0,z=!1,O=!1;for(x=0;x<r.length;x++)"esriGPParameterDirectionInput"===r[x].direction&&"GPFeatureRecordSetLayer"===r[x].dataType&&D.push(r[x]),"esriGPParameterDirectionOutput"===r[x].direction&&"GPFeatureRecordSetLayer"===r[x].dataType&&r[x].defaultValue&&r[x].defaultValue.geometryType&&(O=!0,"esriGeometryPolygon"===
r[x].defaultValue.geometryType&&(z=!0));if(1>D.length||3<D.length)q=!1;if(q&&O)this.validConfig=!0,z?f.add(this.projectSettingWarning,"esriCTHidden"):f.remove(this.projectSettingWarning,"esriCTHidden"),this._showTaskDetails(r,z,N),this.loading.hide();else{this._refreshConfigContainer();this.loading.hide();if(q)O||(v=this.nls.noOutputParameterWithGeometryType);else var v=this.nls.invalidInputParameters;this.txtURL.set("value","");this.url="";this._errorMessage(v)}},_refreshConfigContainer:function(){g.empty(this.othersData);
f.add(this.mainContainer,"esriCTHidden")},_initLoading:function(){this.loading=new y({hidden:!0});this.loading.placeAt(this.domNode);this.loading.startup()},_destroyWidget:function(r){var N=B.findWidgets(r);g.empty(r);e.forEach(N,function(x){x.destroyRecursive(!0)})},_showTaskDetails:function(r,N,x){var D;f.remove(this.mainContainer,"esriCTHidden");if(r)for(this.inputParametersArray=[],this.outputParametersArray=[],this.outputStrings=[],D=0;D<r.length;D++)"esriGPParameterDirectionInput"===r[D].direction&&
"GPFeatureRecordSetLayer"===r[D].dataType?this.inputParametersArray.push(r[D]):"esriGPParameterDirectionOutput"===r[D].direction&&"GPFeatureRecordSetLayer"===r[D].dataType?this.outputParametersArray.push(r[D]):"esriGPParameterDirectionOutput"===r[D].direction&&"GPString"===r[D].dataType&&this.outputStrings.push(r[D]);this.tab?(this._projectSettingInstance.outputParametersArray=this.outputParametersArray,this._projectSettingInstance.populateOutParams()):(this._initTabs(),this._createProjectSettings());
this._projectSettingInstance.enableDisableProjectSettings(N);N||x||this._errorMessage(this.nls.invalidOutputGeometry);this.outputParametersArray&&0<this.outputParametersArray.length&&this._sortOutputParam();this.inputParametersArray&&0<this.inputParametersArray.length&&this._createInputTaskParameters();this.outputParametersArray&&0<this.outputParametersArray.length&&this._createOutputTaskParameters();r={map:this.map,nls:this.nls,config:this.config,inputConfig:this.inputSettingArray,inputDataTypes:this.inputDataTypes,
outputConfig:this.outputSettingArray,projectSettings:this.config.projectSettings};g.empty(this.inputOutputSettingsNode);this._inputOutputSettings=new t(r,g.create("div",{},this.inputOutputSettingsNode));this.outputParametersArray&&0<this.outputParametersArray.length&&this._createSummaryTextSetting()},_createSummaryTextSetting:function(){this._displaySummaryExpressionBuilder();this._getInputPanelData()},_displaySummaryExpressionBuilder:function(){g.empty(this.summaryTextData);this.config.displayTextForRunButton=
this.nls.summaryTab.displayTextforButtonDefaultValue;var r={nls:this.nls,config:this.config,inputParametersArray:this.inputParametersArray,outputParametersArray:this.outputParametersArray,_inputOutputSettings:this._inputOutputSettings,autoZoomAfterTraceCheckedState:this.config.autoZoomAfterTrace,outputConfig:this.outputSettingArray,map:this.map,inputConfig:this.inputSettingArray,inputDataTypes:this.inputDataTypes,projectSettings:this.config.projectSettings,hasSkipLocationsInput:this._inputOutputSettings.hasSkipLocationsInput};
this._summarySettingObjArr=[];this._summarySettingInstance=new k(r,g.create("div",{},this.summaryTextData));this._summarySettingInstance.startup();this._summarySettingObjArr.push(this._summarySettingInstance)},_getInputPanelData:function(){this._summarySettingObjArr&&e.forEach(this._summarySettingObjArr,d.hitch(this,function(r){r&&r.displayInputOutputParameters()}))},_sortOutputParam:function(){var r,N;this.tempOutputParameters=[];if(this.config&&this.config.geoprocessing&&this.config.geoprocessing.outputs&&
0<this.config.geoprocessing.outputs.length){for(r=0;r<this.outputParametersArray.length;r++)for(N=0;N<this.config.geoprocessing.outputs.length;N++)this.outputParametersArray[r].name===this.config.geoprocessing.outputs[N].paramName&&this.tempOutputParameters.push(this.config.geoprocessing.outputs[N]);this.config.geoprocessing.outputs=[];this.config.geoprocessing.outputs=this.tempOutputParameters}},_createInputTaskParameters:function(){var r;this.inputSettingArray=[];if(0<=this.inputParametersArray.length)for(r=
0;r<this.inputParametersArray.length;r++){this.inputParametersArray[r].isInputRequired="esriGPParameterTypeRequired"===this.inputParametersArray[r].parameterType?"True":"False";var N=null;this.config&&this.config.geoprocessing&&this.config.geoprocessing.inputs[r]&&(N=this.config.geoprocessing.inputs[r]);!N&&this.inputParametersArray[r].name&&(N={paramName:this.inputParametersArray[r].name,displayName:this.inputParametersArray[r].displayName,toolTip:this.inputParametersArray[r].description,type:this.inputDataTypes[this.inputParametersArray[r].name.toLowerCase()]});
N&&this.inputSettingArray.push(N)}},_createOutputTaskParameters:function(){this.outputSettingArray=[];0<=this.outputParametersArray.length&&(this.outputSettingArray=[],e.forEach(this.outputParametersArray,d.hitch(this,function(r,N){var x=null;r.isOutputRequired="esriGPParameterTypeRequired"===r.parameterType?"True":"False";this.config&&this.config.geoprocessing&&this.config.geoprocessing.outputs[N]&&(x=this.config.geoprocessing.outputs[N]);x||(x={visibility:!0,paramName:r.name,type:"Result",panelText:r.displayName,
toolTip:r.description,displayName:r.displayName,displayText:this.nls.summaryTab.enterDisplayText,MinScale:0,MaxScale:0,exportToCSV:!1,saveToLayer:""});x&&!x.hasOwnProperty("displayName")&&(x.displayName=r.displayName);x.skipable=x&&x.bypassDetails?x.bypassDetails.skipable:!1;x&&!x.hasOwnProperty("visibility")&&(x.visibility=!0);x.data=r;this.outputSettingArray.push(x)})))},_urlValidator:function(r){var N="^"+a.url({allowNamed:!0,allLocal:!1});N=(new RegExp(N,"g")).test(r);r=/\/rest\/services/gi.test(r);
return N&&r},_getInputConfigParameters:function(){this.config.geoprocessing.inputs=[];this.config.geoprocessing.inputs.length=0;this._inputOutputSettings&&(this.config.geoprocessing.inputs=this._inputOutputSettings.getInputSettings())},_getSummaryExpressionConfigParameters:function(){this._summarySettingObjArr&&e.forEach(this._summarySettingObjArr,d.hitch(this,function(r){r&&(this.config.summaryExpression=r.getSummaryExpressionConfigData(),this.config.autoZoomAfterTrace=r.getAutoZoomAfterTraceConfigData(),
this.nls.summaryTab.displayTextforButtonDefaultValue&&(this.config.displayTextForRunButton=this.nls.summaryTab.displayTextforButtonDefaultValue))}))},_getOutputConfigParameters:function(){var r;this.polygonOutputParameters=[];this.polylineOutputParameters=[];this.pointOutputParameters=[];if(this.config&&this.config.geoprocessing&&this.config.geoprocessing.outputs&&(this.config.geoprocessing.outputs=[],this._summarySettingInstance&&(this.config.geoprocessing.outputs=this._summarySettingInstance.getOutputSettings()),
this.config&&this.config.geoprocessing&&this.config.geoprocessing.outputs&&0<this.config.geoprocessing.outputs.length)){for(r=0;r<this.config.geoprocessing.outputs.length;r++)this.outputParametersArray[r].parameter===this.config.geoprocessing.outputs[r].param&&("esriGeometryPolygon"===this.outputParametersArray[r].defaultValue.geometryType?this.polygonOutputParameters.push(this.config.geoprocessing.outputs[r]):"esriGeometryPolyline"===this.outputParametersArray[r].defaultValue.geometryType?this.polylineOutputParameters.push(this.config.geoprocessing.outputs[r]):
"esriGeometryPoint"===this.outputParametersArray[r].defaultValue.geometryType&&this.pointOutputParameters.push(this.config.geoprocessing.outputs[r]));this.config.geoprocessing.outputs=[];this.tempPolygonOutputParameters=[];if(this.polygonOutputParameters&&0<this.polygonOutputParameters.length)for(r=0;r<this.polygonOutputParameters.length;r++)this.config.geoprocessing.outputs.push(this.polygonOutputParameters[r]);if(this.polylineOutputParameters&&0<this.polylineOutputParameters.length)for(r=0;r<this.polylineOutputParameters.length;r++)this.config.geoprocessing.outputs.push(this.polylineOutputParameters[r]);
if(this.pointOutputParameters&&0<this.pointOutputParameters.length)for(r=0;r<this.pointOutputParameters.length;r++)this.config.geoprocessing.outputs.push(this.pointOutputParameters[r])}},_getOtherConfigParameters:function(){this.nls.summaryTab.displayTextforButtonDefaultValue&&(this.config.displayTextForRunButton=this.nls.summaryTab.displayTextforButtonDefaultValue);this._summarySettingObjArr||this.config.SummaryExpression.autoZoomAfterTraceCheckedState||(this.config.autoZoomAfterTrace=this.config.SummaryExpression.autoZoomAfterTraceCheckedState)},
getConfig:function(){var r={},N=!1,x=!1,D=!1,q=!1;r={url:"",inputs:[],outputs:[]};if(this.validConfig)if(N=this._validateProjectSettings(),x=this._validateInputTaskParameters(),q=this._validateSummaryExpressionParameter(),D=this._validateOthersTaskParameters(),this.url&&""!==this.url?N.returnFlag?(this._errorMessage(N.returnErr),x=!1,this.tab.selectTab(this.nls.projectSetting.title)):x.returnFlag?(this._errorMessage(x.returnErr),x=!1,this.tab.selectTab(this.nls.inputOutputTab.title)):q.returnFlag?
(this._errorMessage(q.returnErr),x=!1,this.tab.selectTab(this.nls.summaryTab.title)):D.returnFlag&&(this._errorMessage(D.returnErr),x=!1,this.tab.selectTab(this.nls.generalSettings.title)):this._errorMessage(this.nls.inValidGPService),x)this.config={geoprocessing:r},this.config.geoprocessing.url=this.url,this._projectSettingInstance&&(this.config.projectSettings=this._projectSettingInstance.getProjectSettings()),this._getInputConfigParameters(),this._getOutputConfigParameters(),this._getOtherConfigParameters(),
this._getSummaryExpressionConfigParameters(),this._getInputTabSummaryText();else return!1;else return this._errorMessage(this.nls.inValidGPService),!1;return this.config},_validateSummaryExpressionParameter:function(){var r={returnErr:"",returnFlag:!1};this._summarySettingObjArr&&e.forEach(this._summarySettingObjArr,d.hitch(this,function(N){N&&(r=N.validateExpressionOnOkClick())}));return r},_validateOthersTaskParameters:function(){var r={returnErr:"",returnFlag:!1},N;this.othersSettingObj&&e.forEach(this.othersSettingObj,
d.hitch(this,function(x){x&&(!(N=x.getOthersForm())||null===N.displayTextForRunButton||""!==N.displayTextForRunButton&&null!==N.displayTextForRunButton&&""!==N.displayTextForRunButton.trim()||(r.returnErr=this.nls.validationErrorMessage.displayTextForButtonError,r.returnFlag=!0))}));return r},_validateProjectSettings:function(){var r=0,N;var x={returnErr:"",returnFlag:!1};if(this._projectSettingInstance){var D=this._projectSettingInstance.getProjectSettings();D.pointLayerId?r++:N=h.substitute(this.nls.validationErrorMessage.invalidProjectSettings,
{projectSetting:this.nls.projectSetting.projectPointLayer});D.outputParamName?r++:N=h.substitute(this.nls.validationErrorMessage.invalidProjectSettings,{projectSetting:this.nls.projectSetting.outputParameterName});D.polygonLayerId?r++:N=h.substitute(this.nls.validationErrorMessage.invalidProjectSettings,{projectSetting:this.nls.projectSetting.projectPolygonLayer});0<r&&3!==r&&(x.returnErr=N,x.returnFlag=!0)}return x},_validateInputTaskParameters:function(){var r={returnErr:"",returnFlag:!1},N=0,x,
D=0,q=0;this._inputOutputSettings&&(q=D=N=0,e.forEach(this._inputOutputSettings.getInputSettings(),d.hitch(this,function(z){z&&z.type&&(x=z.type,x===this.inputDataTypes.flags?N++:x===this.inputDataTypes.barriers?D++:x===this.inputDataTypes.skip_locations&&q++)})));1<N?(r.returnErr=this.nls.validationErrorMessage.inputTypeFlagGreaterThanError,r.returnFlag=!0):1>N?(r.returnErr=this.nls.validationErrorMessage.inputTypeFlagLessThanError,r.returnFlag=!0):1<D?(r.returnErr=this.nls.validationErrorMessage.inputTypeBarrierErr,
r.returnFlag=!0):1<q&&(r.returnErr=this.nls.validationErrorMessage.inputTypeSkipErr,r.returnFlag=!0);return r},_validateSummaryText:function(r,N){var x=[];var D=[],q=!1;r=r.trim();var z=r.indexOf("{");var O=r.indexOf("}");if((r=-1!==z&&-1!==O?r.split("{"):r)&&0<r.length){for(z=0;z<r.length;z++)""!==r[z]&&-1!==r[z].indexOf("}")&&(x[z]=r[z].split("}"),D.push(x[z][0].toUpperCase()));for(x=0;x<D.length;x++)if(N)if("COUNT"===D[x]||"SKIPCOUNT"===D[x])q=!1;else{q=!0;break}else if("COUNT"===D[x])q=!1;else{q=
!0;break}}else q=!0;return q},_validateDisplayText:function(r,N){var x=[];var D=!1;D=[];r=r.trim();var q=r.indexOf("{");var z=r.indexOf("}");if((r=-1!==q&&-1!==z?r.split("{"):r)&&0<r.length){for(q=0;q<r.length;q++)""!==r[q]&&-1!==r[q].indexOf("}")&&(D[q]=r[q].split("}"),x.push(D[q][0].toUpperCase()));r=[];for(D=0;D<N.length;D++)r[D]=N[D].toUpperCase();D=!1;for(N=0;N<x.length;N++)if(-1===r.indexOf(x[N])){D=!0;break}}else D=!0;return D},_errorMessage:function(r){(new l({message:r})).message=r},_getInputTabSummaryText:function(){if(""!==
this._inputOutputSettings&&null!==this._inputOutputSettings&&void 0!==this._inputOutputSettings){var r=this._inputOutputSettings.getInputSummaryText();this.config.inputSummaryText=r}}})});