Cube("static:/js/util/parse.js",[],function(a){function b(a){return void 0===a}function c(a,d){var e,f,g=a instanceof Array?[]:{};if(a)for(var h in a)if(e=a[h],f=e.type,Object.prototype.hasOwnProperty.call(a,h))if("coms"===f)continue;else if("group"==f)g[h]=c(e.children,e.name);else{var i=e.default;b(i)&&"handler"!==h&&"fold"!==h?console.log(d+"\u7EC4\u4EF6."+h+".\u5B57\u6BB5 - \u672A\u8BBE\u7F6Edefault"):g[h]=e.default}return g}function d(a){a.validate=a.config,2<=a.protocol&&(a.config=c(a.validate,a.name||a.cn_name),a.validate=i(a.validate)),g(a);var b=e(a);return b&&(a.validate.coms=a.config.coms=b),a}function e(a){var b=a.coms||a.validate.coms,c=a.apis;if(b){b.options=b.options;if(b.children)b.children=b.children.map(function(a){return f(a)});return b}}function f(a){var c=a.comId;if(b(c))return console.error("\u5B50\u7EC4\u4EF6\u6CA1\u6709\u5199comId");var e=options[c];return b(e)?console.log("datav.coms.com.comId \u4E0D\u5728 datav.coms.options\u6240\u6807\u6CE8\u7684\u7EC4\u4EF6\u5185.."):(a=_.merge(a,e),g(a),a.name=a.cn_name=a.name||a.cn_name,d(a))}function g(a){var b=a.apis,c=a.api_data;for(var d in b){var e=b[d];c&&c[d]&&(e.default=c[d])}}function h(a,b){for(var c in b)if("handler"===c||"fold"===c)continue;else a.hasOwnProperty(c)?"object"===j(a[c])?"array"===b[c].type||"multicolor"===b[c].type?b[c].default=a[c]:h(a[c],b[c].children):b[c].default=a[c]:delete b[c]}function i(a){return function a(b,c,d){for(var e in b){var f=b[e];if("type"===e||"name"===e||"default"===e||"range"===e)return delete b[e],!0;"handler"===e||"fold"===e?(c!==b&&(c[e]=f,"handler"===e&&(d=f)),delete b[e]):f.handler=f.handler||d,"group"===f.type&&a(f.children,f,f.handler)}}(a,a),a}var j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};return a.exports={validate2Config:c,convertDatav:d,convert2Datav:function(a,b){2<=b.protocol?h(a,b.config):(h(a,b.validate),b.config=a)},fixConfig:i},a.exports});