/*! License information can be found in copyright-fromWebpack.txt */ !function(e){function webpackJsonpCallback(t){for(var n,r,o=t[0],a=t[1],u=0,c=[];u/i.test(e)}function COMPARE_VERSION(e,t){if(t=""+t,!(e=""+e)||!t)throw new Error("version is not existed");var i,n,r=/(\.0+)+$/,o=e.replace(r,"").split("."),s=t.replace(r,"").split("."),a=Math.min(o.length,s.length);for(i=0;i0}));e=t}var i="";if(e){var n=e.match(/(?:(?:(?:item)?id)(?::|=))?\s*([0-9a-f]{32})/i);i="name",Array.isArray(n)&&2===n.length&&(e=n[1].toLowerCase(),i="webmap")}var r=null;return e&&"name"===i?r={type:"linkedItem",name:e,isDefault:!0}:e&&"webmap"===i&&(r={type:"linkedItem",itemId:e,isDefault:!0}),r}function ENCODE_DECODE_STR(e,t,i){if(!e||-1===["encode","decode"].indexOf(e))throw new Error("missing encodeDecode type");if(!t)return t;var n=t;if("decode"===e){try{n=decodeURIComponent(t)}catch(e){}return n}if(!(i=Object.assign({regExp:null},i||{})).regExp||i.regExp&&i.regExp instanceof RegExp&&i.regExp.test(t))try{n=encodeURIComponent(t)}catch(e){}return n}i.d(t,"e",(function(){return IS_OBJECT})),i.d(t,"d",(function(){return HAS_HTML_ELEMENT})),i.d(t,"a",(function(){return COMPARE_VERSION})),i.d(t,"j",(function(){return isNodeJs})),i.d(t,"h",(function(){return IS_VALID_VALUE})),i.d(t,"f",(function(){return IS_VALID_PATHS})),i.d(t,"g",(function(){return IS_VALID_RINGS})),i.d(t,"b",(function(){return DECODE_HTML_CONTENT})),i.d(t,"i",(function(){return MAPSTR_TO_BASEMAPOBJ})),i.d(t,"c",(function(){return ENCODE_DECODE_STR}))}).call(this,i(365)(e))},function(e,t,i){"use strict";i.d(t,"e",(function(){return a})),i.d(t,"d",(function(){return u})),i.d(t,"c",(function(){return VALIDATE_DATATYPE})),i.d(t,"b",(function(){return c})),i.d(t,"a",(function(){return l}));var n=i(1),r=i(5),o=i(3),s=i(16),a=function a(e){Object.assign(this,{isRestoreToDefaultName:!0},e||{}),this.isRestoreToDefaultName="boolean"!=typeof this.isRestoreToDefaultName||!0===this.isRestoreToDefaultName},u=function(e){function ValidateChoiceOptions(t){var i=this;t=t||{},i=e.call(this,{existedNames:t.existedNames,isRestoreToDefaultName:t.isRestoreToDefaultName})||this;return Object.assign(i,{ignoreOnlyAllowNumberEnglishCheck:!1,ignore32LengthCheck:!1,ignoreDuplicatedCheck:!1},{ignoreOnlyAllowNumberEnglishCheck:t.ignoreOnlyAllowNumberEnglishCheck,ignore32LengthCheck:t.ignore32LengthCheck,ignoreDuplicatedCheck:t.ignoreDuplicatedCheck}),i.ignoreOnlyAllowNumberEnglishCheck="boolean"==typeof i.ignoreOnlyAllowNumberEnglishCheck&&!0===i.ignoreOnlyAllowNumberEnglishCheck,i.ignore32LengthCheck="boolean"==typeof i.ignore32LengthCheck&&!0===i.ignore32LengthCheck,i.ignoreDuplicatedCheck="boolean"==typeof i.ignoreDuplicatedCheck&&!0===i.ignoreDuplicatedCheck,i}return Object(n.b)(ValidateChoiceOptions,e),ValidateChoiceOptions}(a);function VALIDATE_DATATYPE(e,t,i){i=Object.assign({errorMsgPrefix:"",errorMsgPostfix:""},i||{});var n=new l;return e&&t&&Object.keys(t).forEach((function(o){var s=t[o];s&&s.length>0&&s.forEach((function(t){if(void 0!==e[t]&&null!==e[t])if("array"===o){if(!Array.isArray(e[t]))return void n.addError(new r.a(i.errorMsgPrefix+" The value of '"+t+"' is not "+o+" "+i.errorMsgPostfix))}else{if(typeof e[t]===o.toString())return;n.addError(new r.a(i.errorMsgPrefix+" The value of '"+t+"' is not "+o+" "+i.errorMsgPostfix))}}))})),n.check()}var c=function(){function EsriValidationModel(e){this.whitelist=[];e=e||{},Object.assign(this,{}),Object(o.h)(e.valueRange)&&"object"==typeof e.valueRange&&(this.valueRange=Object.assign({isEnabled:!1,min:null,max:null},e.valueRange)),Object(o.h)(e.inputCount)&&"object"==typeof e.inputCount&&(!e.inputCount.isEnabled||e.inputCount.min||e.inputCount.max||(e.inputCount.isEnabled=!1),this.inputCount=Object.assign({isEnabled:!1,min:null,max:null},e.inputCount)),Object(o.h)(e.isInteger)&&(this.isInteger=e.isInteger),Object(o.h)(e.limitFileCount)&&(this.limitFileCount=e.limitFileCount),Object(o.h)(e.allowFileType)&&"object"==typeof e.allowFileType&&(this.allowFileType=Object.assign({type:null,exts:null},e.allowFileType)),Object(o.h)(e.imageDimension)&&"object"==typeof e.imageDimension&&(this.imageDimension=Object.assign({maxWidth:null,maxHeight:null,processType:"none"},e.imageDimension)),Object(o.h)(e.fileSize)&&"object"==typeof e.fileSize&&(this.fileSize=Object.assign({max:null,processType:"none"},e.fileSize)),Object(o.h)(e.inputMask)&&(this.inputMask=e.inputMask),Object(o.h)(e.regExp)&&(this.regExp=e.regExp)}return EsriValidationModel.prototype.setWhitelist=function(e){e=e||[],this.whitelist=this.whitelist.concat(e)},EsriValidationModel.prototype.toJson=function(){var e=Object(s.b)(this,this.whitelist);return e.valueRange&&this.valueRange&&(e.valueRange=Object(s.b)(this.valueRange,["isEnabled","min","max"])),e.isInteger&&"boolean"==typeof this.isInteger&&(e.isInteger=this.isInteger),e.limitFileCount&&this.limitFileCount&&(e.limitFileCount=Object(s.b)(this.limitFileCount,["isEnabled","min","max"])),e.allowFileType&&this.allowFileType&&(e.allowFileType=Object(s.b)(this.allowFileType,["type","exts"])),e.inputCount&&this.inputCount&&(e.inputCount=Object(s.b)(this.inputCount,["isEnabled","min","max"]),!e.inputCount.isEnabled||e.inputCount.min||e.inputCount.max||(e.inputCount.isEnabled=!1)),e},EsriValidationModel.prototype.validate=function(){var e=new l;return e.addValidateResult(VALIDATE_DATATYPE(this,{string:["inputMask","regExp"],boolean:["isInteger"]})),this.valueRange&&e.addValidateResult(VALIDATE_DATATYPE(this.valueRange,{boolean:["isEnabled"]})),this.inputCount&&e.addValidateResult(VALIDATE_DATATYPE(this.inputCount,{boolean:["isEnabled"],number:["min","max"]})),this.limitFileCount&&e.addValidateResult(VALIDATE_DATATYPE(this.limitFileCount,{boolean:["isEnabled"],number:["min","max"]})),this.allowFileType&&e.addValidateResult(VALIDATE_DATATYPE(this.allowFileType,{string:["type"],array:["exts"]})),e.check()},EsriValidationModel}(),l=function(){function EsriValidateResult(e){this._options=e,this._options=Object.assign({},e||{}),this.success=!1,this.errors=[]}return EsriValidateResult.prototype.addError=function(e){e&&("string"==typeof e&&(e=new r.a(e)),this._addQuestionIndexes(e),e.type="validation",this.errors=this.errors||[],this.errors.push(e))},EsriValidateResult.prototype.addErrors=function(e){var t=this;e&&Array.isArray(e)&&e.length>0&&e.forEach((function(e){t.addError(e)}))},EsriValidateResult.prototype.addValidateResult=function(e){e&&!e.success&&e.errors&&this.addErrors(e.errors)},EsriValidateResult.prototype.check=function(){return this.success=!1,this.errors&&0===this.errors.length&&(this.success=!0,delete this.errors),this.errors||(this.success=!0),this},EsriValidateResult.prototype.hasError=function(){return this.errors&&Array.isArray(this.errors)&&this.errors.length>0},EsriValidateResult.prototype.getErrors=function(){return this.errors||[]},EsriValidateResult.prototype._addQuestionIndexes=function(e){e&&this._options.questionIndexes&&!e.questionIndexes&&(e.questionIndexes=this._options.questionIndexes)},EsriValidateResult}()},function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n=function n(e){if(this.code=-1,this.message="",e){if("string"==typeof e||e instanceof String)return void(this.message=String(e));if(e.error)return void Object.assign(this,e.error||{});if(e instanceof Error)return this.message=e.message,this.stack=e.stack,void(this.data=e.data);Object.assign(this,e||{})}}},function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return n}));var n,r=function r(e){Object.assign(this,{extraWhiteLists:[],whiteLists:[]},e||{})};!function(e){e.questionNamePrefix="field_",e.pageNamePrefix="page_",e.groupNamePrefix="group_"}(n||(n={}))},,function(e,t,i){"use strict";i.d(t,"b",(function(){return c})),i.d(t,"a",(function(){return l})),i.d(t,"d",(function(){return d})),i.d(t,"c",(function(){return p}));var n=i(1),r=i(4),o=i(16),s=i(3),a=i(5),u=function(){function EsriGeometryModel(e){this.defaultWhitelist=["spatialReference"],this.defaultTypes=["point","multipoint","polyline","polygon","extent"];e=e||{},Object.assign(this,{spatialReference:{wkid:null}},e)}return EsriGeometryModel.prototype.setWhitelist=function(e){e=e||[],this.defaultWhitelist=this.defaultWhitelist.concat(e)},EsriGeometryModel.prototype.toJson=function(){var e=Object(o.b)(this,this.defaultWhitelist);return e.spatialReference&&this.spatialReference&&(e.spatialReference=Object(o.b)(this.spatialReference,["wkid"])),e},EsriGeometryModel.prototype._validateGeometryModel=function(){var e=new r.a;return e.addValidateResult(Object(r.c)(this,{string:["type"],boolean:["hasM","hasZ"]})),this.type&&-1===this.defaultTypes.indexOf(this.type)&&e.addError(new a.a("The geometry type is not supported. Only support: "+this.defaultTypes.join(", "))),this.spatialReference?e.addValidateResult(Object(r.c)(this,{number:["wkid"]})):e.addError(new a.a("The spatialReference is not existed")),e.check()},EsriGeometryModel.prototype.cloneObjByKeys=function(e){e=e||[];var t=this.defaultWhitelist.concat(e);return Object(o.b)(this,t)},EsriGeometryModel}(),c=function(e){function EsriPointModel(t){var i=e.call(this,t)||this;i.exceptDefaultWhitelist=["x","y","z","m"];return t=t||{},Object.assign(i,{x:null,y:null}),Object(s.h)(t.x)&&(i.x=t.x),Object(s.h)(t.y)&&(i.y=t.y),Object(s.h)(t.z)&&(i.z=t.z),Object(s.h)(t.m)&&(i.m=t.m),i}return Object(n.b)(EsriPointModel,e),EsriPointModel.isEsriPoint=function(e){return!!(e&&e.x&&Object(s.h)(e.x)&&Object(s.h)(e.y))},EsriPointModel.prototype.toJson=function(){var e=this.cloneObjByKeys(this.exceptDefaultWhitelist);return e.spatialReference&&this.spatialReference&&(e.spatialReference=Object(o.b)(this.spatialReference,["wkid"])),e},Object.defineProperty(EsriPointModel.prototype,"stringValue",{get:function(){return Object(s.h)(this.z)?this.y+" "+this.x+" "+this.z:this.y+" "+this.x},enumerable:!1,configurable:!0}),EsriPointModel.prototype.updateByStringValue=function(e,t){var i=e.trim().split(" ");Object(s.h)(t)&&(this.spatialReference.wkid=t),Object(s.h)(this.spatialReference.wkid)||(this.spatialReference.wkid=4326),Object(s.h)(i[0])&&Object(s.h)(i[1])&&(this.y=Number(i[0]),this.x=Number(i[1])),Object(s.h)(i[2])&&(this.z=Number(i[2]))},EsriPointModel.prototype.validate=function(){var e=this._validateGeometryModel();return e.addValidateResult(Object(r.c)(this,{number:["x","y","z","m"]})),e.check()},EsriPointModel}(u),l=function(e){function EsriExtentModel(t){var i=e.call(this,t)||this;i.exceptDefaultWhitelist=["xmin","ymin","xmax","ymax"];return t=t||{},Object.assign(i,{xmin:null,ymin:null,xmax:null,ymax:null}),Object(s.h)(t.xmin)&&(i.xmin=t.xmin),Object(s.h)(t.ymin)&&(i.ymin=t.ymin),Object(s.h)(t.xmax)&&(i.xmax=t.xmax),Object(s.h)(t.ymax)&&(i.ymax=t.ymax),i}return Object(n.b)(EsriExtentModel,e),EsriExtentModel.prototype.toJson=function(){var e=this.cloneObjByKeys(this.exceptDefaultWhitelist);return e.spatialReference&&this.spatialReference&&(e.spatialReference=Object(o.b)(this.spatialReference,["wkid"])),e},EsriExtentModel.prototype.validate=function(){var e=this._validateGeometryModel();return e.addValidateResult(Object(r.c)(this,{number:["xmin","ymin","xmax","ymax"]})),e.check()},EsriExtentModel}(u),d=function(e){function EsriPolylineModel(t){var i=e.call(this,t)||this;i.exceptDefaultWhitelist=["paths","z","m"];return t=t||{},Object.assign(i,{paths:[[]]}),Object(s.f)(t.paths)&&(i.paths=t.paths),Object(s.h)(t.z)&&(i.z=t.z),Object(s.h)(t.m)&&(i.m=t.m),i}return Object(n.b)(EsriPolylineModel,e),EsriPolylineModel.isEsriPolyline=function(e){return!!(e&&e.paths&&Object(s.f)(e.paths))},EsriPolylineModel.prototype.toJson=function(){if(this.IS_EMPTY_POLYLINE())return null;var e=this.cloneObjByKeys(this.exceptDefaultWhitelist);return e.spatialReference&&this.spatialReference&&(e.spatialReference=Object(o.b)(this.spatialReference,["wkid"])),e},Object.defineProperty(EsriPolylineModel.prototype,"stringValue",{get:function(){var e="";return this.paths.length&&this.paths[0].forEach((function(t,i,n){i!==n.length-1?e+=t[1]+" "+t[0]+";":e+=t[1]+" "+t[0]})),e},enumerable:!1,configurable:!0}),EsriPolylineModel.prototype.updateByStringValue=function(e,t){Object(s.h)(t)&&(this.spatialReference.wkid=t),Object(s.h)(this.spatialReference.wkid)||(this.spatialReference.wkid=4326);var i=e.split(/\s*?;/),n=[];i.length&&(n=[[]]),i.forEach((function(e){var t=(e=e.replace(/(^\s*)|(\s*$)|(^\'*)|(^\"*)|('*$)|("*$)/g,"")).split(/\s/);2===t.length&&n[0].push([Number(t[1]),Number(t[0])])})),Object(s.f)(n)&&(this.paths=n)},EsriPolylineModel.prototype.validate=function(){var e=this._validateGeometryModel();return e.addValidateResult(Object(r.c)(this,{array:["paths"],number:["z","m"]})),e.check()},EsriPolylineModel.prototype.IS_EMPTY_POLYLINE=function(){return!(this.paths&&this.paths.length>0&&this.paths[0]&&this.paths[0].length>0)},EsriPolylineModel}(u),p=function(e){function EsriPolygonModel(t){var i=e.call(this,t)||this;i.exceptDefaultWhitelist=["rings","z","m"];return t=t||{},Object.assign(i,{rings:[[]]}),Object(s.g)(t.rings)&&(i.rings=t.rings),Object(s.h)(t.z)&&(i.z=t.z),Object(s.h)(t.m)&&(i.m=t.m),i}return Object(n.b)(EsriPolygonModel,e),EsriPolygonModel.isEsriPolygon=function(e){return!!(e&&e.rings&&Object(s.g)(e.rings))},EsriPolygonModel.prototype.toJson=function(){if(this.IS_EMPTY_POLYGON())return null;var e=this.cloneObjByKeys(this.exceptDefaultWhitelist);return e.spatialReference&&this.spatialReference&&(e.spatialReference=Object(o.b)(this.spatialReference,["wkid"])),e},Object.defineProperty(EsriPolygonModel.prototype,"stringValue",{get:function(){var e="";return this.rings.length&&this.rings[0].forEach((function(t,i,n){i!==n.length-1?e+=t[1]+" "+t[0]+";":e+=t[1]+" "+t[0]})),e},enumerable:!1,configurable:!0}),EsriPolygonModel.prototype.updateByStringValue=function(e,t){Object(s.h)(t)&&(this.spatialReference.wkid=t),Object(s.h)(this.spatialReference.wkid)||(this.spatialReference.wkid=4326);var i=e.split(/\s*?;/),n=[];i.length&&(n=[[]]),i.forEach((function(e){var t=(e=e.replace(/(^\s*)|(\s*$)/g,"")).split(/\s/);2===t.length&&n[0].push([Number(t[1]),Number(t[0])])})),Object(s.f)(n)&&(this.rings=n)},EsriPolygonModel.prototype.validate=function(){var e=this._validateGeometryModel();return e.addValidateResult(Object(r.c)(this,{array:["rings"],number:["z","m"]})),e.check()},EsriPolygonModel.prototype.IS_EMPTY_POLYGON=function(){return!(this.rings&&this.rings.length>0&&this.rings[0]&&this.rings[0].length>0)},EsriPolygonModel}(u)},function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));var n=i(1),r=i(75),o=i(3),s=i(4),a=i(6),u=function(e){function EsriQuestionTypeModel(t){var i=e.call(this,t)||this;return t=t||{},Object.assign(i,{isVisible:!0}),Object(o.h)(t.defaultValue)&&(i.defaultValue=t.defaultValue),Object(o.h)(t.isCachedAnswer)&&(i.isCachedAnswer=t.isCachedAnswer),Object(o.h)(t.calculation)&&(i.calculation=t.calculation),Object(o.h)(t.isReadOnly)&&(i.isReadOnly=t.isReadOnly),Object(o.h)(t.isVisible)&&(i.isVisible=t.isVisible),i}return Object(n.b)(EsriQuestionTypeModel,e),EsriQuestionTypeModel.prototype.toJson=function(e){return e=new a.b(e),this._toJson(e)},EsriQuestionTypeModel.prototype.validate=function(e){var t=this._validateQuestionModel(r.a.EsriQuestionType,e);return t.addValidateResult(Object(s.c)(this,{string:["calculation"],boolean:["isCachedAnswer","isReadOnly","isVisible"]},{errorMsgPrefix:"["+this.label+" (id="+this.id+")]"})),t.check()},EsriQuestionTypeModel}(r.a)},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,i){var n=i(13);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=i(4),r=i(16),o=i(5),s=function(){function EsriAppearanceModel(e){this.whitelist=["layout"],this.defaultLayouts=["vertical","horizontal","horizontal-compact","minimal","autocomplete","day-month-year","year","month-year","week-number","hidden"];e=e||{},Object.assign(this,{},e)}return EsriAppearanceModel.prototype.setWhitelist=function(e){e=e||[],this.whitelist=this.whitelist.concat(e)},EsriAppearanceModel.prototype.toJson=function(){return Object(r.b)(this,this.whitelist)},EsriAppearanceModel.prototype.validate=function(e){e=Object.assign({supportLayouts:[]},e||{});var t=new n.a;t.addValidateResult(Object(n.c)(this,{string:["layout"]}));var i=e.supportLayouts||this.defaultLayouts;return this.layout&&-1===i.indexOf(this.layout)&&t.addError(new o.a("The layout is not supported. Only support: "+i.join(", "))),t.check()},EsriAppearanceModel}()},function(e,t,i){var n=i(81)("wks"),r=i(50),o=i(10).Symbol,s="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=s&&o[e]||(s?o:r)("Symbol."+e))}).store=n},function(e,t,i){"use strict";i.d(t,"a",(function(){return CLONE})),i.d(t,"b",(function(){return CLONE_OBJ_BY_KEYS}));var n=i(3);function CLONE(e,t){return"deepclone"===(t=t||"dojo")||Object(n.j)()?deepClone(e):window&&window.dojo&&dojo.clone?function dojoClone(e){try{return dojo.clone(e)}catch(e){console.log(e)}}(e):deepClone(e)}function deepClone(e){if(!e||"object"!=typeof e||"[object Function]"===Object.prototype.toString.call(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);var t,i,n;if(e instanceof Array)for(t=[],i=0,n=e.length;i0&&-1===t.indexOf(o)&&(s=!1),s){var a=e[o];(i.supportNullKeys.indexOf(o)>=0&&void 0!==a||null!=a)&&(r[o]=CLONE(a))}}return r}},function(e,t,i){var n=i(32),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t){var i=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},function(e,t,i){e.exports=!i(11)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(12),r=i(134),o=i(42),s=Object.defineProperty;t.f=i(19)?Object.defineProperty:function defineProperty(e,t,i){if(n(e),t=o(t,!0),n(i),r)try{return s(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(39);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(10),r=i(25),o=i(24),s=i(50)("src"),a=i(181),u=(""+a).split("toString");i(18).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,i,a){var c="function"==typeof i;c&&(o(i,"name")||r(i,"name",t)),e[t]!==i&&(c&&(o(i,s)||r(i,s,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=i:a?e[t]?e[t]=i:r(e,t,i):(delete e[t],r(e,t,i)))})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&this[s]||a.call(this)}))},function(e,t,i){var n=i(2),r=i(11),o=i(39),s=/"/g,createHTML=function(e,t,i,n){var r=String(o(e)),a="<"+t;return""!==i&&(a+=" "+i+'="'+String(n).replace(s,""")+'"'),a+">"+r+""};e.exports=function(e,t){var i={};i[e]=t(createHTML),n(n.P+n.F*r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",i)}},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n=i(20),r=i(49);e.exports=i(19)?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(70),r=i(39);e.exports=function(e){return n(r(e))}},function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var n=i(1),r=i(9),o=i(4),s=i(3),a=i(16),u=i(5),c=i(97),l=i(6),d=function(e){function EsriQuestionTypeAttachmentModel(t,i){var n=e.call(this,t)||this;n.type=EsriQuestionTypeAttachmentModel.EsriQuestionType,n.fieldType="esriAttachment",n._supportFileTypes=["image","archive","document","custom","audio","video"],n._defaultSupportFileExtensionObj={archive:["zip","7z","tar"],document:["pdf","doc","docx","xls","xlsx","pptx","ppt","txt"],image:["bmp","gif","jp2","jpg","jpeg","jpe","png","psd","sid","tif","tiff"],custom:["*"]},n._fileExtensionWhiteList=["bmp","eps","ps","gif","jp2","jpg","jpeg","jpe","png","psd","sid","tif","tiff","wmf","wps","avi","mpg","mpeg","mov","wmv","aif","mid","rmi","mp2","mp3","mp4","mpa","mpv2","qt","ra","ram","wav","wma","doc","docx","dot","xls","xlsx","xlt","pdf","ppt","pptx","txt","zip","7z","gz","gtar","tar","vrml","gml","json","geojson","xml","mdb","csv"],n._exceptDefaultWhitelist=["validation","fieldType"],n._mimeTypeMapping={bmp:"image/bmp",eps:"application/postscript",ps:"application/postscript",gif:"image/gif",jp2:"image/jp2",jpg:"image/jpeg",jpeg:"image/jpeg",jpe:"image/jpeg",png:"image/png",psd:"image/vnd.adobe.photoshop",sid:"image/x-mrsid-image",tif:"image/tiff",tiff:"image/tiff",wmf:"application/x-msmetafile",wps:"application/vnd.ms-works",avi:"video/x-msvideo",mpg:"video/mpeg",mpeg:"video/mpeg",mov:"video/quicktime",wmv:"video/x-ms-wmv",aif:"audio/x-aiff",mid:"audio/midi",rmi:"audio/midi",mp2:"audio/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpa:"video/x-mpg",mpv2:"video/mpeg",qt:"video/quicktime",ra:"audio/x-pn-realaudio",ram:"audio/x-pn-realaudio",wav:"audio/x-wav",wma:"audio/x-ms-wma",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",pdf:"application/pdf",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",txt:"text/plain",zip:"application/zip","7z":"application/x-7z-compressed",gz:"application/gzip",gtar:"application/x-gtar",tar:"application/x-tar",vrml:"model/vrml",gml:"application/gml+xml",json:"application/json",geojson:"application/vnd.geo+json",xml:"application/xml",mdb:"application/x-msaccess",csv:"text/csv"},t&&void 0!==t.fieldType&&(n.fieldType=t.fieldType),i=Object.assign({attachmentFileType:""},i||{});var r={validation:new o.b({inputCount:{isEnabled:!0,min:1,max:1},allowFileType:{type:i.attachmentFileType,exts:n._defaultSupportFileExtensionObj[i.attachmentFileType]||[]}})};if(t=t||{},Object.assign(n,r),n.setName(n.name),n.fieldName=null,Object(s.h)(t.validation)){n.validation=new o.b(t.validation),n.validation.allowFileType&&n.validation.allowFileType.type!==i.attachmentFileType&&(n.validation.allowFileType.type=i.attachmentFileType);var u=n.validation.allowFileType.type;!n.validation.allowFileType.exts&&u&&-1!==n._supportFileTypes.indexOf(u)&&(n.validation.allowFileType.exts=Object(a.a)(n._defaultSupportFileExtensionObj[u])||[]),n.validation.inputCount=n.validation.inputCount||r.validation.inputCount}return n}return Object(n.b)(EsriQuestionTypeAttachmentModel,e),EsriQuestionTypeAttachmentModel.prototype.toJson=function(e){e=new l.b(e),this.validation&&this.validation.setWhitelist(["inputCount","allowFileType","imageDimension"]),e.whiteLists=this._exceptDefaultWhitelist;var t=this._toJson(e);return t.validation&&this.validation&&(t.validation=this.validation.toJson?this.validation.toJson():this.validation),delete t.fieldName,t},EsriQuestionTypeAttachmentModel.prototype.isSupportedFileExtension=function(e){return-1!==this._fileExtensionWhiteList.indexOf(e)||"*"===e},EsriQuestionTypeAttachmentModel.prototype.setAllowFileType=function(e,t){e&&-1!==this._supportFileTypes.indexOf(e)&&(this.validation.allowFileType.type=e,t&&this.setAllowFileExtensions(this._defaultSupportFileExtensionObj[e]))},EsriQuestionTypeAttachmentModel.prototype.getAllowFileType=function(){return this.validation.allowFileType.type},EsriQuestionTypeAttachmentModel.prototype.setAllowFileExtensions=function(e){var t=this;if(e=e||[],!Array.isArray(e))throw new u.a(c.a.getMessage("question02"));var i=e.filter((function(e,i){return!1===t.isSupportedFileExtension(e)}));if(i.length>0)throw new u.a(""+c.a.getMessage("question03")+i.join(", "));this.validation.allowFileType.exts=Object(a.a)(e)},EsriQuestionTypeAttachmentModel.prototype.getAllowFileExtensions=function(){return this.validation.allowFileType.exts},EsriQuestionTypeAttachmentModel.prototype.getAllAllowFileExtensions=function(){return this._fileExtensionWhiteList},EsriQuestionTypeAttachmentModel.prototype.getDefaultAllowFileExtensions=function(){var e=this.validation.allowFileType.type;return"custom"===e?Object(a.a)(this.getAllAllowFileExtensions()):Object(a.a)(this._defaultSupportFileExtensionObj[e])},EsriQuestionTypeAttachmentModel.prototype.getAllowFileMimeTypes=function(){var e=this,t=[],i=Object(a.a)(this.validation.allowFileType.exts)||[];return(i=i&&1===i.length&&"*"===i[0]?this.getDefaultAllowFileExtensions():this.getAllowFileExtensions()).forEach((function(i){var n=e._mimeTypeMapping[i];n&&t.push(n)})),t},EsriQuestionTypeAttachmentModel.prototype.getExtsByParentMimeType=function(e){var t=this;if(e&&-1!==e.indexOf("*")){if("*/*"===e)return Object.keys(this._mimeTypeMapping);switch(e){case"image/*":return Object.keys(this._mimeTypeMapping).filter((function(e){return t._mimeTypeMapping[e]&&-1!==t._mimeTypeMapping[e].trim().indexOf("image/")}));case"audio/*":return Object.keys(this._mimeTypeMapping).filter((function(e){return t._mimeTypeMapping[e]&&-1!==t._mimeTypeMapping[e].trim().indexOf("audio/")}));case"video/*":return Object.keys(this._mimeTypeMapping).filter((function(e){return t._mimeTypeMapping[e]&&-1!==t._mimeTypeMapping[e].trim().indexOf("video/")}));default:return[]}}},EsriQuestionTypeAttachmentModel.prototype.getExtByMimeType=function(e){var t=this,i=[];return e&&Object.keys(this._mimeTypeMapping).forEach((function(n){t._mimeTypeMapping[n]===e&&i.push(n)})),i},EsriQuestionTypeAttachmentModel.prototype.upgrade=function(e){if(this._compareVersion(e,"3.1")<0){var t=Object.assign({},this.validation.limitFileCount);delete this.validation.limitFileCount,this.validation.inputCount=t}},EsriQuestionTypeAttachmentModel.prototype._validateQuestionAttachmentModel=function(e,t){var i=this._validateQuestionModel(e,t);return this.validation&&(this.validation instanceof o.b?i.addValidateResult(this.validation.validate()):i.addError("The validation in '"+this.label+"' (id="+this.id+") is not instanceof EsriValidationModel")),i.check(),this._setErrorsByValidateResult(i),i},EsriQuestionTypeAttachmentModel.EsriQuestionType="esriQuestionTypeAttachment",EsriQuestionTypeAttachmentModel}(r.a)},function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return n}));var n,r=function r(e){Object.assign(this,{extraWhiteLists:[]},e||{})};!function(e){e.choiceItemCodedValuePrefix="choice_",e.choiceOtherSuffix="_other"}(n||(n={}))},function(e,t,i){"use strict";var n=i(11);e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){var n=i(31);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t,i){var n=i(71),r=i(49),o=i(26),s=i(42),a=i(24),u=i(134),c=Object.getOwnPropertyDescriptor;t.f=i(19)?c:function getOwnPropertyDescriptor(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(a(e,t))return r(!n.f.call(e,t),e[t])}},function(e,t,i){var n=i(2),r=i(18),o=i(11);e.exports=function(e,t){var i=(r.Object||{})[e]||Object[e],s={};s[e]=t(i),n(n.S+n.F*o((function(){i(1)})),"Object",s)}},function(e,t,i){var n=i(30),r=i(70),o=i(21),s=i(17),a=i(150);e.exports=function(e,t){var i=1==e,u=2==e,c=3==e,l=4==e,d=6==e,p=5==e||d,h=t||a;return function(t,a,f){for(var y,m,g=o(t),v=r(g),E=n(a,f,3),b=s(v.length),T=0,w=i?h(t,b):u?h(t,0):void 0;b>T;T++)if((p||T in v)&&(m=E(y=v[T],T,g),e))if(i)w[T]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return T;case 2:w.push(y)}else if(l)return!1;return d?-1:c||l?l:w}}},function(e,t,i){"use strict";i.d(t,"b",(function(){return u})),i.d(t,"c",(function(){return c})),i.d(t,"e",(function(){return setCommonParams})),i.d(t,"d",(function(){return getCommonParams})),i.d(t,"a",(function(){return l}));var n,r=i(5),o=i(169),s=function(){function Survey123Auth(){return null}return Survey123Auth.prototype.validateRedirectUri=function(e,t){var i=this;return"survey:post-install"===(t=Object.assign({portalUrl:"https://www.arcgis.com",redirectUri:window.location.origin,itemId:null},t||{})).itemId?Promise.resolve(!0):Promise.resolve(!0).then((function(){if(!e)throw new r.a({surveyErrorCode:"jsapi02"});t.portalUrl=t.portalUrl||"https://www.arcgis.com",t.redirectUri=t.redirectUri||window.location.origin})).then((function(){var n=i._getOauthUrl(t.portalUrl)+"/validateRedirectUri?client_id="+e+"&redirect_uri="+t.redirectUri+"&f=json";return fetch(n).then((function(e){return e.json()}))})).then((function(e){return!(!e||!e.valid)&&!0===e.valid})).catch((function(e){throw e}))},Survey123Auth.prototype.getPortalOauthAuthorizeUrl=function(e){var t=(e=Object.assign({responseType:"token",itemId:null,redirectUri:window.location.href,portalUrl:"https://www.arcgis.com",clientId:null},e||{})).redirectUri||window.location.href;t=encodeURIComponent(t);var i=o.a.getConfig("survey123WebformTokenExpirationInMinutes"),n=this._getOauthUrl(e.portalUrl)+"/authorize?client_id="+e.clientId+"&response_type="+e.responseType+"&expiration="+i+"&redirect_uri="+t;return e.itemId&&(n+="&resourceItemId="+e.itemId),n},Survey123Auth.prototype.getOAuthCredentialFromHash=function(){if(!window.location.hash)return null;for(var e,t={},i=0,n=window.location.hash.substring(1).split("&");i0&&i.addValidateResult(this.appearance.validate({supportLayouts:this._defaultLayouts})):i.addError("The appearance in '"+this.label+"' (id="+this.id+") is not instanceof EsriAppearanceModel")),i.check(),this._setErrorsByValidateResult(i),i},EsriQuestionTypeChoiceModel.EsriQuestionType="esriQuestionTypeChoiceModel",EsriQuestionTypeChoiceModel}(r.a)},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){"use strict";if(i(19)){var n=i(51),r=i(10),o=i(11),s=i(2),a=i(92),u=i(122),c=i(30),l=i(66),d=i(49),p=i(25),h=i(67),f=i(32),y=i(17),m=i(161),g=i(53),v=i(42),E=i(24),b=i(72),T=i(13),w=i(21),C=i(114),M=i(54),S=i(56),O=i(55).f,I=i(116),_=i(50),x=i(15),A=i(35),R=i(82),N=i(73),Q=i(118),j=i(64),k=i(85),P=i(65),L=i(117),D=i(152),V=i(20),G=i(33),U=V.f,B=G.f,W=r.RangeError,q=r.TypeError,J=r.Uint8Array,H=Array.prototype,Y=u.ArrayBuffer,z=u.DataView,K=A(0),X=A(2),$=A(3),Z=A(4),ee=A(5),te=A(6),ie=R(!0),ne=R(!1),re=Q.values,oe=Q.keys,se=Q.entries,ae=H.lastIndexOf,ue=H.reduce,ce=H.reduceRight,le=H.join,de=H.sort,pe=H.slice,he=H.toString,fe=H.toLocaleString,ye=x("iterator"),me=x("toStringTag"),ge=_("typed_constructor"),ve=_("def_constructor"),Ee=a.CONSTR,be=a.TYPED,Te=a.VIEW,we=A(1,(function(e,t){return allocate(N(e,e[ve]),t)})),Ce=o((function(){return 1===new J(new Uint16Array([1]).buffer)[0]})),Me=!!J&&!!J.prototype.set&&o((function(){new J(1).set({})})),toOffset=function(e,t){var i=f(e);if(i<0||i%t)throw W("Wrong offset!");return i},validate=function(e){if(T(e)&&be in e)return e;throw q(e+" is not a typed array!")},allocate=function(e,t){if(!T(e)||!(ge in e))throw q("It is not a typed array constructor!");return new e(t)},speciesFromList=function(e,t){return fromList(N(e,e[ve]),t)},fromList=function(e,t){for(var i=0,n=t.length,r=allocate(e,n);n>i;)r[i]=t[i++];return r},addGetter=function(e,t,i){U(e,t,{get:function(){return this._d[i]}})},Se=function from(e){var t,i,n,r,o,s,a=w(e),u=arguments.length,l=u>1?arguments[1]:void 0,d=void 0!==l,p=I(a);if(null!=p&&!C(p)){for(s=p.call(a),n=[],t=0;!(o=s.next()).done;t++)n.push(o.value);a=n}for(d&&u>2&&(l=c(l,arguments[2],2)),t=0,i=y(a.length),r=allocate(this,i);i>t;t++)r[t]=d?l(a[t],t):a[t];return r},Oe=function of(){for(var e=0,t=arguments.length,i=allocate(this,t);t>e;)i[e]=arguments[e++];return i},Ie=!!J&&o((function(){fe.call(new J(1))})),_e=function toLocaleString(){return fe.apply(Ie?pe.call(validate(this)):validate(this),arguments)},xe={copyWithin:function copyWithin(e,t){return D.call(validate(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function every(e){return Z(validate(this),e,arguments.length>1?arguments[1]:void 0)},fill:function fill(e){return L.apply(validate(this),arguments)},filter:function filter(e){return speciesFromList(this,X(validate(this),e,arguments.length>1?arguments[1]:void 0))},find:function find(e){return ee(validate(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function findIndex(e){return te(validate(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function forEach(e){K(validate(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function indexOf(e){return ne(validate(this),e,arguments.length>1?arguments[1]:void 0)},includes:function includes(e){return ie(validate(this),e,arguments.length>1?arguments[1]:void 0)},join:function join(e){return le.apply(validate(this),arguments)},lastIndexOf:function lastIndexOf(e){return ae.apply(validate(this),arguments)},map:function map(e){return we(validate(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function reduce(e){return ue.apply(validate(this),arguments)},reduceRight:function reduceRight(e){return ce.apply(validate(this),arguments)},reverse:function reverse(){for(var e,t=validate(this).length,i=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function sort(e){return de.call(validate(this),e)},subarray:function subarray(e,t){var i=validate(this),n=i.length,r=g(e,n);return new(N(i,i[ve]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,y((void 0===t?n:g(t,n))-r))}},Ae=function slice(e,t){return speciesFromList(this,pe.call(validate(this),e,t))},Re=function set(e){validate(this);var t=toOffset(arguments[1],1),i=this.length,n=w(e),r=y(n.length),o=0;if(r+t>i)throw W("Wrong length!");for(;o255?255:255&n),r.v[h](i*t+r.o,n,Ce)}(this,i,e)},enumerable:!0})};E?(f=i((function(e,i,n,r){l(e,f,c,"_d");var o,s,a,u,d=0,h=0;if(T(i)){if(!(i instanceof Y||"ArrayBuffer"==(u=b(i))||"SharedArrayBuffer"==u))return be in i?fromList(f,i):Se.call(f,i);o=i,h=toOffset(n,t);var g=i.byteLength;if(void 0===r){if(g%t)throw W("Wrong length!");if((s=g-h)<0)throw W("Wrong length!")}else if((s=y(r)*t)+h>g)throw W("Wrong length!");a=s/t}else a=m(i),o=new Y(s=a*t);for(p(e,"_d",{b:o,o:h,l:s,e:a,v:new z(o)});d=0)&&(e[n]=r),e}),{})},CommonStyle.prototype._ensureDefaultColor=function(e){var t=this;e&&Object(n.e)(e)&&(Object.keys(e).forEach((function(i){t[i]=t[i]||e[i]})),this.backgroundImage&&(this.backgroundType="image"),"repeatVertical"===this.backgroundImageFit&&(this.backgroundImageFit="repeatY"))},CommonStyle.prototype._addUrlOnBackgroundImagePath=function(e){var t=""+e;return!1===this._hasUrlOnBackgroundImagePath(e)&&(t="url("+e+")"),t},CommonStyle.prototype._hasUrlOnBackgroundImagePath=function(e){return new RegExp(this._backgroundImageUrlRegexp).test(e)},CommonStyle.prototype._removeUrlOnBackgroundImagePath=function(e){var t=""+e,i=new RegExp(this._backgroundImageUrlRegexp).exec(e);return i.length>1&&(t=""+i[1].replace("(","").replace(")","")),t},CommonStyle}(),a=function(e){function FormStyle(t){var i=e.call(this,t)||this;i._whiteLists=["backgroundColor","backgroundImage","backgroundImageFit","backgroundOpacity","primaryColor","primaryTextColor","textColor","inputTextColor","inputBackgroundColor"],t=t||{};var o={primaryColor:r.x,primaryTextColor:r.I,inputTextColor:r.r,inputBackgroundColor:r.I,inputBackgroundOpacity:1,backgroundColor:r.I,textColor:r.r,backgroundImageFit:"repeat"};return Object.assign(i,o,t),i._ensureDefaultColor(o),i.backgroundImage&&(i.backgroundImage=Object(n.b)(i.backgroundImage)),i}return Object(o.b)(FormStyle,e),FormStyle}(s),u=function(e){function HeaderStyle(t){var i=e.call(this,t)||this;i._whiteLists=["backgroundColor","backgroundImage","backgroundImageFit","textColor"];var n={backgroundColor:r.x,textColor:r.I};return Object.assign(i,n,t||{}),i._ensureDefaultColor(n),i}return Object(o.b)(HeaderStyle,e),HeaderStyle}(s),c=function(e){function WebpageStyle(t){var i=e.call(this,t)||this;i._whiteLists=["backgroundColor","backgroundImage","backgroundImageFit"];var r={backgroundImageFit:"fill"};return Object.assign(i,r,t||{}),i._ensureDefaultColor(r),i.backgroundImage&&(i.backgroundImage=Object(n.b)(i.backgroundImage)),i}return Object(o.b)(WebpageStyle,e),WebpageStyle}(s),l=i(170),d=function(){function FormTheme(e){this._whitelists=["id","name","header","form","webpage","isEnabled"],this._supportedFormStyles=["header","form","webpage"];var t={id:null,name:"theme-color1",isEnabled:!1,header:new u({textColor:r.I}),form:new a,webpage:new c,_calculatedColor:{}};Object.assign(this,t),this.update(e)}return FormTheme.prototype.setId=function(e){this.id=e},FormTheme.prototype.getId=function(){return this.id},FormTheme.prototype.update=function(e){if(e=e||{},Object.assign(this,e),Object(n.h)(e.header)&&"object"==typeof e.header&&(this.header=new u(e.header)),Object(n.h)(e.form)&&"object"==typeof e.form){var t=e.form;e.primaryColor&&(t=Object.assign({primaryColor:e.primaryColor},e.form),delete this.primaryColor),this.form=new a(t)}Object(n.h)(e.webpage)&&"object"==typeof e.webpage&&(this.webpage=new c(e.webpage)),Object(n.h)(e.webPage)&&"object"==typeof e.webPage&&(this.webpage=new c(e.webPage),delete this.webPage)},FormTheme.prototype.updateFromDisplayInfoStyle=function(e){var t=this;e=e||{};var i=!1;Object.keys(e).forEach((function(n){var r=e[n];null!=r&&(-1!==["toolbarBackgroundColor","toolbarTextColor"].indexOf(n)?("toolbarBackgroundColor"===n&&r!==t.header.backgroundColor&&(i=!0),"toolbarTextColor"===n&&r!==t.header.textColor&&(i=!0)):r!==t.form[n]&&(i=!0))})),i&&this.update({name:"theme-custom",webpage:{backgroundImage:this.webpage.backgroundImage,backgroundColor:this.webpage.backgroundColor,backgroundType:e.backgroundImage?"image":"color"},form:{inputBackgroundColor:e.inputBackgroundColor||this.form.inputBackgroundColor,inputTextColor:e.inputTextColor||this.form.inputTextColor,textColor:e.textColor||this.form.textColor,backgroundOpacity:this.form.backgroundOpacity||1,primaryColor:e.toolbarBackgroundColor||this.form.primaryColor,primaryTextColor:e.toolbarTextColor||this.form.primaryTextColor,backgroundColor:e.backgroundColor||this.form.backgroundColor,backgroundImage:e.backgroundImage||this.form.backgroundImage},header:{backgroundColor:e.toolbarBackgroundColor||this.header.backgroundColor,textColor:e.toolbarTextColor||this.header.textColor}})},FormTheme.prototype.updateFromOrgSharedTheme=function(e){e=new l.a(e||{}),this.update({name:"theme-orgShared",header:{backgroundColor:e.getValue("button.background")||r.x,textColor:e.getValue("header.text")||r.a},form:{textColor:e.getValue("body.text")||r.a,primaryColor:e.getValue("button.background")||r.x,primaryTextColor:e.getValue("button.text")||r.a},webpage:{backgroundColor:e.getValue("body.background")||r.t}})},FormTheme.prototype.toJson=function(){var e=this,t=Object.keys(this).reduce((function(t,i){if(-1===e._whitelists.indexOf(i))return t;var n=e[i];return n instanceof s&&(n=n.toJson()),t[i]=n,t}),{});return t.name=t.name||"theme-color1",t},FormTheme.prototype.isCustomTheme=function(){return"theme-custom"===this.name},FormTheme.prototype.isImportTheme=function(){return"theme-import"===this.name},FormTheme.prototype.getCustomizedThemeName=function(){return"theme-custom"},FormTheme.prototype.setStyle=function(e,t){if(-1!==this._supportedFormStyles.indexOf(e)){var i=Object.assign(this[e]||{},t||{}),n=void 0;"header"===e&&(n=new u(i)),"form"===e&&(n=new a(i)),"webpage"===e&&(n=new c(i)),this[e]=n,this[e].setCssStyle()}},FormTheme.prototype.getStyle=function(e,t){if(-1!==this._supportedFormStyles.indexOf(e)){var i=this[e];return t&&i?i[t]:i}return null},FormTheme.prototype.setName=function(e){this.name=e},FormTheme.prototype.getName=function(){return this.name},FormTheme.prototype.resetStyle=function(e){var t=this;(e=Object.assign({includeStyles:this._supportedFormStyles,excludeStyles:[]},e||{})).includeStyles.forEach((function(i){t[i]&&-1===e.excludeStyles.indexOf(i)&&(t[i]=null,t[i]=t.setStyle(i,null))}))},FormTheme.prototype.setStyleFromOrgTheme=function(e){var t=this;e=e||{},Object.keys(e).forEach((function(i){var n=null,r=e[i];"header"===i&&(n=i),n&&r&&"object"==typeof r&&Object.keys(r).length>0&&(t[n]=Object.keys(r).reduce((function(e,t){var i=r[t];return i&&("background"===t&&(e.backgroundColor=i),"text"===t&&(e.textColor=i)),e}),{}))}))},FormTheme.prototype.setCssStyle=function(){var e=this;["header","webpage","form"].forEach((function(t){e[t]&&e[t].setCssStyle&&e[t].setCssStyle()}))},FormTheme.prototype.getCalculatedColor=function(e){if(!this._calculatedColor)throw new Error("calcualtedColor is null. Please run calculateRuntimeColor() first");return e&&this._calculatedColor?this._calculatedColor[e]:this._calculatedColor},FormTheme.prototype.setCalculatedColor=function(e,t){e&&(this._calculatedColor[e]=t)},FormTheme}()},function(e,t,i){var n=i(13);e.exports=function(e,t){if(!n(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!n(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,i){var n=i(50)("meta"),r=i(13),o=i(24),s=i(20).f,a=0,u=Object.isExtensible||function(){return!0},c=!i(11)((function(){return u(Object.preventExtensions({}))})),setMeta=function(e){s(e,n,{value:{i:"O"+ ++a,w:{}}})},l=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";setMeta(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;setMeta(e)}return e[n].w},onFreeze:function(e){return c&&l.NEED&&u(e)&&!o(e,n)&&setMeta(e),e}}},function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i(4),r=i(16),o=function(){function EsriWebMapModel(e){this.type="webmap",this.whitelist=["itemId","type","name","isDefault"],this.defaultTypes=["webmap","basemap","linkedItem"];e=e||{},Object.assign(this,{},e)}return EsriWebMapModel.prototype.setWhitelist=function(e){e=e||[],this.whitelist=this.whitelist.concat(e)},EsriWebMapModel.prototype.toJson=function(){return Object(r.b)(this,this.whitelist)},EsriWebMapModel.prototype.validate=function(){var e=new n.a;return e.addValidateResult(Object(n.c)(this,{string:["type","itemId","title","name","thumbnail","portalUrl"]})),-1===this.defaultTypes.indexOf(this.type)&&e.addError("The type, "+this.type+", is not supported. Only support: "+this.defaultTypes.join(", ")),this.extent&&e.addError("The extent is deprecated in v2.6"),e.check()},EsriWebMapModel}()},function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var n=i(1),r=i(9),o=i(27),s=i(93),a=i(3),u=i(14),c=i(6),l=null,d=function(e){function EsriQuestionTypeGroupModel(t,i){var n=e.call(this,t)||this;n.type=EsriQuestionTypeGroupModel.EsriQuestionType,n.isRequired=!1,n.isGroupInstance=!0,i=Object.assign({oldFormVersion:null,useMapQuestionType:!1},i||{});var r={questions:[],appearance:new u.a({layout:"expanded"})};return t=t||{},Object.assign(n,r),Object(a.h)(t.questions)&&(n.questions=n._convertByQuestions(t.questions,i)),Object(a.h)(t.isRequired)&&(n.isRequired=t.isRequired),Object(a.h)(t.appearance)&&(n.appearance=new u.a(t.appearance)),n.updateSubQuestionIndexes(),n}return Object(n.b)(EsriQuestionTypeGroupModel,e),EsriQuestionTypeGroupModel.prototype.toJson=function(e){(e=new c.b(e)).whiteLists=["appearance"];var t=this._toJson(e);return this.questions&&(t.questions=this.questions.map((function(t,i){return t.toJson?t.toJson(e):t}))),t.appearance&&this.appearance&&(t.appearance=this.appearance.toJson?this.appearance.toJson():this.appearance),delete t.isRequired,t},EsriQuestionTypeGroupModel.prototype.validate=function(e){return this._validateGroupModel(EsriQuestionTypeGroupModel.EsriQuestionType,e)},EsriQuestionTypeGroupModel.prototype.addQuestion=function(e,t){t=Object.assign({index:-1},t||{}),e&&("number"==typeof t.index&&t.index>-1?this.questions.splice(t.index,0,e):this.questions.push(e)),this.updateSubQuestionIndexes()},EsriQuestionTypeGroupModel.prototype.removeQuestion=function(e){"number"==typeof e&&e>-1&&(this.questions.splice(e,1),this.updateSubQuestionIndexes())},EsriQuestionTypeGroupModel.prototype.moveQuestion=function(e,t){var i=this.questions;if(i&&i.length&&t0||t.from.length>0)})),i},EsriQuestionTypeGroupModel.prototype.getAttachmentQuestions=function(){return this.questions.filter((function(e){return e instanceof o.a||e instanceof s.a}))},EsriQuestionTypeGroupModel.prototype._validateGroupModel=function(e,t){var i=this._validateQuestionModel(e,t);return this.questions&&Array.isArray(this.questions)?this.questions.forEach((function(e){i.addValidateResult(e.validate(t))})):i.addError("The questions in '"+this.label+"' (id="+this.id+") is not existed or not an array"),i.check(),this._setErrorsByValidateResult(i),i},EsriQuestionTypeGroupModel.prototype._convertByQuestions=function(e,t){if(!(l||(l||(l=i(168).convertByQuestions),l=l)))throw new Error("cannot find _convertByQuestions");return l(e,t)},EsriQuestionTypeGroupModel.EsriQuestionType="esriQuestionTypeGroup",EsriQuestionTypeGroupModel}(r.a)},function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=i(16),r=i(4),o=i(28),s=function(){function EsriChoiceItemStyleModel(e){this._whitelist=[];e=e||{},Object.assign(this,{},e)}return EsriChoiceItemStyleModel.prototype.setWhitelist=function(e){e=e||[],this._whitelist=this._whitelist.concat(e)},EsriChoiceItemStyleModel.prototype.toJson=function(e){e=new o.b(e);var t=this._whitelist.concat(e.extraWhiteLists);return Object(n.b)(this,t)},EsriChoiceItemStyleModel.prototype.validate=function(){var e=new r.a;return e.addValidateResult(Object(r.c)(this,{array:["gradientColor","gradientSize"],string:["mediaType","mediaUrl","backgroundColor","color"]})),e.check()},EsriChoiceItemStyleModel}()},function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var n=i(3),r=i(16),o=i(4),s=i(127),a=i(28),u=i(46),c=function(){function EsriChoiceItemModel(e){this.isNameModified=!1,this._whitelist=["label","value","position"],this._defaultCodedValuePrefix=a.a.choiceItemCodedValuePrefix,this._regExpValidator=/[\,\ \;\-\/\\\$\.\(\)]/;e=e||{},Object.assign(this,{label:null,value:null,position:0},e),Object(n.h)(this.style)&&(this.style=new u.a(this.style))}return EsriChoiceItemModel.prototype.setWhitelist=function(e){e=e||[],this._whitelist=this._whitelist.concat(e)},EsriChoiceItemModel.prototype.toJson=function(e){e=new a.b(e);var t=this._whitelist.concat(e.extraWhiteLists);e.extraWhiteLists&&e.extraWhiteLists.includes("isNameModified")&&this.isPublished&&this.setNameModified(!0);var i=Object(r.b)(this,t);return i.style&&this.style&&(i.style=this.style.toJson?this.style.toJson(e):this.style),i},EsriChoiceItemModel.prototype.validate=function(){var e=new o.a;return e.addValidateResult(Object(o.c)(this,{string:["label","type"],number:["position","groupIndex"],boolean:["isChecked","isPublished"]})),this.style&&(this.style instanceof u.a?e.addValidateResult(this.style.validate()):e.addError(new Error("the choice item style is not EsriChoiceItemStyleModel"))),Object(n.h)(this.value)&&(this.value=this._replaceValue(this.value)),e.check()},EsriChoiceItemModel.prototype.getRegExpValidator=function(e){return new RegExp(this._regExpValidator,e)},EsriChoiceItemModel.prototype.sanitizeLabel=function(e){return e=Object.assign({isUpdateValue:!0,isIgnoreSanitize:!0},e||{}),!0===this.isPublished||!0===this.isNameModified?this.value:(("_"===(t=!0===e.isIgnoreSanitize?this._replaceValue(this.label):Object(s.a)(this.label||"",{isAllowedStartWithNumber:!0}))||t.match(/^\_[0-9]+$/))&&(t=this.resetCodedValue()),!0===e.isUpdateValue&&(this.value=t),t);var t},EsriChoiceItemModel.prototype.resetCodedValue=function(){return this.value=this.getDefaultCodedValue(),this.value},EsriChoiceItemModel.prototype.getDefaultCodedValue=function(){return this._defaultCodedValue||""+this._defaultCodedValuePrefix+this._objectId},EsriChoiceItemModel.prototype.setDefaultCodedValue=function(e){this._defaultCodedValue=e||this.getDefaultCodedValue()},EsriChoiceItemModel.prototype.setObjectId=function(e){this._objectId=""+e},EsriChoiceItemModel.prototype.getObjectId=function(){return this._objectId},EsriChoiceItemModel.prototype.isDefaultValue=function(){var e=!1,t=(""+this.value).toLowerCase();return(t.match(/^choice[0-9]+$/)||t.match(/^choice\_[0-9]+$/))&&(e=!0),e},EsriChoiceItemModel.prototype.setNameModified=function(e){!0!==e&&!1!==e||(this.isNameModified=e)},EsriChoiceItemModel.prototype.getObjectIdFromValue=function(){var e=this.value||"",t=null,i=(""+e).toLowerCase();if(e.match(/^choice[0-9]+$/)||e.match(/^choice\_[0-9]+$/)){var n=(i.split("choice")||i.split("choice_")||[])[1];n&&(n=n.replace(/\_/g,""),isNaN(parseInt(n,10))||(t=""+parseInt(n,10)))}return t},EsriChoiceItemModel.prototype._replaceValue=function(e){return e=(e=""+e||"").replace(this.getRegExpValidator("g"),"_").replace(/_+/g,"_"),e=Object(s.b)(e)},EsriChoiceItemModel}()},function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i(1),r=i(68),o=i(8),s=i(3),a=i(4),u=i(5),c=i(167),l=function(e){function EsriQuestionTypeGeoPointModel(t){var i=e.call(this,t)||this;i.type=EsriQuestionTypeGeoPointModel.EsriQuestionType,i.inputTools=[],i.displayFormats=["DD"],i.fieldType="esriFieldTypeGeometry",i._exceptDefaultWhitelist=["defaultValue","isCachedAnswer","maps","defaultExtent","defaultLocation","isDeviceLocationRequired","inputTools","displayFormats","search"],i._xform={type:"geopoint"},i._defaultinputTools=["pin","locate","search","input"],i._defaultDisplayFormats=["DD","DMS","UTM","MGRS"],t&&void 0!==t.fieldType?i.fieldType=t.fieldType:delete i.fieldType;var n={inputTools:["pin","search","locate"],defaultValue:new o.b};if(t=t||{},Object.assign(i,n),Object(s.h)(t.defaultValue)&&i.setDefaultValue(new o.b(t.defaultValue)),Object(s.h)(t.inputTools)&&(i.inputTools=t.inputTools),Object(s.h)(t.search)&&t.search.sources&&t.search.sources.length>0){var r=[];t.search.sources.forEach((function(e){r.push(new c.a(e))})),i.search.sources=r}return i}return Object(n.b)(EsriQuestionTypeGeoPointModel,e),EsriQuestionTypeGeoPointModel.prototype.toJson=function(e){var t=this._toJson(e);if(t.search&&t.search.sources&&t.search.sources.length>0){var i=[];t.search.sources.forEach((function(e){i.push(e.toJson())})),t.search.sources=i}return t.defaultValue&&this.defaultValue&&(t.defaultValue=this.defaultValue.toJson?this.defaultValue.toJson():this.defaultValue),delete t.fieldName,t},EsriQuestionTypeGeoPointModel.prototype.setDefaultValue=function(e){this.defaultValue=new o.b(e)},EsriQuestionTypeGeoPointModel.prototype.upgrade=function(e){this._compareVersion(e,"3.9")<0&&this.inputModes&&(this.inputModes.indexOf("input")>-1?this.inputTools=["pin","locate","search","input"]:this.inputTools=["pin","locate","search"],delete this.inputModes)},EsriQuestionTypeGeoPointModel.prototype.validate=function(e){var t=this,i=this._validateGeometryModel(EsriQuestionTypeGeoPointModel.EsriQuestionType,e);return i.addValidateResult(Object(a.c)(this,{string:["shareId"]})),this.webmap&&i.addError(new u.a("The value of 'webmap' in '"+this.label+"' (id = "+this.id+") has been deprecated in v2.6")),this.inputTools&&(Array.isArray(this.inputTools)?this.inputTools.forEach((function(e){-1===t._defaultinputTools.indexOf(e)&&i.addError(new u.a("The value of 'inputTools' in '"+t.label+"' (id = "+t.id+") is not supported. Only support: "+t._defaultinputTools.join(", ")))})):i.addError(new u.a("The value of 'inputTools' in '"+this.label+"' (id = "+this.id+") should be an array"))),this.displayFormats&&(Array.isArray(this.displayFormats)?this.displayFormats.forEach((function(e){-1===t._defaultDisplayFormats.indexOf(e)&&i.addError(new u.a("The value of 'displayFormats' in '"+t.label+"' (id = "+t.id+") is not supported. Only support: "+t._defaultDisplayFormats.join(", ")))})):i.addError(new u.a("The value of 'displayFormats' in '"+this.label+"' (id = "+this.id+") should be an array"))),this.defaultValue&&this.defaultValue instanceof o.b&&i.addValidateResult(this.defaultValue.validate()),i.check(),this._setErrorsByValidateResult(i),i},EsriQuestionTypeGeoPointModel.EsriQuestionType="esriQuestionTypeGeoPoint",EsriQuestionTypeGeoPointModel}(r.a)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t){e.exports=!1},function(e,t,i){var n=i(136),r=i(101);e.exports=Object.keys||function keys(e){return n(e,r)}},function(e,t,i){var n=i(32),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?r(e+t,0):o(e,t)}},function(e,t,i){var n=i(12),r=i(137),o=i(101),s=i(100)("IE_PROTO"),Empty=function(){},createDict=function(){var e,t=i(98)("iframe"),n=o.length;for(t.style.display="none",i(102).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("