1 line
14 KiB
JSON
1 line
14 KiB
JSON
{"ast":null,"code":"import \"core-js/modules/es.array.join.js\";\nimport \"core-js/modules/es.json.stringify.js\";\nimport \"core-js/modules/es.error.cause.js\";\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\n\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport { map, isString, isFunction, eqNaN, isRegExp } from 'zrender/lib/core/util.js';\nvar ECHARTS_PREFIX = '[ECharts] ';\nvar storedLogs = {};\nvar hasConsole = typeof console !== 'undefined' // eslint-disable-next-line\n&& console.warn && console.log;\n\nfunction outputLog(type, str, onlyOnce) {\n if (hasConsole) {\n if (onlyOnce) {\n if (storedLogs[str]) {\n return;\n }\n\n storedLogs[str] = true;\n } // eslint-disable-next-line\n\n\n console[type](ECHARTS_PREFIX + str);\n }\n}\n\nexport function log(str, onlyOnce) {\n outputLog('log', str, onlyOnce);\n}\nexport function warn(str, onlyOnce) {\n outputLog('warn', str, onlyOnce);\n}\nexport function error(str, onlyOnce) {\n outputLog('error', str, onlyOnce);\n}\nexport function deprecateLog(str) {\n if (process.env.NODE_ENV !== 'production') {\n // Not display duplicate message.\n outputLog('warn', 'DEPRECATED: ' + str, true);\n }\n}\nexport function deprecateReplaceLog(oldOpt, newOpt, scope) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog((scope ? \"[\" + scope + \"]\" : '') + (oldOpt + \" is deprecated, use \" + newOpt + \" instead.\"));\n }\n}\n/**\r\n * If in __DEV__ environment, get console printable message for users hint.\r\n * Parameters are separated by ' '.\r\n * @usuage\r\n * makePrintable('This is an error on', someVar, someObj);\r\n *\r\n * @param hintInfo anything about the current execution context to hint users.\r\n * @throws Error\r\n */\n\nexport function makePrintable() {\n var hintInfo = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n hintInfo[_i] = arguments[_i];\n }\n\n var msg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n // Fuzzy stringify for print.\n // This code only exist in dev environment.\n var makePrintableStringIfPossible_1 = function makePrintableStringIfPossible_1(val) {\n return val === void 0 ? 'undefined' : val === Infinity ? 'Infinity' : val === -Infinity ? '-Infinity' : eqNaN(val) ? 'NaN' : val instanceof Date ? 'Date(' + val.toISOString() + ')' : isFunction(val) ? 'function () { ... }' : isRegExp(val) ? val + '' : null;\n };\n\n msg = map(hintInfo, function (arg) {\n if (isString(arg)) {\n // Print without quotation mark for some statement.\n return arg;\n } else {\n var printableStr = makePrintableStringIfPossible_1(arg);\n\n if (printableStr != null) {\n return printableStr;\n } else if (typeof JSON !== 'undefined' && JSON.stringify) {\n try {\n return JSON.stringify(arg, function (n, val) {\n var printableStr = makePrintableStringIfPossible_1(val);\n return printableStr == null ? val : printableStr;\n }); // In most cases the info object is small, so do not line break.\n } catch (err) {\n return '?';\n }\n } else {\n return '?';\n }\n }\n }).join(' ');\n }\n\n return msg;\n}\n/**\r\n * @throws Error\r\n */\n\nexport function throwError(msg) {\n throw new Error(msg);\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/util/log.js"],"names":["map","isString","isFunction","eqNaN","isRegExp","ECHARTS_PREFIX","storedLogs","hasConsole","console","warn","log","outputLog","type","str","onlyOnce","error","deprecateLog","process","env","NODE_ENV","deprecateReplaceLog","oldOpt","newOpt","scope","makePrintable","hintInfo","_i","arguments","length","msg","makePrintableStringIfPossible_1","val","Infinity","Date","toISOString","arg","printableStr","JSON","stringify","n","err","join","throwError","Error"],"mappings":";;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,GAAT,EAAcC,QAAd,EAAwBC,UAAxB,EAAoCC,KAApC,EAA2CC,QAA3C,QAA2D,0BAA3D;AACA,IAAIC,cAAc,GAAG,YAArB;AACA,IAAIC,UAAU,GAAG,EAAjB;AACA,IAAIC,UAAU,GAAG,OAAOC,OAAP,KAAmB,WAAnB,CAA+B;AAA/B,GACdA,OAAO,CAACC,IADM,IACED,OAAO,CAACE,GAD3B;;AAGA,SAASC,SAAT,CAAmBC,IAAnB,EAAyBC,GAAzB,EAA8BC,QAA9B,EAAwC;AACtC,MAAIP,UAAJ,EAAgB;AACd,QAAIO,QAAJ,EAAc;AACZ,UAAIR,UAAU,CAACO,GAAD,CAAd,EAAqB;AACnB;AACD;;AAEDP,MAAAA,UAAU,CAACO,GAAD,CAAV,GAAkB,IAAlB;AACD,KAPa,CAOZ;;;AAGFL,IAAAA,OA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AOI,GAAP,EAAY;AACZ,mBAAO,GAAP;AACD;AACF,SATM,MASA;AACL,iBAAO,GAAP;AACD;AACF;AACF,KAtBQ,CAAH,CAsBHC,IAtBG,CAsBE,GAtBF,CAAN;AAuBD;;AAED,SAAOZ,GAAP;AACD;AACD;AACA;AACA;;AAEA,OAAO,SAASa,UAAT,CAAoBb,GAApB,EAAyB;AAC9B,QAAM,IAAIc,KAAJ,CAAUd,GAAV,CAAN;AACD","sourcesContent":["\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\n\r\n\r\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\r\n\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\nimport { map, isString, isFunction, eqNaN, isRegExp } from 'zrender/lib/core/util.js';\r\nvar ECHARTS_PREFIX = '[ECharts] ';\r\nvar storedLogs = {};\r\nvar hasConsole = typeof console !== 'undefined' // eslint-disable-next-line\r\n&& console.warn && console.log;\r\n\r\nfunction outputLog(type, str, onlyOnce) {\r\n if (hasConsole) {\r\n if (onlyOnce) {\r\n if (storedLogs[str]) {\r\n return;\r\n }\r\n\r\n storedLogs[str] = true;\r\n } // eslint-disable-next-line\r\n\r\n\r\n console[type](ECHARTS_PREFIX + str);\r\n }\r\n}\r\n\r\nexport function log(str, onlyOnce) {\r\n outputLog('log', str, onlyOnce);\r\n}\r\nexport function warn(str, onlyOnce) {\r\n outputLog('warn', str, onlyOnce);\r\n}\r\nexport function error(str, onlyOnce) {\r\n outputLog('error', str, onlyOnce);\r\n}\r\nexport function deprecateLog(str) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n // Not display duplicate message.\r\n outputLog('warn', 'DEPRECATED: ' + str, true);\r\n }\r\n}\r\nexport function deprecateReplaceLog(oldOpt, newOpt, scope) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n deprecateLog((scope ? \"[\" + scope + \"]\" : '') + (oldOpt + \" is deprecated, use \" + newOpt + \" instead.\"));\r\n }\r\n}\r\n/**\r\n * If in __DEV__ environment, get console printable message for users hint.\r\n * Parameters are separated by ' '.\r\n * @usuage\r\n * makePrintable('This is an error on', someVar, someObj);\r\n *\r\n * @param hintInfo anything about the current execution context to hint users.\r\n * @throws Error\r\n */\r\n\r\nexport function makePrintable() {\r\n var hintInfo = [];\r\n\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n hintInfo[_i] = arguments[_i];\r\n }\r\n\r\n var msg = '';\r\n\r\n if (process.env.NODE_ENV !== 'production') {\r\n // Fuzzy stringify for print.\r\n // This code only exist in dev environment.\r\n var makePrintableStringIfPossible_1 = function (val) {\r\n return val === void 0 ? 'undefined' : val === Infinity ? 'Infinity' : val === -Infinity ? '-Infinity' : eqNaN(val) ? 'NaN' : val instanceof Date ? 'Date(' + val.toISOString() + ')' : isFunction(val) ? 'function () { ... }' : isRegExp(val) ? val + '' : null;\r\n };\r\n\r\n msg = map(hintInfo, function (arg) {\r\n if (isString(arg)) {\r\n // Print without quotation mark for some statement.\r\n return arg;\r\n } else {\r\n var printableStr = makePrintableStringIfPossible_1(arg);\r\n\r\n if (printableStr != null) {\r\n return printableStr;\r\n } else if (typeof JSON !== 'undefined' && JSON.stringify) {\r\n try {\r\n return JSON.stringify(arg, function (n, val) {\r\n var printableStr = makePrintableStringIfPossible_1(val);\r\n return printableStr == null ? val : printableStr;\r\n }); // In most cases the info object is small, so do not line break.\r\n } catch (err) {\r\n return '?';\r\n }\r\n } else {\r\n return '?';\r\n }\r\n }\r\n }).join(' ');\r\n }\r\n\r\n return msg;\r\n}\r\n/**\r\n * @throws Error\r\n */\r\n\r\nexport function throwError(msg) {\r\n throw new Error(msg);\r\n}"]},"metadata":{},"sourceType":"module"} |