UNPKG

fa-toolkit

Version:

a devtool for fast app

1 lines 24.5 kB
"use strict";function _0x26c9(){var e=["validator","objectAnchor","86646MWuQhb","#666666","#ffffff","683645SCnPhe","ERROR: An error occurred when parsing the controls attribute of the map component. ","' is not a sub-attribute of polygons.","' value '","132OsEuNf","' is invalid ","ERROR: Attribute '"," The mandatory value is missing: ","match","ERROR: An error occurred when parsing the polylines attribute of the map component.","symbol","' is not a sub-attribute of controls-position.","toString","(the value can only be a digit).","objectEast","keys","type","function","40PoOYWn","5px","right","undefined","' is not a sub-attribute of controls.","replace","always","left","1077142TRIKmo","6727RKGMaL","'value '","#000000","call","true","' is invalid.","value","760iyrANT","center",": Attribute 'markers' contains: \n "," \n ","concat","reason","false","10px","' is not a sub-attribute of circles.",": Attribute 'polygons' contains: \n ","hasOwnProperty","splice","markersLabel","prototype","ERROR: An error occurred when parsing the `polygons` attribute of the map component.",": Attribute 'controls' contains: \n ","push","isEmptyObject"," The mandatory sub-attribute is missing: ","' is not a value of attribute points.","number","' is not a sub-attribute of groundoverlays.","require","color","../style","markersCallout","opacity"," \n ","WARNING: An error occurred when parsing attribute '","WARNING","NOTE","0px",": Attribute 'Label' contains: \n ","def","' is not a sub-attribute of polylines.","length",": Attribute 'polylines' contains: \n ","object","camelCaseToHyphened","forEach","'is not a value of attribute northEast or southWest.","' is not a sub-attribute of Label.","runInThisContext","' value is invalid.","string","uri","isArray","45027fagJlc","20hIYyDK","' has exceeded the threshold.","132063DchTKT",": Attribute 'northEast or southWest' contains: \n ","indexOf","ERROR: An error occurred when parsing the circles attribute of the map component.","ERROR","__esModule","position","2994YtEqAq","' is not a sub-attribute of markers.","join",": Attribute 'controls-position' contains: \n "," Attribute '","5801040JPvuxi","constructor","30px"];return(_0x26c9=function(){return e})()}var _0x3a3b3e=_0x2d28;function _0x2d28(e,r){var t=_0x26c9();return(_0x2d28=function(e,r){return t[e-=173]})(e,r)}function _typeof(e){var t=_0x2d28;return(_typeof=t(261)==typeof Symbol&&t(254)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var r=t;return e&&r(261)==typeof Symbol&&e[r(237)]===Symbol&&e!==Symbol[r(187)]?"symbol":typeof e})(e)}!function(){for(var e=_0x2d28,r=_0x26c9();;)try{if(717216==-parseInt(e(224))*(-parseInt(e(222))/2)+parseInt(e(241))/3*(-parseInt(e(262))/4)+parseInt(e(244))/5+parseInt(e(231))/6*(-parseInt(e(271))/7)+parseInt(e(236))/8+parseInt(e(221))/9*(parseInt(e(174))/10)+-parseInt(e(270))/11*(parseInt(e(248))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}();var _style=require(_0x3a3b3e(198)),_utils=require("../utils"),REGEXP_URI=/^\s*[']?\s*([^()]+?)\s*[']?\s*$/,REGEXP_NUMBER=/^[-+]?[0-9]*\.?[0-9]+$/,logTypes=[_0x3a3b3e(204),_0x3a3b3e(203),_0x3a3b3e(228)],vm=require("vm"),validator={string:function(e){return"string"==typeof e?{value:e}:{value:!1,reason:function(e,r){var t=_0x2d28;return t(250)[t(178)](e,"' value '")[t(178)](r,t(276))}}},opacity:function(e){var a=_0x3a3b3e,r=e,e=(r=(r||"").toString())[a(252)](REGEXP_NUMBER);return e&&!e[1]?0<=parseFloat(r)&&parseFloat(r)<=1?{value:parseFloat(r)}:{value:null,reason:function(e,r){var t=a;return t(250).concat(e,t(247))[t(178)](r,"' has exceeded the threshold.")}}:{value:null,reason:function(e,r){var t=a;return t(250)[t(178)](_utils[t(212)](e),"' value '")[t(178)](r,t(249))+t(257)}}},uri:function(e){e=((e=e)||"").toString().trim(),e=REGEXP_URI.exec(e);return e?{value:e[1]}:{value:null,reason:function(e,r){var t=_0x2d28;return t(202)[t(178)](_utils.camelCaseToHyphened(e),".")}}},objectAnchor:function(r){var a=_0x3a3b3e;if(_typeof(r)!==a(211))return{value:!1,reason:function(e,r){var t=a;return t(250)[t(178)](e,"' value is invalid (the value must be an object).")}};var t=[],o=[];return Object.keys(r)[a(213)](function(e){t[a(190)](e),o.push(r[e])}),"x"!==t[0]||"y"!==t[1]?{value:!1,reason:function(e,r){var t=a;return t(250)[t(178)](e,t(217))}}:o[0]<0||1<o[0]||o[1]<0||1<o[1]?{value:!1,reason:function(e,r){var t=a;return t(250).concat(e,t(223))}}:{value:r}},markers:function(e){var s,a=_0x3a3b3e;try{s=vm[a(216)](e)}catch(e){return{value:!1,reason:function(e,r){return"ERROR: An error occurred when parsing the markers attribute of the map component."}}}var t=[],o=[];Object[a(259)](markersValidatorMap)[a(213)](function(e){var r=a;markersValidatorMap[e][r(196)]&&t[r(190)](e),markersValidatorMap[e].def&&o.push(markersValidatorMap[e][r(207)])});for(var p={},c=[],f=0,r=0;r<s.length;r++)!function(i){var l=a,u=[].concat(t);Object[l(259)](s[i])[l(213)](function(e){var r,t,a,o,n=l;typeof markersValidatorMap[e]===n(265)?(f=2,c.push(n(235)[n(178)](e,n(232)))):(-1!==u[n(226)](e)&&(r=u[n(226)](e),u[n(185)](r,1)),o=markersValidatorMap[e][n(260)],n(261)===typeof o&&("number"!=typeof(t=o(s[i][e])).value&&n(218)!==typeof t[n(173)]||(p[e]=t[n(173)]),t[n(179)]&&((r=(a=t.reason(e,s[i][e]))[n(252)](/^([A-Z]+):/))&&(t=logTypes[n(226)](r[1]),f<t&&(f=t),a=a.replace(r[0],"")),c[n(190)](a))),"string"==typeof o&&(a=_style[n(239)][o],n(261)!==typeof a||(o=a(s[i][e]))&&o[n(179)]&&(p[e]=o[n(173)],(o=(a=o[n(179)](e,s[i][e])).match(/^([A-Z]+):/))&&(e=logTypes[n(226)](o[1]),f<e&&(f=e),a=a[n(267)](o[0],"")),c[n(190)](a))))}),0<u.length&&(f=2,c[l(190)](l(192).concat(u[l(233)](", "))))}(r);return{value:_utils[a(191)](p)?null:e[a(256)]()[a(267)](/\n\s*/g,""),reason:0<c[a(209)]?function(e,r){var t=a;return"".concat(logTypes[f],t(176)).concat(c[t(233)](t(201)))}:null}},markersCallout:function(s){var p=_0x3a3b3e;if(p(211)!==_typeof(s))return{value:!1,reason:function(e,r){var t=p;return t(250)[t(178)](e,"' value is invalid.")}};var c=[],t=[];Object[p(259)](markersCalloutValidatorMap)[p(213)](function(e){var r=p;markersCalloutValidatorMap[e][r(196)]&&c.push(e),markersCalloutValidatorMap[e][r(207)]&&t.push(markersCalloutValidatorMap[e][r(207)])});var f={},y=[],d=0;return Object[p(259)](s).forEach(function(e){var r=p;if(void 0===markersCalloutValidatorMap[e])d=2,y[r(190)](" Attribute '"[r(178)](e,"' is not a sub-attribute of callout."));else{-1!==c.indexOf(e)&&(t=c[r(226)](e),c.splice(t,1));var t,a,o,n,i=markersCalloutValidatorMap[e][r(260)];if(r(261)===typeof i&&(t=i(s[e]),r(194)!==typeof t.value&&"string"!=typeof t.value||(f[e]=t.value),t[r(179)]&&((n=(a=t[r(179)](e,s[e]))[r(252)](/^([A-Z]+):/))&&(o=logTypes[r(226)](n[1]),d<o&&(d=o),a=a[r(267)](n[0],"")),y[r(190)](a))),r(218)===typeof i&&("function"!=typeof(o=_style[r(239)][i])||(n=o(s[e]))&&n[r(179)]&&(f[e]=n[r(173)],(o=(a=n[r(179)](e,s[e])).match(/^([A-Z]+):/))&&(n=logTypes.indexOf(o[1]),d<n&&(d=n),a=a.replace(o[0],"")),y[r(190)](a))),Array.isArray(i)){var l,u=[];for(l in i)Object[r(187)][r(184)][r(274)](i,l)&&u[r(190)](i[l]);-1===u[r(226)](s[e][r(256)]())&&(d=2,y[r(190)](r(235).concat(e,"'value '").concat(s[e],"' is invalid.")))}}}),0<c[p(209)]&&(d=2,y[p(190)](p(192).concat(c.join(", ")))),{value:_utils[p(191)](f)?null:f[p(256)]().replace(/\n\s*/g,""),reason:0<y[p(209)]?function(e,r){var t=p;return""[t(178)](logTypes[d],": Attribute 'callout' contains: \n ")[t(178)](y[t(233)](" \n "))}:null}},markersLabel:function(s){var p=_0x3a3b3e;if(p(211)!==_typeof(s))return{value:!1,reason:function(e,r){var t=p;return t(250)[t(178)](e,t(217))}};var c=[],t=[];Object.keys(markersLabelValidatorMap)[p(213)](function(e){var r=p;markersLabelValidatorMap[e][r(196)]&&c[r(190)](e),markersLabelValidatorMap[e][r(207)]&&t[r(190)](markersLabelValidatorMap[e][r(207)])});var f={},y=[],d=0;return Object.keys(s)[p(213)](function(e){var r=p;if(typeof markersLabelValidatorMap[e]===r(265))d=2,y[r(190)](r(235)[r(178)](e,r(215)));else{-1!==c[r(226)](e)&&(t=c[r(226)](e),c[r(185)](t,1));var t,a,o,n,i=markersLabelValidatorMap[e][r(260)];if("function"==typeof i&&(t=i(s[e]),r(194)!==typeof t[r(173)]&&r(218)!==typeof t[r(173)]||(f[e]=t.value),t.reason&&((n=(a=t.reason(e,s[e]))[r(252)](/^([A-Z]+):/))&&(o=logTypes[r(226)](n[1]),d<o&&(d=o),a=a.replace(n[0],"")),y[r(190)](a))),r(218)===typeof i&&(o=_style[r(239)][i],r(261)!==typeof o||(n=o(s[e]))&&n.reason&&(f[e]=n[r(173)],(o=(a=n.reason(e,s[e]))[r(252)](/^([A-Z]+):/))&&(n=logTypes[r(226)](o[1]),d<n&&(d=n),a=a[r(267)](o[0],"")),y[r(190)](a))),Array[r(220)](i)){var l,u=[];for(l in i)Object[r(187)][r(184)].call(i,l)&&u[r(190)](i[l]);-1===u[r(226)](s[e][r(256)]())&&(d=2,y[r(190)](r(235).concat(e,"'value '")[r(178)](s[e],r(276))))}}}),0<c[p(209)]&&(d=2,y[p(190)](p(192)[p(178)](c[p(233)](", ")))),{value:_utils[p(191)](f)?null:f[p(256)]()[p(267)](/\n\s*/g,""),reason:0<y[p(209)]?function(e,r){var t=p;return""[t(178)](logTypes[d],t(206))[t(178)](y[t(233)](t(177)))}:null}},polylines:function(e){var f,a=_0x3a3b3e;try{f=vm[a(216)](e)}catch(e){return{value:!1,reason:function(e,r){return a(253)}}}var t=[],o=[];Object[a(259)](polylinesValidatorMap)[a(213)](function(e){var r=a;polylinesValidatorMap[e][r(196)]&&t[r(190)](e),polylinesValidatorMap[e][r(207)]&&o[r(190)](polylinesValidatorMap[e][r(207)])});for(var y={},d=[],b=0,r=0;r<f[a(209)];r++)!function(s){var p=a,c=[][p(178)](t);Object[p(259)](f[s]).forEach(function(e){var r=p;if(typeof polylinesValidatorMap[e]===r(265))b=2,d[r(190)](r(235)[r(178)](e,r(208)));else{-1!==c[r(226)](e)&&(t=c[r(226)](e),c[r(185)](t,1));var t,a,o,n,i=polylinesValidatorMap[e].type;if(r(261)===typeof i&&(t=i(f[s][e]),r(194)!==typeof t[r(173)]&&r(218)!==typeof t[r(173)]||(y[e]=t[r(173)]),t[r(179)]&&((n=(a=t[r(179)](e,f[s][e]))[r(252)](/^([A-Z]+):/))&&(o=logTypes[r(226)](n[1]),b<o&&(b=o),a=a.replace(n[0],"")),d[r(190)](a))),r(218)===typeof i&&("function"!=typeof(o=_style.validator[i])||(n=o(f[s][e]))&&n[r(179)]&&(y[e]=n[r(173)],(o=(a=n.reason(e,f[s][e]))[r(252)](/^([A-Z]+):/))&&(n=logTypes[r(226)](o[1]),b<n&&(b=n),a=a[r(267)](o[0],"")),d.push(a))),Array[r(220)](i)){var l,u=[];for(l in i)Object.prototype[r(184)][r(274)](i,l)&&u[r(190)](i[l]);-1===u[r(226)](f[s][e][r(256)]())&&(b=2,d[r(190)](r(235)[r(178)](e,r(272))[r(178)](f[s][e],r(276))))}}}),0<c[p(209)]&&(b=2,d[p(190)](p(192)[p(178)](c.join(", "))))}(r);return{value:_utils[a(191)](y)?null:e[a(256)]()[a(267)](/\n\s*/g,""),reason:0<d[a(209)]?function(e,r){var t=a;return"".concat(logTypes[b],t(210))[t(178)](d.join(t(201)))}:null}},points:function(s){var a=_0x3a3b3e;if(!Array.isArray(s))return{value:!1,reason:function(e,r){return"ERROR: An error occurred when parsing points."}};var t=[],o=[];Object[a(259)](pointsValidatorMap)[a(213)](function(e){var r=a;pointsValidatorMap[e][r(196)]&&t[r(190)](e),pointsValidatorMap[e].def&&o[r(190)](pointsValidatorMap[e][r(207)])});for(var p={},c=[],f=0,e=0;e<s.length;e++)!function(i){var l=a,u=[][l(178)](t);Object.keys(s[i])[l(213)](function(e){var r,t,a,o,n=l;typeof pointsValidatorMap[e]===n(265)?(f=2,c.push(" '"[n(178)](e,n(193)))):(-1!==u[n(226)](e)&&(r=u[n(226)](e),u[n(185)](r,1)),o=pointsValidatorMap[e][n(260)],n(261)===typeof o&&(t=o(s[i][e]),n(194)!==typeof t[n(173)]&&"string"!=typeof t.value||(p[e]=t[n(173)]),t[n(179)]&&((r=(a=t.reason(e,s[i][e]))[n(252)](/^([A-Z]+):/))&&(t=logTypes[n(226)](r[1]),f<t&&(f=t),a=a[n(267)](r[0],"")),c[n(190)](a))),n(218)===typeof o&&("function"!=typeof(a=_style[n(239)][o])||(o=a(s[i][e]))&&o[n(179)]&&(p[e]=o[n(173)],(o=(a=o.reason(e,s[i][e])).match(/^([A-Z]+):/))&&(e=logTypes[n(226)](o[1]),f<e&&(f=e),a=a[n(267)](o[0],"")),c[n(190)](a))))}),0<u.length&&(f=2,c[l(190)](l(251)[l(178)](u[l(233)](", "))))}(e);return{value:_utils.isEmptyObject(p)?null:s[a(256)]().replace(/\n\s*/g,""),reason:0<c[a(209)]?function(e,r){var t=a;return"".concat(logTypes[f],": Attribute 'points' contains: \n ")[t(178)](c[t(233)](t(201)))}:null}},polygons:function(e){var f,a=_0x3a3b3e;try{f=vm[a(216)](e)}catch(e){return{value:!1,reason:function(e,r){return a(188)}}}var t=[],o=[];Object[a(259)](polygonsValidatorMap)[a(213)](function(e){var r=a;polygonsValidatorMap[e][r(196)]&&t.push(e),polygonsValidatorMap[e][r(207)]&&o[r(190)](polygonsValidatorMap[e][r(207)])});for(var y={},d=[],b=0,r=0;r<f[a(209)];r++)!function(s){var p=a,c=[][p(178)](t);Object[p(259)](f[s])[p(213)](function(e){var r=p;if(void 0===polygonsValidatorMap[e])b=2,d[r(190)](r(235)[r(178)](e,r(246)));else{-1!==c[r(226)](e)&&(t=c[r(226)](e),c.splice(t,1));var t,a,o,n,i=polygonsValidatorMap[e][r(260)];if("function"==typeof i&&(t=i(f[s][e]),r(194)!==typeof t[r(173)]&&r(218)!==typeof t[r(173)]||(y[e]=t[r(173)]),t[r(179)]&&((n=(a=t[r(179)](e,f[s][e]))[r(252)](/^([A-Z]+):/))&&(o=logTypes[r(226)](n[1]),b<o&&(b=o),a=a[r(267)](n[0],"")),d[r(190)](a))),r(218)===typeof i&&(o=_style[r(239)][i],r(261)!==typeof o||(n=o(f[s][e]))&&n[r(179)]&&(y[e]=n.value,(o=(a=n.reason(e,f[s][e]))[r(252)](/^([A-Z]+):/))&&(n=logTypes[r(226)](o[1]),b<n&&(b=n),a=a.replace(o[0],"")),d[r(190)](a))),Array[r(220)](i)){var l,u=[];for(l in i)Object[r(187)][r(184)][r(274)](i,l)&&u.push(i[l]);-1===u[r(226)](f[s][e][r(256)]())&&(b=2,d[r(190)](r(235)[r(178)](e,r(272))[r(178)](f[s][e],"' is invalid.")))}}}),0<c[p(209)]&&(b=2,d[p(190)](p(192)[p(178)](c[p(233)](", "))))}(r);return{value:_utils[a(191)](y)?null:e[a(256)]().replace(/\n\s*/g,""),reason:0<d[a(209)]?function(e,r){var t=a;return""[t(178)](logTypes[b],t(183)).concat(d[t(233)](" \n "))}:null}},circles:function(e){var s,a=_0x3a3b3e;try{s=vm.runInThisContext(e)}catch(e){return{value:!1,reason:function(e,r){return _0x2d28(227)}}}var t=[],o=[];Object[a(259)](circlesValidatorMap)[a(213)](function(e){var r=a;circlesValidatorMap[e][r(196)]&&t[r(190)](e),circlesValidatorMap[e].def&&o[r(190)](circlesValidatorMap[e].def)});for(var p={},c=[],f=0,r=0;r<s[a(209)];r++)!function(i){var l=a,u=[][l(178)](t);Object[l(259)](s[i])[l(213)](function(e){var r,t,a,o,n=l;typeof circlesValidatorMap[e]===n(265)?(f=2,c[n(190)](" Attribute '"[n(178)](e,n(182)))):(-1!==u[n(226)](e)&&(r=u.indexOf(e),u[n(185)](r,1)),"function"==typeof(o=circlesValidatorMap[e][n(260)])&&(t=o(s[i][e]),n(194)!==typeof t.value&&n(218)!==typeof t[n(173)]||(p[e]=t.value),t[n(179)]&&((r=(a=t[n(179)](e,s[i][e]))[n(252)](/^([A-Z]+):/))&&(t=logTypes.indexOf(r[1]),f<t&&(f=t),a=a[n(267)](r[0],"")),c[n(190)](a))),n(218)===typeof o&&("function"!=typeof(a=_style[n(239)][o])||(o=a(s[i][e]))&&o[n(179)]&&(p[e]=o.value,(o=(a=o[n(179)](e,s[i][e]))[n(252)](/^([A-Z]+):/))&&(e=logTypes[n(226)](o[1]),f<e&&(f=e),a=a[n(267)](o[0],"")),c[n(190)](a))))}),0<u.length&&(f=2,c[l(190)](l(192)[l(178)](u[l(233)](", "))))}(r);return{value:_utils[a(191)](p)?null:e.toString()[a(267)](/\n\s*/g,""),reason:0<c[a(209)]?function(e,r){var t=a;return""[t(178)](logTypes[f],": Attribute 'circles' contains: \n ").concat(c[t(233)](t(201)))}:null}},controls:function(e){var f,a=_0x3a3b3e;try{f=vm[a(216)](e)}catch(e){return{value:!1,reason:function(e,r){return a(245)}}}var t=[],o=[];Object[a(259)](controlsValidatorMap)[a(213)](function(e){var r=a;controlsValidatorMap[e][r(196)]&&t.push(e),controlsValidatorMap[e][r(207)]&&o[r(190)](controlsValidatorMap[e][r(207)])});for(var y={},d=[],b=0,r=0;r<f[a(209)];r++)!function(s){var p=a,c=[][p(178)](t);Object[p(259)](f[s])[p(213)](function(e){var r=p;if(typeof controlsValidatorMap[e]===r(265))b=2,d[r(190)](r(235)[r(178)](e,r(266)));else{-1!==c[r(226)](e)&&(t=c.indexOf(e),c[r(185)](t,1));var t,a,o,n,i=controlsValidatorMap[e].type;if(r(261)===typeof i&&(t=i(f[s][e]),r(194)!==typeof t[r(173)]&&"string"!=typeof t[r(173)]||(y[e]=t[r(173)]),t[r(179)]&&((n=(a=t[r(179)](e,f[s][e]))[r(252)](/^([A-Z]+):/))&&(o=logTypes[r(226)](n[1]),b<o&&(b=o),a=a[r(267)](n[0],"")),d[r(190)](a))),r(218)===typeof i&&(o=_style[r(239)][i],r(261)!==typeof o||(n=o(f[s][e]))&&n.reason&&(y[e]=n[r(173)],(o=(a=n[r(179)](e,f[s][e]))[r(252)](/^([A-Z]+):/))&&(n=logTypes[r(226)](o[1]),b<n&&(b=n),a=a[r(267)](o[0],"")),d[r(190)](a))),Array.isArray(i)){var l,u=[];for(l in i)Object[r(187)][r(184)][r(274)](i,l)&&u.push(i[l]);-1===u.indexOf(f[s][e][r(256)]())&&(b=2,d[r(190)](r(235)[r(178)](e,r(272))[r(178)](f[s][e],r(276))))}}}),0<c[p(209)]&&(b=2,d.push(p(192)[p(178)](c[p(233)](", "))))}(r);return{value:_utils[a(191)](y)?null:e[a(256)]()[a(267)](/\n\s*/g,""),reason:0<d.length?function(e,r){var t=a;return""[t(178)](logTypes[b],t(189))[t(178)](d.join(t(201)))}:null}},position:function(o){var n=_0x3a3b3e;if(n(211)!==_typeof(o))return{value:!1,reason:function(e,r){return n(250).concat(e,"' value is invalid.")}};var i=[],t=[];Object.keys(controlsPositionValidatorMap)[n(213)](function(e){var r=n;controlsPositionValidatorMap[e][r(196)]&&i.push(e),controlsPositionValidatorMap[e][r(207)]&&t[r(190)](controlsPositionValidatorMap[e][r(207)])});var l={},u=[],s=0;return Object[n(259)](o)[n(213)](function(e){var r,t,a=n;void 0===controlsPositionValidatorMap[e]?(s=2,u[a(190)](" Attribute '"[a(178)](e,a(255)))):(-1!==i[a(226)](e)&&(r=i[a(226)](e),i.splice(r,1)),t=controlsPositionValidatorMap[e][a(260)],a(218)===typeof t&&(r=_style[a(239)][t],a(261)!==typeof r||(t=r(o[e]))&&t.reason&&(l[e]=t[a(173)],(t=(r=t[a(179)](e,o[e]))[a(252)](/^([A-Z]+):/))&&(e=logTypes.indexOf(t[1]),s<e&&(s=e),r=r[a(267)](t[0],"")),u[a(190)](r))))}),0<i.length&&(s=2,u[n(190)](n(192)[n(178)](i.join(", ")))),{value:_utils.isEmptyObject(l)?null:l[n(256)]()[n(267)](/\n\s*/g,""),reason:0<u[n(209)]?function(e,r){var t=n;return"".concat(logTypes[s],t(234))+""[t(178)](u[t(233)](t(177)))}:null}},groundoverlays:function(e){var f,a=_0x3a3b3e;try{f=vm[a(216)](e)}catch(e){return{value:!1,reason:function(e,r){return"ERROR: An error occurred when parsing the groundoverlays attribute of the map component."}}}var t=[],o=[];Object.keys(groundoverlaysValidatorMap)[a(213)](function(e){var r=a;groundoverlaysValidatorMap[e][r(196)]&&t[r(190)](e),groundoverlaysValidatorMap[e][r(207)]&&o[r(190)](groundoverlaysValidatorMap[e][r(207)])});for(var y={},d=[],b=0,r=0;r<f[a(209)];r++)!function(s){var p=a,c=[][p(178)](t);Object.keys(f[s])[p(213)](function(e){var r=p;if(typeof groundoverlaysValidatorMap[e]===r(265))b=2,d[r(190)](r(235).concat(e,r(195)));else{-1!==c[r(226)](e)&&(t=c.indexOf(e),c[r(185)](t,1));var t,a,o,n,i=groundoverlaysValidatorMap[e].type;if(r(261)===typeof i&&(t=i(f[s][e]),r(194)!==typeof t[r(173)]&&r(218)!==typeof t[r(173)]||(y[e]=t[r(173)]),t[r(179)]&&((n=(a=t.reason(e,f[s][e])).match(/^([A-Z]+):/))&&(o=logTypes.indexOf(n[1]),b<o&&(b=o),a=a[r(267)](n[0],"")),d[r(190)](a))),"string"==typeof i&&("function"!=typeof(o=_style[r(239)][i])||(n=o(f[s][e]))&&n[r(179)]&&(y[e]=n[r(173)],(o=(a=n[r(179)](e,f[s][e]))[r(252)](/^([A-Z]+):/))&&(n=logTypes[r(226)](o[1]),b<n&&(b=n),a=a.replace(o[0],"")),d[r(190)](a))),Array[r(220)](i)){var l,u=[];for(l in i)Object[r(187)][r(184)][r(274)](i,l)&&u[r(190)](i[l]);-1===u.indexOf(f[s][e].toString())&&(b=2,d.push(r(235)[r(178)](e,"'value '")[r(178)](f[s][e],"' is invalid.")))}}}),0<c[p(209)]&&(b=2,d[p(190)](" The mandatory sub-attribute is missing: "[p(178)](c[p(233)](", "))))}(r);return{value:_utils.isEmptyObject(y)?null:e[a(256)]().replace(/\n\s*/g,""),reason:0<d[a(209)]?function(e,r){var t=a;return"".concat(logTypes[b],": Attribute 'groundoverlays' contains: \n ").concat(d[t(233)](" \n "))}:null}},objectEast:function(o){var n=_0x3a3b3e;if("object"!==_typeof(o))return{value:!1,reason:function(e,r){return _0x2d28(250).concat(e,"' value is invalid.")}};var i=[],t=[];Object[n(259)](objectEastValidatorMap).forEach(function(e){var r=n;objectEastValidatorMap[e].require&&i.push(e),objectEastValidatorMap[e][r(207)]&&t[r(190)](objectEastValidatorMap[e][r(207)])});var l={},u=[],s=0;return Object[n(259)](o)[n(213)](function(e){var r,t,a=n;typeof objectEastValidatorMap[e]===a(265)?(s=2,u[a(190)](" '"[a(178)](e,a(214)))):(-1!==i[a(226)](e)&&(r=i.indexOf(e),i[a(185)](r,1)),t=objectEastValidatorMap[e][a(260)],a(218)===typeof t&&(r=_style.validator[t],a(261)!==typeof r||(t=r(o[e]))&&t[a(179)]&&(l[e]=t[a(173)],(t=(r=t.reason(e,o[e]))[a(252)](/^([A-Z]+):/))&&(e=logTypes.indexOf(t[1]),s<e&&(s=e),r=r[a(267)](t[0],"")),u[a(190)](r))))}),0<i[n(209)]&&(s=2,u.push(" The mandatory value is missing: "[n(178)](i.join(", ")))),{value:_utils[n(191)](l)?null:l.toString().replace(/\n\s*/g,""),reason:0<u[n(209)]?function(e,r){var t=n;return""[t(178)](logTypes[s],t(225))+""[t(178)](u[t(233)](t(177)))}:null}}},markersValidatorMap={id:{type:"number",require:!1,def:-1},latitude:{type:"number",require:!0},longitude:{type:_0x3a3b3e(194),require:!0},offsetX:{type:_0x3a3b3e(194),require:!1},offsetY:{type:_0x3a3b3e(194),require:!1},coordType:{type:validator[_0x3a3b3e(218)],require:!1},title:{type:validator.string,require:!1},iconPath:{type:validator[_0x3a3b3e(219)],require:!0},opacity:{type:validator[_0x3a3b3e(200)],require:!1,def:1},rotate:{type:"number",require:!1,def:0},width:{type:_0x3a3b3e(209),require:!1},height:{type:"length",require:!1},anchor:{type:validator[_0x3a3b3e(240)],require:!1,def:{x:.5,y:1}},callout:{type:validator[_0x3a3b3e(199)],require:!1},zIndex:{type:"number",require:!1},label:{type:validator[_0x3a3b3e(186)],require:!1}},markersLabelValidatorMap={content:{type:validator[_0x3a3b3e(218)],require:!0},color:{type:"color",require:!1,def:"#000000"},fontSize:{type:_0x3a3b3e(209),require:!1,def:_0x3a3b3e(238)},anchorX:{type:_0x3a3b3e(194),require:!1,def:0},anchorY:{type:_0x3a3b3e(194),require:!1,def:0},borderRadius:{type:_0x3a3b3e(209),require:!1,def:_0x3a3b3e(205)},padding:{type:"length",require:!1,def:_0x3a3b3e(205)},backgroundColor:{type:_0x3a3b3e(197),require:!1,def:"#00ffffff"},textAlign:{type:[_0x3a3b3e(175),_0x3a3b3e(269),_0x3a3b3e(264)],require:!1}},markersCalloutValidatorMap={content:{type:validator.string,require:!0},color:{type:_0x3a3b3e(197),require:!1,def:_0x3a3b3e(273)},fontSize:{type:_0x3a3b3e(209),require:!1,def:_0x3a3b3e(238)},borderRadius:{type:_0x3a3b3e(209),require:!1,def:"0px"},padding:{type:_0x3a3b3e(209),require:!1,def:_0x3a3b3e(205)},backgroundColor:{type:_0x3a3b3e(197),require:!1,def:_0x3a3b3e(243)},display:{type:["byclick",_0x3a3b3e(268)],require:!1},textAlign:{type:[_0x3a3b3e(175),_0x3a3b3e(269),"right"],require:!1},converthtml:{type:[_0x3a3b3e(180),_0x3a3b3e(275)],require:!1}},polylinesValidatorMap={points:{type:validator.points,require:!0},color:{type:_0x3a3b3e(197),require:!1,def:_0x3a3b3e(242)},width:{type:_0x3a3b3e(209),require:!1,def:_0x3a3b3e(181)},dotted:{type:[_0x3a3b3e(180),"true"],require:!1},zIndex:{type:_0x3a3b3e(194),require:!1},textureLine:{type:[_0x3a3b3e(180),_0x3a3b3e(275)],require:!1},textureIconPath:{type:validator.string,require:!1}},pointsValidatorMap={latitude:{type:"number",require:!0},longitude:{type:_0x3a3b3e(194),require:!0},coordType:{type:validator[_0x3a3b3e(218)],require:!1}},polygonsValidatorMap={points:{type:validator.points,require:!0},fillColor:{type:"color",require:!1,def:_0x3a3b3e(242)},strokeWidth:{type:_0x3a3b3e(209),require:!1,def:_0x3a3b3e(263)},strokeColor:{type:_0x3a3b3e(197),require:!1,def:"#666666"},zIndex:{type:"number",require:!1}},circlesValidatorMap={latitude:{type:_0x3a3b3e(194),require:!0},longitude:{type:_0x3a3b3e(194),require:!0},coordType:{type:validator.string,require:!1},radius:{type:_0x3a3b3e(194),require:!0},fillColor:{type:"color",require:!1,def:_0x3a3b3e(242)},borderWidth:{type:_0x3a3b3e(209),require:!1,def:_0x3a3b3e(263)},borderColor:{type:"color",require:!1,def:_0x3a3b3e(242)},zIndex:{type:_0x3a3b3e(194),require:!1}},groundoverlaysValidatorMap={id:{type:_0x3a3b3e(194),require:!1,def:-1},northEast:{type:validator[_0x3a3b3e(258)],require:!0},southWest:{type:validator[_0x3a3b3e(258)],require:!0},iconPath:{type:validator[_0x3a3b3e(219)],require:!1},opacity:{type:_0x3a3b3e(194),require:!1,def:1},visible:{type:[_0x3a3b3e(275),_0x3a3b3e(180)],require:!1},zIndex:{type:_0x3a3b3e(194),require:!1}},objectEastValidatorMap={latitude:{type:_0x3a3b3e(194),require:!0},longitude:{type:_0x3a3b3e(194),require:!0},coordType:{type:validator.string,require:!1}},controlsValidatorMap={id:{type:_0x3a3b3e(194),require:!1,def:-1},position:{type:validator[_0x3a3b3e(230)],require:!1},iconPath:{type:validator[_0x3a3b3e(219)],require:!0},clickable:{type:[_0x3a3b3e(275),_0x3a3b3e(180)],require:!1}},controlsPositionValidatorMap={left:{type:_0x3a3b3e(209),require:!1,def:0},right:{type:"length",require:!1,def:0},top:{type:_0x3a3b3e(209),require:!1,def:0},bottom:{type:"length",require:!1,def:0},width:{type:_0x3a3b3e(209),require:!1,def:0},height:{type:_0x3a3b3e(209),require:!1,def:0}};Object.defineProperty(exports,_0x3a3b3e(229),{value:!0}),module.exports[_0x3a3b3e(239)]=validator;