Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

translate-compiler

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translate-compiler - npm Package Compare versions

Comparing version 0.9.0-beta to 0.9.3-beta

2

main/index.js
#! /usr/bin/env node
const a0_0x3bc47f=a0_0x4222;function a0_0x4222(_0x4efb16,_0xb3d830){const _0x3cfe87=a0_0x3cfe();return a0_0x4222=function(_0x4222f9,_0x141d74){_0x4222f9=_0x4222f9-0x11d;let _0x1636de=_0x3cfe87[_0x4222f9];return _0x1636de;},a0_0x4222(_0x4efb16,_0xb3d830);}(function(_0x4f60f7,_0x5ba882){const _0x1da6be=a0_0x4222,_0x4f6367=_0x4f60f7();while(!![]){try{const _0x178b26=-parseInt(_0x1da6be(0x131))/0x1+-parseInt(_0x1da6be(0x184))/0x2*(-parseInt(_0x1da6be(0x123))/0x3)+-parseInt(_0x1da6be(0x17b))/0x4+-parseInt(_0x1da6be(0x153))/0x5+parseInt(_0x1da6be(0x15e))/0x6*(parseInt(_0x1da6be(0x12f))/0x7)+parseInt(_0x1da6be(0x18c))/0x8+-parseInt(_0x1da6be(0x16a))/0x9*(-parseInt(_0x1da6be(0x185))/0xa);if(_0x178b26===_0x5ba882)break;else _0x4f6367['push'](_0x4f6367['shift']());}catch(_0x178272){_0x4f6367['push'](_0x4f6367['shift']());}}}(a0_0x3cfe,0x52c94));const fs=require('fs'),path=require('path'),{program}=require('commander'),{pinyin}=require(a0_0x3bc47f(0x166)),{translater}=require(a0_0x3bc47f(0x176)),{parseHTML}=require(a0_0x3bc47f(0x17e)),_path=process[a0_0x3bc47f(0x129)]();function hasChinese(_0x362d8f){const _0xbc8ae8=a0_0x3bc47f;return/[\u4e00-\u9fa5]/g[_0xbc8ae8(0x18e)](_0x362d8f);}let customLang={},config={'env':'dev','locals':[],'excludes':[],'translate':[],'channel':a0_0x3bc47f(0x148),'appKey':'','secretKey':'','suffix':a0_0x3bc47f(0x150),'output':a0_0x3bc47f(0x180)};getConfig();function getConfig(){const _0x598849=a0_0x3bc47f;program[_0x598849(0x14d)]('<env>',_0x598849(0x145))['requiredOption'](_0x598849(0x174),_0x598849(0x16c))[_0x598849(0x146)](_0x598849(0x149),'需要生成的地区语言(语种代码)如:zh等')[_0x598849(0x146)](_0x598849(0x183),_0x598849(0x15f))[_0x598849(0x146)](_0x598849(0x127),'翻译api\x20应用key')[_0x598849(0x146)](_0x598849(0x169),_0x598849(0x16e))['option'](_0x598849(0x14f),_0x598849(0x168))['option'](_0x598849(0x190),'翻译的文件名后缀,默认.vue')[_0x598849(0x146)](_0x598849(0x142),_0x598849(0x120))['option'](_0x598849(0x121),_0x598849(0x16b))[_0x598849(0x146)](_0x598849(0x14a),_0x598849(0x164)),program[_0x598849(0x14e)]();const _0x3e74cc=program[_0x598849(0x11d)]();config=Object['assign'](config,_0x3e74cc,{'env':program[_0x598849(0x138)][0x0]}),getFileContent(path['join'](_path,'/translate.json'),_0x42f638=>{const _0x59d72f=_0x598849;customLang=_0x42f638,console[_0x59d72f(0x133)](new Array(0x50)[_0x59d72f(0x134)]('-')),console[_0x59d72f(0x133)](_0x59d72f(0x13d)),console[_0x59d72f(0x133)](new Array(0x50)[_0x59d72f(0x134)]('-'));},()=>{const _0x394dbb=_0x598849;console['log'](new Array(0x50)['join']('-')),console['log'](_0x394dbb(0x13a)),console[_0x394dbb(0x133)](new Array(0x50)['join']('-'));});}function a0_0x3cfe(){const _0x1e3f8f=[':\x20\x22','$t(','writeFileSync','forEach','3382400zbFtYO','.lang.$1','test','isDirectory','-s,\x20--suffix\x20<value>','existsSync','opts','parseInt','-\x20执行文件:','排除翻译的文件,可指定多个','-o,\x20--output\x20<file>','utf-8','15TFqUbv','split','attrs','mkdirSync','--appKey\x20<value>','strict','cwd','$t($key)','map','basename','substring','this.$t($key)','49mdcKzR','translate','217249BXibZL','读取文件失败','log','join','readFileSync','.js','zh_cn','args','exports.__esModule\x20=\x20true;\x0dexports.default\x20=\x20{\x0d','-\x20读取字典:\x20未读取到自定义字典translate.json!','\x27)\x20}}','keys','-\x20读取字典:\x20读取自定义字典\x27translate.json\x27成功!','value','extname','fill','\x27,\x20[','-e,\x20--excludes\x20<value...>','dirname','stringify','指定环境:dev(开发)/test(测试)/prod(生产),默认为开发环境','option','content','youdao','-l,\x20--locals\x20<value...>','--strict','name','none','argument','parse','-t,\x20--translate\x20<value...>','.vue','values','first','353485eNVTKu','\x22:\x20\x22','sort','readdirSync','.json','array','replace','-\x20统计:------\x20中文字段统计频率排行榜','dir','push','suffix','166134IidvfS','翻译渠道\x20baidu百度,youdao有道','.lang','??????FILE_NAME_TO_LONG','start','prod','是否严格模式,\x20严格模式只提取$t()内中文,否则全局','{{\x20$t(\x27','pinyin-pro','reduce','需要翻译的语言,对应locals','--secretKey\x20<value>','9fbZErO','翻译结果写入路径,默认locals/local.json','翻译的文件夹','env','翻译api\x20密钥','target','toLowerCase','文件不存在','assign','lstatSync','-d,\x20--dir\x20<dir>','this.$t(','./parser/translater','-\x20统计:------\x20中文字段统计频率排行榜,频率过高建议加入自定义key!','locals','end','obj','2005812oImWDI','includes','match','./parser/html-parser','local.json','locals/local.json','length','filter','-c,\x20--channel\x20<value>','148402yjvqzF','1408630hfjIEz','this.$t(\x27','entries'];a0_0x3cfe=function(){return _0x1e3f8f;};return a0_0x3cfe();}function getFileContent(_0x581820,_0x4621b1,_0xb04635){const _0x52276c=a0_0x3bc47f;if(fs[_0x52276c(0x191)](_0x581820))try{let _0xed00b3=fs[_0x52276c(0x135)](_0x581820,{'encoding':_0x52276c(0x122)});const _0x5cc626=path['extname'](_0x581820);if(_0x5cc626==_0x52276c(0x157))_0x4621b1&&_0x4621b1(JSON['parse'](_0xed00b3));else{let _0x2ce7af={};_0xed00b3[_0x52276c(0x159)](/['"]*(\w+)['"]*:\s*"([^"]+)"/g,(_0x4c599b,_0x3b3abe,_0x3a3746)=>{_0x2ce7af[_0x3b3abe]=_0x3a3746;}),_0x4621b1&&_0x4621b1(_0x2ce7af);}}catch(_0x40849e){_0xb04635&&_0xb04635(_0x52276c(0x132));}else _0xb04635&&_0xb04635(_0x52276c(0x171));}function getSuffixFiles(_0x3b5028,_0x4355ed,_0x4a7ddd){const _0x332216=a0_0x3bc47f,_0x35ce99=fs[_0x332216(0x156)](_0x3b5028),_0x11cfa1=[];return _0x35ce99[_0x332216(0x18b)]((_0x4385a8,_0xca4c7e)=>{const _0x32b3f6=_0x332216,_0x39e66e=path[_0x32b3f6(0x134)](_0x3b5028,_0x4385a8),_0x333407=fs[_0x32b3f6(0x173)](_0x39e66e);if(_0x333407[_0x32b3f6(0x18f)]())_0x11cfa1[_0x32b3f6(0x15c)](...getSuffixFiles(_0x39e66e,_0x4355ed,_0x4a7ddd));else path[_0x32b3f6(0x13f)](_0x4385a8)==_0x4355ed&&!_0x4a7ddd[_0x32b3f6(0x17c)](path['extname'](_0x4385a8))&&_0x11cfa1['push'](_0x39e66e);}),_0x11cfa1;}function delSuffixFiles(_0x2cff68,_0x3ce0dd,_0xa81eec){const _0x21edbb=a0_0x3bc47f,_0x643e7b=fs[_0x21edbb(0x156)](_0x2cff68);_0x643e7b[_0x21edbb(0x18b)]((_0x49329d,_0x45733e)=>{const _0x5bf1a2=_0x21edbb,_0x4c3da1=path[_0x5bf1a2(0x134)](_0x2cff68,_0x49329d),_0x3e6037=fs[_0x5bf1a2(0x173)](_0x4c3da1),_0x177958=new RegExp(_0x5bf1a2(0x160)+_0x3ce0dd+'$');if(_0x3e6037[_0x5bf1a2(0x18f)]())delSuffixFiles(_0x4c3da1,_0x3ce0dd,_0xa81eec);else _0x177958['test'](_0x49329d)&&!_0xa81eec[_0x5bf1a2(0x17c)](path['extname'](_0x49329d))&&fs['unlinkSync'](_0x4c3da1);});}function getTranslateKey(_0x3ff06c,_0x36d338){const _0x244175=a0_0x3bc47f;if(_0x36d338[_0x244175(0x181)]>0x28)return _0x244175(0x161);const _0x44e5e1=/^(['"`])|['"`]$/g,_0x1d43ab=/\$*\{(.*?)\}/g;let _0x426180=_0x3ff06c[_0x244175(0x159)](_0x44e5e1,'');const _0x30d79a=(_0x426180[_0x244175(0x17d)](_0x1d43ab)||[])[_0x244175(0x167)]((_0x300b99,_0x15a550,_0x728b48)=>_0x300b99['replace'](_0x15a550,'{'+_0x728b48+'}'),_0x426180),_0xace3b7=Object[_0x244175(0x151)](customLang)['indexOf'](_0x30d79a);if(_0xace3b7!==-0x1)return Object['keys'](customLang)[_0xace3b7];_0x426180=_0x426180[_0x244175(0x159)](_0x1d43ab,'o'),_0x426180=_0x426180[_0x244175(0x159)](/[^\u4e00-\u9fa5\w]/g,'');let _0x50b20a=_0x426180[_0x244175(0x159)](/([\u4e00-\u9fa5]+)/g,_0x212254=>{const _0x5507e3=_0x244175;return pinyin(_0x212254,{'toneType':_0x5507e3(0x14c),'type':_0x5507e3(0x158)})[_0x5507e3(0x134)]('_');}),_0x3de59b=_0x36d338+'_'+_0x50b20a;if(_0x3de59b[_0x244175(0x181)]>0x1e){_0x50b20a=_0x426180[_0x244175(0x159)](/([\u4e00-\u9fa5]+)/g,_0x268d93=>{const _0x4a8ac8=_0x244175;return pinyin(_0x268d93,{'pattern':_0x4a8ac8(0x152),'toneType':_0x4a8ac8(0x14c),'type':'array'})['join']('');}),_0x3de59b=_0x36d338+'_'+_0x50b20a;if(_0x3de59b[_0x244175(0x181)]>0x32){const _0x154d94=Number[_0x244175(0x11e)](_0x50b20a[_0x244175(0x181)]/(0x31-_0x36d338[_0x244175(0x181)]))+0x1;_0x50b20a=new Array(_0x50b20a[_0x244175(0x181)])[_0x244175(0x140)]('')[_0x244175(0x167)]((_0x202b16,_0x32579e,_0x4f4d72)=>''+_0x202b16+(_0x4f4d72%_0x154d94==0x0?_0x50b20a[_0x4f4d72]:''));}_0x3de59b=_0x36d338+'_'+_0x50b20a;}return _0x3de59b;}translate();function translate(){const _0x45e340=a0_0x3bc47f;delSuffixFiles(path[_0x45e340(0x134)](_path,config[_0x45e340(0x15b)]),config[_0x45e340(0x15d)],config['excludes']);const _0x49d896=getSuffixFiles(path[_0x45e340(0x134)](_path,config[_0x45e340(0x15b)]),config[_0x45e340(0x15d)],config['excludes']);let _0x1ae3ed={};console[_0x45e340(0x133)](new Array(0x50)[_0x45e340(0x134)]('-')),_0x49d896[_0x45e340(0x18b)](function(_0x176c27,_0x3ea748){const _0x50bccf=_0x45e340;console[_0x50bccf(0x133)](_0x50bccf(0x11f)+_0x176c27);let _0x1f0c35=fs[_0x50bccf(0x135)](_0x176c27,{'encoding':_0x50bccf(0x122)})+'';const _0x25b651=path[_0x50bccf(0x12c)](_0x176c27)[_0x50bccf(0x124)]('.')[0x0],_0x194b78=/\<template\>(.|\n|\r)*\<\/template\>/g,_0x18f274=/<!--[\s\S]*?-->/g,_0x2017d0=/\<script\>(.|\n|\r)*\<\/script\>/g,_0x4ef676=/(?<=\s|\;|^|\{|\})\/\/[^\r\n]*/g,_0x4ba0c5=/\/\*[\s\S]*?\*\//g;_0x1f0c35=_0x1f0c35['replace'](_0x194b78,_0x314cee=>_0x314cee[_0x50bccf(0x159)](_0x18f274,'')),_0x1f0c35=_0x1f0c35[_0x50bccf(0x159)](_0x2017d0,_0x287c2b=>_0x287c2b['replace'](_0x4ef676,'')['replace'](_0x4ba0c5,''));const _0x106db0=/(?<=\$t\()(['"])(.*?)\1/g;_0x1f0c35=_0x1f0c35[_0x50bccf(0x159)](_0x106db0,(_0x16937a,_0x2900ba,_0x36be29)=>{if(hasChinese(_0x16937a)){const _0x439cbb=getTranslateKey(_0x16937a,_0x25b651);return _0x1ae3ed[_0x439cbb]=_0x36be29,'\x27'+_0x439cbb+'\x27';}return _0x16937a;}),_0x1f0c35=_0x1f0c35[_0x50bccf(0x159)](_0x194b78,_0x412d56=>{const _0x51dd51=_0x50bccf,_0x486594=handleTemplate(_0x412d56,_0x25b651);return _0x1ae3ed=Object[_0x51dd51(0x172)](_0x1ae3ed,_0x486594[_0x51dd51(0x17a)]),_0x486594[_0x51dd51(0x147)];}),_0x1f0c35=_0x1f0c35['replace'](_0x2017d0,_0x13be6e=>{const _0x2f369f=_0x50bccf,_0x4cbda0=handleScript(_0x13be6e,_0x25b651);return _0x1ae3ed=Object[_0x2f369f(0x172)](_0x1ae3ed,_0x4cbda0[_0x2f369f(0x17a)]),_0x4cbda0['content'];}),outputLangFile(_0x176c27,_0x1f0c35);}),console[_0x45e340(0x133)](new Array(0x50)['join']('-')),outputLocalFile(_0x1ae3ed);}function handleTemplate(_0x15f93c,_0x237186){const _0x3a6c33=a0_0x3bc47f,_0x4343f6=handleStringTpl(_0x15f93c,_0x237186,!![]);_0x15f93c=_0x4343f6[_0x3a6c33(0x147)];let _0x2ca34a=_0x4343f6['obj'];if(!config[_0x3a6c33(0x128)]){const _0x1eb8bb=_0x15f93c;let _0x2edbd4=0x0;parseHTML(_0x1eb8bb,_0x321fed=>{const _0x26c506=_0x3a6c33;hasChinese(_0x321fed[_0x26c506(0x13e)])&&_0x321fed[_0x26c506(0x13e)][_0x26c506(0x159)](/^\s*([\w\W]*?)\s*$/,(_0x553f74,_0x1de9d7)=>{const _0x5ee416=_0x26c506;if(/\{\{(.*?)\}\}/g['test'](_0x553f74)){const _0x4de37e=handleDoubleBrace(_0x1de9d7,_0x237186,_0x5ee416(0x12a),!![]);return _0x2ca34a=Object[_0x5ee416(0x172)](_0x2ca34a,_0x4de37e[_0x5ee416(0x17a)]),_0x15f93c=replaceStringFromTo(_0x15f93c,_0x321fed[_0x5ee416(0x162)]+_0x2edbd4,_0x321fed[_0x5ee416(0x179)]+_0x2edbd4,_0x553f74[_0x5ee416(0x159)](_0x1de9d7,_0x4de37e[_0x5ee416(0x147)])),_0x2edbd4=_0x2edbd4+(_0x4de37e[_0x5ee416(0x147)][_0x5ee416(0x181)]-_0x1de9d7[_0x5ee416(0x181)]),_0x553f74;}const _0x441d59=getTranslateKey(_0x1de9d7,_0x237186);_0x2ca34a[_0x441d59]=_0x1de9d7;const _0x4c9fd9=_0x5ee416(0x165)+_0x441d59+_0x5ee416(0x13b);return _0x15f93c=replaceStringFromTo(_0x15f93c,_0x321fed[_0x5ee416(0x162)]+_0x2edbd4,_0x321fed[_0x5ee416(0x179)]+_0x2edbd4,_0x553f74[_0x5ee416(0x159)](_0x1de9d7,_0x4c9fd9)),_0x2edbd4=_0x2edbd4+(_0x4c9fd9[_0x5ee416(0x181)]-_0x1de9d7[_0x5ee416(0x181)]),_0x553f74;});},_0x44dcd1=>{const _0x5cf3f8=_0x3a6c33;for(let _0x2f01f7=0x0;_0x2f01f7<_0x44dcd1[_0x5cf3f8(0x125)][_0x5cf3f8(0x181)];_0x2f01f7++){const _0x1cb045=_0x44dcd1[_0x5cf3f8(0x125)][_0x2f01f7];if(hasChinese(_0x1cb045[_0x5cf3f8(0x13e)])){const _0x7319db=getTranslateKey(_0x1cb045['value'],_0x237186);_0x2ca34a[_0x7319db]=_0x1cb045[_0x5cf3f8(0x13e)];const _0x3c30c8='$t(\x27'+_0x7319db+'\x27)';_0x15f93c=replaceStringFromTo(_0x15f93c,_0x1cb045['start']+_0x2edbd4,_0x1cb045['end']+_0x2edbd4,_0x1cb045[_0x5cf3f8(0x16f)][_0x5cf3f8(0x159)](_0x1cb045[_0x5cf3f8(0x13e)],_0x3c30c8)[_0x5cf3f8(0x159)](_0x1cb045[_0x5cf3f8(0x14b)],':'+_0x1cb045['name'])),_0x2edbd4=_0x2edbd4+(_0x3c30c8['length']-_0x1cb045[_0x5cf3f8(0x13e)][_0x5cf3f8(0x181)])+0x1;}}});}return{'content':_0x15f93c,'obj':_0x2ca34a};}function handleScript(_0x581870,_0x6df618){const _0x595d7b=a0_0x3bc47f,_0x40f7b6=/(?<!\$t\(\s*)(['"])(.*?)(\1)/g,_0xfa3e50=handleStringTpl(_0x581870,_0x6df618);_0x581870=_0xfa3e50['content'];let _0x467d19=_0xfa3e50[_0x595d7b(0x17a)];return!config[_0x595d7b(0x128)]&&(_0x581870=_0x581870['replace'](_0x40f7b6,(_0x101924,_0x96b591,_0x29d506)=>{const _0x46ad3b=_0x595d7b;if(hasChinese(_0x101924)){const _0x2734b0=getTranslateKey(_0x101924,_0x6df618);return _0x467d19[_0x2734b0]=_0x29d506,_0x46ad3b(0x186)+_0x2734b0+'\x27)';}return _0x101924;})),{'content':_0x581870,'obj':_0x467d19};}function handleStringTpl(_0x35f669,_0x5f12c6,_0x2b851d){const _0x3f0af8=a0_0x3bc47f,_0x53fd38=/(?<!\$t\(\s*)`(.*?)`/g,_0x28b174=/(?<=\$t\()`(.*?)`/g,_0x599f6b=/\${(.*?)}/g;let _0x1288f3={};const _0x558971=function(_0x39ddc8,_0x13bb62,_0x3e9a4e){const _0x31238e=a0_0x4222,_0x114c29=_0x39ddc8['replace'](_0x599f6b,'');if(hasChinese(_0x114c29)){const _0x4538d1=getTranslateKey(_0x39ddc8,_0x5f12c6),_0xaf46f1=_0x39ddc8[_0x31238e(0x17d)](_0x599f6b);if(_0xaf46f1){const _0x2e26ac=_0xaf46f1[_0x31238e(0x167)]((_0x5bb966,_0x1f9b3d,_0x1b5439)=>_0x5bb966[_0x31238e(0x159)](_0x1f9b3d,'{'+_0x1b5439+'}'),_0x13bb62),_0x272c86=_0xaf46f1[_0x31238e(0x12b)](_0x2de7a9=>{const _0x4cbf53=_0x31238e,_0x280efa=_0x2de7a9[_0x4cbf53(0x159)](_0x599f6b,'$1'),_0x5b9e9c=handleDoubleBrace(_0x280efa,_0x5f12c6,_0x2b851d?'$t($key)':_0x4cbf53(0x12e));return _0x1288f3=Object[_0x4cbf53(0x172)](_0x1288f3,_0x5b9e9c[_0x4cbf53(0x17a)]),_0x5b9e9c[_0x4cbf53(0x147)];});return _0x1288f3[_0x4538d1]=_0x2e26ac,_0x3e9a4e('\x27'+_0x4538d1+_0x31238e(0x141)+_0x272c86[_0x31238e(0x134)](',\x20')+']');}return _0x1288f3[_0x4538d1]=_0x13bb62,_0x3e9a4e('\x27'+_0x4538d1+'\x27');}return _0x39ddc8;};return _0x35f669=_0x35f669['replace'](_0x28b174,(_0x57da50,_0x1973d0)=>{return _0x558971(_0x57da50,_0x1973d0,_0x317b00=>_0x317b00);}),!config[_0x3f0af8(0x128)]&&(_0x35f669=_0x35f669['replace'](_0x53fd38,(_0x551af4,_0x4a9f7a)=>{const _0x2a809b=_0x3f0af8;return _0x558971(_0x551af4,_0x4a9f7a,_0x39c7dd=>_0x2b851d?_0x2a809b(0x189)+_0x39c7dd+')':_0x2a809b(0x175)+_0x39c7dd+')');})),{'content':_0x35f669,'obj':_0x1288f3};}function handleDoubleBrace(_0x5b117a,_0x2c91e0,_0x486425='$key',_0x253701=![]){const _0x136f90=a0_0x3bc47f,_0x8a8094=/(['"])(.*?)(\1)/g;let _0x185879={};if(_0x253701){const _0x2c02d0=(_0x5b117a[_0x136f90(0x124)](/{{.*?}}/)||[])['filter'](_0x4ed6a7=>hasChinese(_0x4ed6a7));_0x2c02d0[_0x136f90(0x18b)](_0x423e2e=>{const _0x136c64=_0x136f90,_0x2df28a=getTranslateKey(_0x423e2e,_0x2c91e0);_0x5b117a=_0x5b117a[_0x136c64(0x159)](_0x423e2e,_0x136c64(0x165)+_0x2df28a+_0x136c64(0x13b)),_0x185879[_0x2df28a]=_0x423e2e;});}const _0x1aa151=(_0x5b117a['match'](_0x8a8094)||[])['filter'](_0x5a617c=>hasChinese(_0x5a617c));return _0x1aa151[_0x136f90(0x18b)](_0x2ff3fa=>{const _0x49e226=_0x136f90,_0x572cff=getTranslateKey(_0x2ff3fa,_0x2c91e0);_0x5b117a=_0x5b117a['replace'](_0x2ff3fa,_0x486425['replace']('$key','\x27'+_0x572cff+'\x27')),_0x185879[_0x572cff]=_0x2ff3fa[_0x49e226(0x159)](/^['"]|['"]$/g,'');}),{'content':_0x5b117a,'obj':_0x185879};}function outputLangFile(_0x59fb3c,_0x54eb1b){const _0x205a59=a0_0x3bc47f;if(config['env']=='test'){const _0x4b7a13=_0x59fb3c[_0x205a59(0x159)](/\.(\w+)$/,_0x205a59(0x18d));fs[_0x205a59(0x18a)](_0x4b7a13,_0x54eb1b);}else config[_0x205a59(0x16d)]==_0x205a59(0x163)&&fs[_0x205a59(0x18a)](_0x59fb3c,_0x54eb1b);}async function outputLocalFile(_0x300a2b){const _0x243cab=a0_0x3bc47f,_0x46f472=path[_0x243cab(0x134)](_path,config['output']);if(/\.\w+$/g[_0x243cab(0x18e)](_0x46f472)){const _0x47e69d=path[_0x243cab(0x143)](_0x46f472);!fs[_0x243cab(0x191)](_0x47e69d)&&fs[_0x243cab(0x126)](_0x47e69d,{'recursive':!![]});const _0x3975c7=path[_0x243cab(0x13f)](_0x46f472);handleLocalFile(_0x300a2b,_0x46f472);for(let _0x179ab0=0x0;_0x179ab0<config[_0x243cab(0x178)][_0x243cab(0x181)];_0x179ab0++){const _0x693e4b=config['locals'][_0x179ab0];_0x693e4b=='zh'||_0x693e4b[_0x243cab(0x170)]()==_0x243cab(0x137)?await handleLocalFile(_0x300a2b,path[_0x243cab(0x134)](path[_0x243cab(0x143)](_0x46f472),''+_0x693e4b+_0x3975c7)):await handleLocalFile(_0x300a2b,path[_0x243cab(0x134)](path[_0x243cab(0x143)](_0x46f472),''+_0x693e4b+_0x3975c7),_0x693e4b,config[_0x243cab(0x130)][_0x243cab(0x17c)](_0x693e4b));}statisticalSort(_0x300a2b);}else{!fs[_0x243cab(0x191)](_0x46f472)&&fs[_0x243cab(0x126)](_0x46f472,{'recursive':!![]});handleLocalFile(_0x300a2b,path[_0x243cab(0x134)](_0x46f472,_0x243cab(0x17f)));for(let _0x116c61=0x0;_0x116c61<config[_0x243cab(0x178)][_0x243cab(0x181)];_0x116c61++){const _0xbaf925=config[_0x243cab(0x178)][_0x116c61];_0xbaf925=='zh'||_0xbaf925[_0x243cab(0x170)]()==_0x243cab(0x137)?await handleLocalFile(_0x300a2b,path[_0x243cab(0x134)](_0x46f472,_0xbaf925+'.json')):await handleLocalFile(_0x300a2b,path[_0x243cab(0x134)](_0x46f472,_0xbaf925+'.json'),_0xbaf925,config[_0x243cab(0x130)][_0x243cab(0x17c)](_0xbaf925));}statisticalSort(_0x300a2b);}}async function handleLocalFile(_0x29d71a,_0x28dd1f,_0x2f7a1a,_0x22bad7){const _0x45a7b2=function(_0x422310){const _0x437d80=a0_0x4222,_0x204030=path[_0x437d80(0x13f)](_0x28dd1f);if(_0x204030==_0x437d80(0x136)){let _0x51392e=Object[_0x437d80(0x13c)](_0x422310)[_0x437d80(0x12b)](_0x7a6b6a=>'\x20\x20'+_0x7a6b6a+_0x437d80(0x188)+_0x422310[_0x7a6b6a]+'\x22')['join'](',\x0d');fs['writeFileSync'](_0x28dd1f,_0x437d80(0x139)+_0x51392e+'\x0d}');}else{let _0x5f3063=Object[_0x437d80(0x13c)](_0x422310)[_0x437d80(0x12b)](_0x2c9295=>'\x20\x20\x22'+_0x2c9295+_0x437d80(0x154)+_0x422310[_0x2c9295]+'\x22')['join'](',\x0d');fs[_0x437d80(0x18a)](_0x28dd1f,'{\x0d'+_0x5f3063+'\x0d}');}};let _0x44af1f,_0x1b0cc1;getFileContent(_0x28dd1f,_0x3d84bf=>{const _0x462157=a0_0x4222;_0x44af1f=Object[_0x462157(0x172)]({},_0x29d71a,_0x3d84bf),_0x1b0cc1=getExtraValues(_0x29d71a,_0x3d84bf);},()=>{const _0x3a7e8b=a0_0x4222;_0x44af1f=JSON['parse'](JSON[_0x3a7e8b(0x144)](_0x29d71a)),_0x1b0cc1=JSON['parse'](JSON[_0x3a7e8b(0x144)](_0x29d71a));}),_0x22bad7?await translater(_0x1b0cc1,_0x2f7a1a,config,_0x251482=>{const _0x33cf5e=a0_0x4222;_0x44af1f=Object[_0x33cf5e(0x172)](_0x44af1f,_0x251482),_0x45a7b2(_0x44af1f);}):_0x45a7b2(_0x44af1f);}function getExtraValues(_0x371f99,_0x32e75c){const _0xc310aa=a0_0x3bc47f,_0x21ef27=Object[_0xc310aa(0x13c)](_0x371f99)[_0xc310aa(0x182)](_0x1a1f4d=>!_0x32e75c['hasOwnProperty'](_0x1a1f4d)),_0x138234={};return _0x21ef27[_0xc310aa(0x18b)](_0x3e6b69=>{_0x138234[_0x3e6b69]=_0x371f99[_0x3e6b69];}),_0x138234;}function replaceStringFromTo(_0x1b2b71,_0x185007,_0x3a0937,_0x50ca5b){const _0x1dc10f=a0_0x3bc47f;return _0x1b2b71[_0x1dc10f(0x12d)](0x0,_0x185007)+_0x50ca5b+_0x1b2b71[_0x1dc10f(0x12d)](_0x3a0937);}function statisticalSort(_0x399045){const _0x423556=a0_0x3bc47f,_0x4df912=Object[_0x423556(0x151)](_0x399045);let _0x4a88f5={};for(let _0x36acc5=0x0;_0x36acc5<_0x4df912[_0x423556(0x181)];_0x36acc5++){const _0x552ca3=_0x4df912[_0x36acc5];_0x4a88f5[_0x552ca3]?_0x4a88f5[_0x552ca3]++:_0x4a88f5[_0x552ca3]=0x1;}const _0x2d6a11=Object[_0x423556(0x187)](_0x4a88f5)[_0x423556(0x155)]((_0x22a788,_0x41d551)=>_0x41d551[0x1]-_0x22a788[0x1]);console[_0x423556(0x133)](new Array(0x50)[_0x423556(0x134)]('-')),console[_0x423556(0x133)](_0x423556(0x177));for(let _0xd1c00e=0x0;_0xd1c00e<_0x2d6a11[_0x423556(0x181)];_0xd1c00e++){const _0x414bef=_0x2d6a11[_0xd1c00e];console[_0x423556(0x133)]('-\x20统计:------\x20\x20第'+(_0xd1c00e+0x1)+'名('+_0x414bef[0x1]+'):'+_0x414bef[0x0]);if(_0xd1c00e>=0x9)break;}console['log'](_0x423556(0x15a)),console['log'](new Array(0x50)[_0x423556(0x134)]('-'));}
const a0_0x287929=a0_0x4f84;(function(_0x48e7aa,_0x523893){const _0x36b20b=a0_0x4f84,_0x120295=_0x48e7aa();while(!![]){try{const _0x2f18de=parseInt(_0x36b20b(0x1fb))/0x1*(-parseInt(_0x36b20b(0x217))/0x2)+parseInt(_0x36b20b(0x1ba))/0x3*(-parseInt(_0x36b20b(0x1ad))/0x4)+-parseInt(_0x36b20b(0x1f7))/0x5*(parseInt(_0x36b20b(0x1ae))/0x6)+-parseInt(_0x36b20b(0x215))/0x7+parseInt(_0x36b20b(0x1b6))/0x8*(-parseInt(_0x36b20b(0x1b3))/0x9)+parseInt(_0x36b20b(0x1c4))/0xa*(parseInt(_0x36b20b(0x1c2))/0xb)+parseInt(_0x36b20b(0x1c7))/0xc*(parseInt(_0x36b20b(0x1f6))/0xd);if(_0x2f18de===_0x523893)break;else _0x120295['push'](_0x120295['shift']());}catch(_0x198029){_0x120295['push'](_0x120295['shift']());}}}(a0_0x4d30,0xd2a39));function a0_0x4d30(){const _0x1ab408=['locals','dev','翻译api\x20密钥','name','--appKey\x20<value>','output','11993688QViUDh','\x20\x20\x22','10hlYOPo','\x27)\x20}}','existsSync','readdirSync','writeFileSync','dirname','hasOwnProperty','指定环境:dev(开发)/test(测试)/prod(生产),默认为开发环境','values','-c,\x20--channel\x20<value>','option','excludes','translate','suffix','4yzEAjp','58854dpNQtQ','requiredOption','reduce','翻译api\x20应用key','locals/local.js','27OIUHmA','parse','length','1104016zpRxYG',':\x20\x22','match','--strict','2734839QQihpe','\x20条,本次新增\x20','log','??????FILE_NAME_TO_LONG','$t($key)','./parser/translater','$t(','target','242RNjfaZ','local.js','321830eedajC','.lang.$1','split','12880308WRTuiD','\x22:\x20\x22','join','argument','utf-8','/translate.json','-s,\x20--suffix\x20<value>','commander','array','filter','indexOf','this.$t(\x27','path','dir','keys','strict','entries','.lang','$key','$t(\x27','pinyin-pro','forEach','value','-\x20统计:------\x20\x20第','env','文件不存在','obj','extname','cwd','{{\x20$t(\x27','-e,\x20--excludes\x20<value...>','isDirectory','-\x20统计:------\x20中文字段统计频率排行榜,总计\x20','排除翻译的文件,可指定多个','翻译结果写入路径,默认locals/local.js','prod','first','push','\x20条!','-t,\x20--translate\x20<value...>','需要生成的地区语言(语种代码)如:zh等','翻译渠道\x20baidu百度,youdao有道','翻译的文件夹','attrs','start','./parser/html-parser','-d,\x20--dir\x20<dir>','65zxJciK','695YCVjxy','parseInt','readFileSync','this.$t($key)','161918yKqJen','none','content','.js','assign','zh_cn','lstatSync','map','test','-o,\x20--output\x20<file>','toLowerCase','substring','end','是否严格模式,\x20严格模式只提取$t()内中文,否则全局','mkdirSync','.json','exports.__esModule\x20=\x20true;\x0dexports.default\x20=\x20{\x0d','replace','includes','-\x20执行文件:'];a0_0x4d30=function(){return _0x1ab408;};return a0_0x4d30();}const fs=require('fs'),path=require(a0_0x287929(0x1d3)),{program}=require(a0_0x287929(0x1ce)),{pinyin}=require(a0_0x287929(0x1db)),{translater}=require(a0_0x287929(0x1bf)),{parseHTML}=require(a0_0x287929(0x1f4)),_path=process[a0_0x287929(0x1e3)]();function hasChinese(_0x210e2d){const _0x349448=a0_0x287929;return/[\u4e00-\u9fa5]/g[_0x349448(0x203)](_0x210e2d);}let customLang={},addCount=0x0,config={'env':a0_0x287929(0x210),'locals':[],'excludes':[],'translate':[],'channel':'baidu','appKey':'','secretKey':'','suffix':'.vue','output':a0_0x287929(0x1b2)};getConfig();function getConfig(){const _0x34abeb=a0_0x287929;program[_0x34abeb(0x1ca)]('<env>',_0x34abeb(0x21e))[_0x34abeb(0x1af)](_0x34abeb(0x1f5),_0x34abeb(0x1f1))[_0x34abeb(0x221)]('-l,\x20--locals\x20<value...>',_0x34abeb(0x1ef))[_0x34abeb(0x221)](_0x34abeb(0x220),_0x34abeb(0x1f0))[_0x34abeb(0x221)](_0x34abeb(0x213),_0x34abeb(0x1b1))[_0x34abeb(0x221)]('--secretKey\x20<value>',_0x34abeb(0x211))[_0x34abeb(0x221)](_0x34abeb(0x1ee),'需要翻译的语言,对应locals')[_0x34abeb(0x221)](_0x34abeb(0x1cd),'翻译的文件名后缀,默认.vue')[_0x34abeb(0x221)](_0x34abeb(0x1e5),_0x34abeb(0x1e8))[_0x34abeb(0x221)](_0x34abeb(0x204),_0x34abeb(0x1e9))[_0x34abeb(0x221)](_0x34abeb(0x1b9),_0x34abeb(0x208)),program[_0x34abeb(0x1b4)]();const _0x5bac3b=program['opts']();config=Object['assign'](config,_0x5bac3b,{'env':program['args'][0x0]}),getFileContent(path['join'](_path,_0x34abeb(0x1cc)),_0x12d33b=>{const _0x2de2cd=_0x34abeb;customLang=_0x12d33b,console[_0x2de2cd(0x1bc)](new Array(0x50)['join']('-')),console['log']('-\x20读取字典:\x20读取自定义key字典\x27translate.json\x27成功!'),console[_0x2de2cd(0x1bc)](new Array(0x50)[_0x2de2cd(0x1c9)]('-'));},()=>{const _0x4a496c=_0x34abeb;console[_0x4a496c(0x1bc)](new Array(0x50)[_0x4a496c(0x1c9)]('-')),console['log']('-\x20读取字典:\x20未读取到自定义字典translate.json!'),console['log'](new Array(0x50)[_0x4a496c(0x1c9)]('-'));});}function getFileContent(_0x30d25c,_0x550537,_0x2865e3){const _0x8dac11=a0_0x287929;if(fs[_0x8dac11(0x219)](_0x30d25c))try{let _0x64426e=fs[_0x8dac11(0x1f9)](_0x30d25c,{'encoding':_0x8dac11(0x1cb)});const _0x553cf6=path['extname'](_0x30d25c);if(_0x553cf6==_0x8dac11(0x20a))_0x550537&&_0x550537(JSON[_0x8dac11(0x1b4)](_0x64426e));else{let _0x34fe68={};_0x64426e[_0x8dac11(0x20c)](/(['"])*(\w+?)\1*:\s*(['"])([^\3]*?)\3/gm,(_0x19f9d1,_0x737833,_0x177bf3,_0x5cb53a,_0x238546)=>{_0x34fe68[_0x177bf3]=_0x238546;}),_0x550537&&_0x550537(_0x34fe68);}}catch(_0x38f4bb){_0x2865e3&&_0x2865e3('读取文件失败');}else _0x2865e3&&_0x2865e3(_0x8dac11(0x1e0));}function getSuffixFiles(_0x148d3e,_0x38845b,_0x5a0957){const _0x29495e=fs['readdirSync'](_0x148d3e),_0x21e53e=[];return _0x29495e['forEach']((_0x46f1bf,_0x2aa077)=>{const _0x85e8c1=a0_0x4f84,_0x44814c=path['join'](_0x148d3e,_0x46f1bf),_0x57d70b=fs[_0x85e8c1(0x201)](_0x44814c);if(_0x57d70b[_0x85e8c1(0x1e6)]())_0x21e53e['push'](...getSuffixFiles(_0x44814c,_0x38845b,_0x5a0957));else path[_0x85e8c1(0x1e2)](_0x46f1bf)==_0x38845b&&!_0x5a0957[_0x85e8c1(0x20d)](path[_0x85e8c1(0x1e2)](_0x46f1bf))&&_0x21e53e[_0x85e8c1(0x1ec)](_0x44814c);}),_0x21e53e;}function delSuffixFiles(_0x20b03b,_0x5a2b18,_0x55cf06){const _0x540be3=a0_0x287929,_0x5c57f8=fs[_0x540be3(0x21a)](_0x20b03b);_0x5c57f8['forEach']((_0x2402c4,_0x142d6e)=>{const _0x856f59=_0x540be3,_0x160b46=path[_0x856f59(0x1c9)](_0x20b03b,_0x2402c4),_0x3d870e=fs[_0x856f59(0x201)](_0x160b46),_0x34fdc0=new RegExp(_0x856f59(0x1d8)+_0x5a2b18+'$');if(_0x3d870e[_0x856f59(0x1e6)]())delSuffixFiles(_0x160b46,_0x5a2b18,_0x55cf06);else _0x34fdc0[_0x856f59(0x203)](_0x2402c4)&&!_0x55cf06['includes'](path['extname'](_0x2402c4))&&fs['unlinkSync'](_0x160b46);});}function getTranslateKey(_0x43b8df,_0x57e1fd){const _0x2eb510=a0_0x287929;if(_0x57e1fd[_0x2eb510(0x1b5)]>0x28)return _0x2eb510(0x1bd);const _0x211a93=/^(['"`])|['"`]$/g,_0x1f5740=/\$*\{(.*?)\}/g;let _0x5eb1d5=_0x43b8df['replace'](_0x211a93,'');const _0x2fb947=(_0x5eb1d5[_0x2eb510(0x1b8)](_0x1f5740)||[])[_0x2eb510(0x1b0)]((_0x3a9ce4,_0x102661,_0x4a8a6c)=>_0x3a9ce4[_0x2eb510(0x20c)](_0x102661,'{'+_0x4a8a6c+'}'),_0x5eb1d5),_0x543603=Object['values'](customLang)[_0x2eb510(0x1d1)](_0x2fb947);if(_0x543603!==-0x1)return Object[_0x2eb510(0x1d5)](customLang)[_0x543603];_0x5eb1d5=_0x5eb1d5['replace'](_0x1f5740,'o'),_0x5eb1d5=_0x5eb1d5[_0x2eb510(0x20c)](/[^\u4e00-\u9fa5\w]/g,'');let _0x5aea2f=_0x5eb1d5['replace'](/([\u4e00-\u9fa5]+)/g,_0x514dff=>{const _0x29b803=_0x2eb510;return pinyin(_0x514dff,{'toneType':'none','type':_0x29b803(0x1cf)})[_0x29b803(0x1c9)]('_');}),_0x2679ff=_0x57e1fd+'_'+_0x5aea2f;if(_0x2679ff[_0x2eb510(0x1b5)]>0x1e){_0x5aea2f=_0x5eb1d5['replace'](/([\u4e00-\u9fa5]+)/g,_0x1079f6=>{const _0x23078d=_0x2eb510;return pinyin(_0x1079f6,{'pattern':_0x23078d(0x1eb),'toneType':_0x23078d(0x1fc),'type':_0x23078d(0x1cf)})[_0x23078d(0x1c9)]('');}),_0x2679ff=_0x57e1fd+'_'+_0x5aea2f;if(_0x2679ff['length']>0x32){const _0x39d338=Number[_0x2eb510(0x1f8)](_0x5aea2f['length']/(0x31-_0x57e1fd[_0x2eb510(0x1b5)]))+0x1;_0x5aea2f=new Array(_0x5aea2f[_0x2eb510(0x1b5)])['fill']('')[_0x2eb510(0x1b0)]((_0x22b8d1,_0x4dc28c,_0xaef187)=>''+_0x22b8d1+(_0xaef187%_0x39d338==0x0?_0x5aea2f[_0xaef187]:''));}_0x2679ff=_0x57e1fd+'_'+_0x5aea2f;}return _0x2679ff;}translate();function translate(){const _0x5195ff=a0_0x287929;delSuffixFiles(path[_0x5195ff(0x1c9)](_path,config[_0x5195ff(0x1d4)]),config['suffix'],config[_0x5195ff(0x222)]);const _0xa70879=getSuffixFiles(path['join'](_path,config[_0x5195ff(0x1d4)]),config[_0x5195ff(0x1ac)],config[_0x5195ff(0x222)]);let _0x2d9a4f={};console[_0x5195ff(0x1bc)](new Array(0x50)[_0x5195ff(0x1c9)]('-')),_0xa70879['forEach'](function(_0x42f483,_0x5850b8){const _0x154304=_0x5195ff;console['log'](_0x154304(0x20e)+_0x42f483);let _0xd2e09=fs[_0x154304(0x1f9)](_0x42f483,{'encoding':'utf-8'})+'';const _0x4c7fff=path['basename'](_0x42f483)[_0x154304(0x1c6)]('.')[0x0],_0x4b4bb1=/\<template\>(.|\n|\r)*\<\/template\>/g,_0x33fa3d=/<!--[\s\S]*?-->/g,_0x4c0c36=/\<script\>(.|\n|\r)*\<\/script\>/g,_0x335e80=/(?<=\s|\;|^|\{|\})\/\/[^\r\n]*/g,_0x10f716=/\/\*[\s\S]*?\*\//g;_0xd2e09=_0xd2e09['replace'](_0x4b4bb1,_0x5e08a5=>_0x5e08a5[_0x154304(0x20c)](_0x33fa3d,'')),_0xd2e09=_0xd2e09['replace'](_0x4c0c36,_0x2a8fec=>_0x2a8fec['replace'](_0x335e80,'')[_0x154304(0x20c)](_0x10f716,''));const _0xe3a6aa=/(?<=\$t\()(['"])(.*?)\1/g;_0xd2e09=_0xd2e09['replace'](_0xe3a6aa,(_0x7661a0,_0x51b0f3,_0x3a0781)=>{if(hasChinese(_0x7661a0)){const _0x427555=getTranslateKey(_0x7661a0,_0x4c7fff);return _0x2d9a4f[_0x427555]=_0x3a0781,'\x27'+_0x427555+'\x27';}return _0x7661a0;}),_0xd2e09=_0xd2e09['replace'](_0x4b4bb1,_0x59eb2b=>{const _0x2b293d=_0x154304,_0x11ac9a=handleTemplate(_0x59eb2b,_0x4c7fff);return _0x2d9a4f=Object['assign'](_0x2d9a4f,_0x11ac9a[_0x2b293d(0x1e1)]),_0x11ac9a[_0x2b293d(0x1fd)];}),_0xd2e09=_0xd2e09[_0x154304(0x20c)](_0x4c0c36,_0x45ac9f=>{const _0x516888=_0x154304,_0x4169fc=handleScript(_0x45ac9f,_0x4c7fff);return _0x2d9a4f=Object[_0x516888(0x1ff)](_0x2d9a4f,_0x4169fc[_0x516888(0x1e1)]),_0x4169fc[_0x516888(0x1fd)];}),outputLangFile(_0x42f483,_0xd2e09);}),console[_0x5195ff(0x1bc)](new Array(0x50)[_0x5195ff(0x1c9)]('-')),outputLocalFile(_0x2d9a4f);}function handleTemplate(_0x56e353,_0x5e7668){const _0x3db7ab=a0_0x287929,_0x4d12fc=handleStringTpl(_0x56e353,_0x5e7668,!![]);_0x56e353=_0x4d12fc[_0x3db7ab(0x1fd)];let _0x258420=_0x4d12fc[_0x3db7ab(0x1e1)];if(!config[_0x3db7ab(0x1d6)]){const _0x10996d=_0x56e353;let _0x3cee95=0x0;parseHTML(_0x10996d,_0x32b4f7=>{const _0x255187=_0x3db7ab;hasChinese(_0x32b4f7[_0x255187(0x1dd)])&&_0x32b4f7[_0x255187(0x1dd)]['replace'](/^\s*([\w\W]*?)\s*$/,(_0x346127,_0x3c05be)=>{const _0x58af56=_0x255187;if(/\{\{(.*?)\}\}/g[_0x58af56(0x203)](_0x346127)){const _0x8d4493=handleDoubleBrace(_0x3c05be,_0x5e7668,'$t($key)',!![]);return _0x258420=Object[_0x58af56(0x1ff)](_0x258420,_0x8d4493[_0x58af56(0x1e1)]),_0x56e353=replaceStringFromTo(_0x56e353,_0x32b4f7['start']+_0x3cee95,_0x32b4f7[_0x58af56(0x207)]+_0x3cee95,_0x346127[_0x58af56(0x20c)](_0x3c05be,_0x8d4493['content'])),_0x3cee95=_0x3cee95+(_0x8d4493['content'][_0x58af56(0x1b5)]-_0x3c05be[_0x58af56(0x1b5)]),_0x346127;}const _0x5725d6=getTranslateKey(_0x3c05be,_0x5e7668);_0x258420[_0x5725d6]=_0x3c05be['replace'](/\n/g,'\x5cn');const _0x480a6e=_0x58af56(0x1e4)+_0x5725d6+_0x58af56(0x218);return _0x56e353=replaceStringFromTo(_0x56e353,_0x32b4f7['start']+_0x3cee95,_0x32b4f7[_0x58af56(0x207)]+_0x3cee95,_0x346127[_0x58af56(0x20c)](_0x3c05be,_0x480a6e)),_0x3cee95=_0x3cee95+(_0x480a6e[_0x58af56(0x1b5)]-_0x3c05be[_0x58af56(0x1b5)]),_0x346127;});},_0x1d0305=>{const _0xe15138=_0x3db7ab;for(let _0x59872b=0x0;_0x59872b<_0x1d0305[_0xe15138(0x1f2)][_0xe15138(0x1b5)];_0x59872b++){const _0xcbbf70=_0x1d0305['attrs'][_0x59872b];if(hasChinese(_0xcbbf70[_0xe15138(0x1dd)])){if(/^:/[_0xe15138(0x203)](_0xcbbf70[_0xe15138(0x212)])){const _0x8ae939=handleDoubleBrace(_0xcbbf70[_0xe15138(0x1dd)],_0x5e7668,_0xe15138(0x1be),![]);_0x258420=Object[_0xe15138(0x1ff)](_0x258420,_0x8ae939['obj']),_0x56e353=replaceStringFromTo(_0x56e353,_0xcbbf70['start']+_0x3cee95,_0xcbbf70[_0xe15138(0x207)]+_0x3cee95,_0xcbbf70[_0xe15138(0x1c1)]['replace'](_0xcbbf70[_0xe15138(0x1dd)],_0x8ae939[_0xe15138(0x1fd)])),_0x3cee95=_0x3cee95+(_0x8ae939[_0xe15138(0x1fd)]['length']-_0xcbbf70[_0xe15138(0x1dd)][_0xe15138(0x1b5)]);return;}const _0x1280c3=getTranslateKey(_0xcbbf70[_0xe15138(0x1dd)],_0x5e7668);_0x258420[_0x1280c3]=_0xcbbf70[_0xe15138(0x1dd)];const _0x3041e5=_0xe15138(0x1da)+_0x1280c3+'\x27)';_0x56e353=replaceStringFromTo(_0x56e353,_0xcbbf70[_0xe15138(0x1f3)]+_0x3cee95,_0xcbbf70[_0xe15138(0x207)]+_0x3cee95,_0xcbbf70[_0xe15138(0x1c1)][_0xe15138(0x20c)](_0xcbbf70[_0xe15138(0x1dd)],_0x3041e5)[_0xe15138(0x20c)](_0xcbbf70[_0xe15138(0x212)],':'+_0xcbbf70[_0xe15138(0x212)])),_0x3cee95=_0x3cee95+(_0x3041e5[_0xe15138(0x1b5)]-_0xcbbf70[_0xe15138(0x1dd)][_0xe15138(0x1b5)])+0x1;}}});}return{'content':_0x56e353,'obj':_0x258420};}function handleScript(_0x36ddf0,_0x4445e0){const _0x47f9b8=a0_0x287929,_0x3a343c=/(?<!\$t\(\s*)(['"])(.*?)(\1)/g,_0x3f58ea=handleStringTpl(_0x36ddf0,_0x4445e0);_0x36ddf0=_0x3f58ea[_0x47f9b8(0x1fd)];let _0x2e9dcb=_0x3f58ea[_0x47f9b8(0x1e1)];return!config['strict']&&(_0x36ddf0=_0x36ddf0[_0x47f9b8(0x20c)](_0x3a343c,(_0x4a6436,_0x5dc703,_0x358ab2)=>{const _0x50919d=_0x47f9b8;if(hasChinese(_0x4a6436)){const _0x120849=getTranslateKey(_0x4a6436,_0x4445e0);return _0x2e9dcb[_0x120849]=_0x358ab2,_0x50919d(0x1d2)+_0x120849+'\x27)';}return _0x4a6436;})),{'content':_0x36ddf0,'obj':_0x2e9dcb};}function handleStringTpl(_0x3e81d7,_0x2ec390,_0x5b5e2d){const _0xac2e78=a0_0x287929,_0x3e0890=/(?<!\$t\(\s*)`(.*?)`/g,_0x1f5030=/(?<=\$t\()`(.*?)`/g,_0x3ca028=/\${(.*?)}/g;let _0x25620b={};const _0x566125=function(_0x526e09,_0xc3b877,_0x348004){const _0x58d77f=a0_0x4f84,_0x160c37=_0x526e09[_0x58d77f(0x20c)](_0x3ca028,'');if(hasChinese(_0x160c37)){const _0x2c155a=getTranslateKey(_0x526e09,_0x2ec390),_0x59288d=_0x526e09[_0x58d77f(0x1b8)](_0x3ca028);if(_0x59288d){const _0x235331=_0x59288d[_0x58d77f(0x1b0)]((_0x37cd92,_0x415618,_0x58e5e3)=>_0x37cd92[_0x58d77f(0x20c)](_0x415618,'{'+_0x58e5e3+'}'),_0xc3b877),_0x2e5f3f=_0x59288d[_0x58d77f(0x202)](_0x2a539f=>{const _0x42d6f3=_0x58d77f,_0x27264e=_0x2a539f['replace'](_0x3ca028,'$1'),_0x320fe7=handleDoubleBrace(_0x27264e,_0x2ec390,_0x5b5e2d?_0x42d6f3(0x1be):_0x42d6f3(0x1fa));return _0x25620b=Object[_0x42d6f3(0x1ff)](_0x25620b,_0x320fe7['obj']),_0x320fe7[_0x42d6f3(0x1fd)];});return _0x25620b[_0x2c155a]=_0x235331,_0x348004('\x27'+_0x2c155a+'\x27,\x20['+_0x2e5f3f[_0x58d77f(0x1c9)](',\x20')+']');}return _0x25620b[_0x2c155a]=_0xc3b877,_0x348004('\x27'+_0x2c155a+'\x27');}return _0x526e09;};return _0x3e81d7=_0x3e81d7['replace'](_0x1f5030,(_0x45d72b,_0x247611)=>{return _0x566125(_0x45d72b,_0x247611,_0xde83a=>_0xde83a);}),!config[_0xac2e78(0x1d6)]&&(_0x3e81d7=_0x3e81d7['replace'](_0x3e0890,(_0x1fc3bc,_0x515b8f)=>{const _0x1cdc62=_0xac2e78;return _0x566125(_0x1fc3bc,_0x515b8f,_0x57c498=>_0x5b5e2d?_0x1cdc62(0x1c0)+_0x57c498+')':'this.$t('+_0x57c498+')');})),{'content':_0x3e81d7,'obj':_0x25620b};}function handleDoubleBrace(_0x3adb3c,_0x1ec795,_0x2bc0e6=a0_0x287929(0x1d9),_0x57e3bd=![]){const _0x384511=a0_0x287929,_0x5ed4e=/(['"])(.*?)(\1)/g;let _0x4a71b4={};if(_0x57e3bd){const _0x30fc97=(_0x3adb3c[_0x384511(0x1c6)](/{{.*?}}/)||[])[_0x384511(0x1d0)](_0x51e6d7=>hasChinese(_0x51e6d7));_0x30fc97[_0x384511(0x1dc)](_0x35a56d=>{const _0x1831f5=_0x384511,_0x1297f7=getTranslateKey(_0x35a56d,_0x1ec795);_0x3adb3c=_0x3adb3c[_0x1831f5(0x20c)](_0x35a56d,_0x1831f5(0x1e4)+_0x1297f7+'\x27)\x20}}'),_0x4a71b4[_0x1297f7]=_0x35a56d;});}const _0x4ddc7a=(_0x3adb3c[_0x384511(0x1b8)](_0x5ed4e)||[])['filter'](_0x153766=>hasChinese(_0x153766));return _0x4ddc7a[_0x384511(0x1dc)](_0x58d28a=>{const _0x39084b=_0x384511,_0x559889=getTranslateKey(_0x58d28a,_0x1ec795);_0x3adb3c=_0x3adb3c[_0x39084b(0x20c)](_0x58d28a,_0x2bc0e6[_0x39084b(0x20c)](_0x39084b(0x1d9),'\x27'+_0x559889+'\x27')),_0x4a71b4[_0x559889]=_0x58d28a[_0x39084b(0x20c)](/^['"]|['"]$/g,'');}),{'content':_0x3adb3c,'obj':_0x4a71b4};}function outputLangFile(_0x37faf8,_0x31e891){const _0x5db226=a0_0x287929;if(config[_0x5db226(0x1df)]==_0x5db226(0x203)){const _0x33f0ca=_0x37faf8['replace'](/\.(\w+)$/,_0x5db226(0x1c5));fs['writeFileSync'](_0x33f0ca,_0x31e891);}else config[_0x5db226(0x1df)]==_0x5db226(0x1ea)&&fs['writeFileSync'](_0x37faf8,_0x31e891);}async function outputLocalFile(_0x17fd4c){const _0x48f7a4=a0_0x287929,_0x54d29f=path[_0x48f7a4(0x1c9)](_path,config[_0x48f7a4(0x214)]);if(/\.\w+$/g['test'](_0x54d29f)){const _0x21c0e9=path[_0x48f7a4(0x21c)](_0x54d29f);!fs[_0x48f7a4(0x219)](_0x21c0e9)&&fs[_0x48f7a4(0x209)](_0x21c0e9,{'recursive':!![]});const _0x4ed43f=path[_0x48f7a4(0x1e2)](_0x54d29f);handleLocalFile(_0x17fd4c,_0x54d29f,!![]);for(let _0x528cef=0x0;_0x528cef<config[_0x48f7a4(0x20f)]['length'];_0x528cef++){const _0xf429ba=config['locals'][_0x528cef];_0xf429ba=='zh'||_0xf429ba[_0x48f7a4(0x205)]()==_0x48f7a4(0x200)?await handleLocalFile(_0x17fd4c,path['join'](path[_0x48f7a4(0x21c)](_0x54d29f),''+_0xf429ba+_0x4ed43f)):await handleLocalFile(_0x17fd4c,path[_0x48f7a4(0x1c9)](path[_0x48f7a4(0x21c)](_0x54d29f),''+_0xf429ba+_0x4ed43f),![],config[_0x48f7a4(0x223)][_0x48f7a4(0x20d)](_0xf429ba),_0xf429ba);}statisticalSort(_0x17fd4c);}else{!fs[_0x48f7a4(0x219)](_0x54d29f)&&fs[_0x48f7a4(0x209)](_0x54d29f,{'recursive':!![]});handleLocalFile(_0x17fd4c,path[_0x48f7a4(0x1c9)](_0x54d29f,_0x48f7a4(0x1c3)),!![]);for(let _0x4771b8=0x0;_0x4771b8<config[_0x48f7a4(0x20f)][_0x48f7a4(0x1b5)];_0x4771b8++){const _0x3d341c=config['locals'][_0x4771b8];_0x3d341c=='zh'||_0x3d341c[_0x48f7a4(0x205)]()=='zh_cn'?await handleLocalFile(_0x17fd4c,path[_0x48f7a4(0x1c9)](_0x54d29f,_0x3d341c+_0x48f7a4(0x1fe))):await handleLocalFile(_0x17fd4c,path[_0x48f7a4(0x1c9)](_0x54d29f,_0x3d341c+_0x48f7a4(0x1fe)),![],config[_0x48f7a4(0x223)][_0x48f7a4(0x20d)](_0x3d341c),_0x3d341c);}statisticalSort(_0x17fd4c);}}async function handleLocalFile(_0x116a16,_0x5edef7,_0xbe5980,_0x334f3d,_0x1a52bf){const _0x1d22d4=function(_0x59577d){const _0x10ff91=a0_0x4f84,_0x570bcb=path[_0x10ff91(0x1e2)](_0x5edef7);if(_0x570bcb==_0x10ff91(0x1fe)){let _0x18925c=Object['keys'](_0x59577d)[_0x10ff91(0x202)](_0xbfa762=>'\x20\x20'+_0xbfa762+_0x10ff91(0x1b7)+_0x59577d[_0xbfa762]+'\x22')[_0x10ff91(0x1c9)](',\x0d');fs[_0x10ff91(0x21b)](_0x5edef7,_0x10ff91(0x20b)+_0x18925c+'\x0d}',{'flag':'w'});}else{let _0x2d8c05=Object[_0x10ff91(0x1d5)](_0x59577d)[_0x10ff91(0x202)](_0x2aa580=>_0x10ff91(0x216)+_0x2aa580+_0x10ff91(0x1c8)+_0x59577d[_0x2aa580]+'\x22')['join'](',\x0d');fs[_0x10ff91(0x21b)](_0x5edef7,'{\x0d'+_0x2d8c05+'\x0d}',{'flag':'w'});}};let _0xf86ab8,_0x3d9115;getFileContent(_0x5edef7,_0x9727b0=>{const _0x4d05dd=a0_0x4f84;_0xbe5980?(_0xf86ab8={..._0x116a16},_0x3d9115=getExtraValues(_0x116a16,_0x9727b0),addCount=Object[_0x4d05dd(0x1d5)](_0x3d9115)[_0x4d05dd(0x1b5)]):(_0xf86ab8=Object[_0x4d05dd(0x1ff)]({},_0x116a16,_0x9727b0),_0x3d9115=getExtraValues(_0x116a16,_0x9727b0));},()=>{_0xf86ab8={..._0x116a16},_0x3d9115={..._0x116a16};}),_0x334f3d?await translater(_0x3d9115,_0x1a52bf,config,_0x1930ee=>{const _0x26ea5c=a0_0x4f84;_0xf86ab8=Object[_0x26ea5c(0x1ff)](_0xf86ab8,_0x1930ee),_0x1d22d4(_0xf86ab8);}):_0x1d22d4(_0xf86ab8);}function a0_0x4f84(_0x1b2699,_0x25ba4b){const _0x4d30d5=a0_0x4d30();return a0_0x4f84=function(_0x4f8466,_0x532b91){_0x4f8466=_0x4f8466-0x1ac;let _0x53954c=_0x4d30d5[_0x4f8466];return _0x53954c;},a0_0x4f84(_0x1b2699,_0x25ba4b);}function getExtraValues(_0x546c2c,_0x3e86fe){const _0x21406c=a0_0x287929,_0x20e61f=Object[_0x21406c(0x1d5)](_0x546c2c)[_0x21406c(0x1d0)](_0x59c587=>!_0x3e86fe[_0x21406c(0x21d)](_0x59c587)),_0xa9b9a0={};return _0x20e61f[_0x21406c(0x1dc)](_0x2e607b=>{_0xa9b9a0[_0x2e607b]=_0x546c2c[_0x2e607b];}),_0xa9b9a0;}function replaceStringFromTo(_0x205732,_0x301a33,_0x17e7db,_0x31a997){const _0x1e2cbe=a0_0x287929;return _0x205732[_0x1e2cbe(0x206)](0x0,_0x301a33)+_0x31a997+_0x205732['substring'](_0x17e7db);}function statisticalSort(_0x926efd){const _0x37f964=a0_0x287929,_0x4150db=Object[_0x37f964(0x21f)](_0x926efd);let _0x203702={};for(let _0x3d3390=0x0;_0x3d3390<_0x4150db[_0x37f964(0x1b5)];_0x3d3390++){const _0x591f19=_0x4150db[_0x3d3390];_0x203702[_0x591f19]?_0x203702[_0x591f19]++:_0x203702[_0x591f19]=0x1;}const _0x254111=Object[_0x37f964(0x1d7)](_0x203702)['sort']((_0x3380d7,_0x44d7af)=>_0x44d7af[0x1]-_0x3380d7[0x1]);console[_0x37f964(0x1bc)](new Array(0x50)[_0x37f964(0x1c9)]('-')),console[_0x37f964(0x1bc)](_0x37f964(0x1e7)+Object[_0x37f964(0x1d5)](_0x926efd)[_0x37f964(0x1b5)]+_0x37f964(0x1bb)+addCount+_0x37f964(0x1ed));for(let _0x3ea423=0x0;_0x3ea423<_0x254111['length'];_0x3ea423++){const _0x1467e6=_0x254111[_0x3ea423];console[_0x37f964(0x1bc)](_0x37f964(0x1de)+(_0x3ea423+0x1)+'名('+_0x1467e6[0x1]+'):'+_0x1467e6[0x0]);if(_0x3ea423>=0x9)break;}console['log']('-\x20统计:------\x20中文字段统计频率排行榜,频率过高建议加入自定义key!'),console[_0x37f964(0x1bc)](new Array(0x50)[_0x37f964(0x1c9)]('-'));}

@@ -1,1 +0,1 @@

(function(_0x3e53a4,_0x58ab41){const _0x40866c=a1_0x40c1,_0x36152f=_0x3e53a4();while(!![]){try{const _0x5399e6=parseInt(_0x40866c(0x166))/0x1+-parseInt(_0x40866c(0x147))/0x2*(parseInt(_0x40866c(0x150))/0x3)+-parseInt(_0x40866c(0x14a))/0x4*(-parseInt(_0x40866c(0x14f))/0x5)+-parseInt(_0x40866c(0x157))/0x6*(parseInt(_0x40866c(0x164))/0x7)+-parseInt(_0x40866c(0x165))/0x8*(parseInt(_0x40866c(0x169))/0x9)+parseInt(_0x40866c(0x163))/0xa*(-parseInt(_0x40866c(0x158))/0xb)+parseInt(_0x40866c(0x15b))/0xc*(parseInt(_0x40866c(0x16a))/0xd);if(_0x5399e6===_0x58ab41)break;else _0x36152f['push'](_0x36152f['shift']());}catch(_0x554dbb){_0x36152f['push'](_0x36152f['shift']());}}}(a1_0x10a8,0x4bb81));function makeMap(_0x57b26e,_0x116c9e){const _0x4a58ce=a1_0x40c1,_0x382df0=Object['create'](null),_0x5c1524=_0x57b26e[_0x4a58ce(0x15a)](',');for(let _0x3c7d01=0x0;_0x3c7d01<_0x5c1524[_0x4a58ce(0x14b)];_0x3c7d01++){_0x382df0[_0x5c1524[_0x3c7d01]]=!![];}return _0x116c9e?_0x4782db=>_0x382df0[_0x4782db['toLowerCase']()]:_0x3ba57e=>_0x382df0[_0x3ba57e];}const doctype=/^<!DOCTYPE [^>]+>/i,endTag=/^<\/([a-zA-Z_][\-\.0-9_a-zA-Z]*)[^>]*>/,startTagOpen=/^<([a-zA-Z_][\-\.0-9_a-zA-Z]*)/,attribute=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,startTagClose=/^\s*(\/?)>/,isPlainTextElement=makeMap('script,style,textarea',!![]),isIgnoreNewlineTag=makeMap('pre,textarea',!![]),shouldIgnoreFirstNewline=(_0xdd1da1,_0x1254b9)=>_0xdd1da1&&isIgnoreNewlineTag(_0xdd1da1)&&_0x1254b9[0x0]==='\x0a',decodingMap={'&lt;':'<','&gt;':'>','&quot;':'\x22','&amp;':'&','&#10;':'\x0a','&#9;':'\x09','&#39;':'\x27'},encodedAttr=/&(?:lt|gt|quot|amp|#39);/g,encodedAttrWithNewLines=/&(?:lt|gt|quot|amp|#39|#10|#9);/g;function decodeAttr(_0x134db4,_0x408895){const _0x146f65=_0x408895?encodedAttrWithNewLines:encodedAttr;return _0x134db4['replace'](_0x146f65,_0x5d8d12=>decodingMap[_0x5d8d12]);}parseHTML('<div><span\x20class=\x22title\x22>测试</span><my-component/></div>');function a1_0x40c1(_0x69f1e3,_0x1e38c2){const _0x10a832=a1_0x10a8();return a1_0x40c1=function(_0x40c1cb,_0x28bcde){_0x40c1cb=_0x40c1cb-0x147;let _0x30de3b=_0x10a832[_0x40c1cb];return _0x30de3b;},a1_0x40c1(_0x69f1e3,_0x1e38c2);}function parseHTML(_0xa7d694,_0x3bf8fc={'shouldDecodeNewlines':!![],'shouldDecodeNewlinesForHref':!![]}){const _0x4b7fd7=a1_0x40c1,_0x530c27=[];let _0x46fae6=0x0,_0x782deb,_0x52946f;while(_0xa7d694){_0x782deb=_0xa7d694,console['log'](_0xa7d694);if(!_0x52946f||!isPlainTextElement(_0x52946f)){let _0x297b47=_0xa7d694['indexOf']('<');if(_0x297b47===0x0){const _0x1c37a5=_0xa7d694[_0x4b7fd7(0x155)](doctype);if(_0x1c37a5){_0x2a6937(_0x1c37a5[0x0][_0x4b7fd7(0x14b)]);continue;}const _0x479d62=_0xa7d694[_0x4b7fd7(0x155)](endTag);if(_0x479d62){console['log'](_0x4b7fd7(0x161)+_0x479d62[0x1]);const _0x8cfa99=_0x46fae6;_0x2a6937(_0x479d62[0x0][_0x4b7fd7(0x14b)]),_0x37efbe(_0x479d62[0x1],_0x8cfa99,_0x46fae6);continue;}const _0x4d9894=_0x178235();if(_0x4d9894){console[_0x4b7fd7(0x153)]('【'+(_0x4d9894[_0x4b7fd7(0x162)]?'闭合标签':'开始标签')+'】:'+_0x4d9894[_0x4b7fd7(0x14c)]);continue;}}let _0x344e4e,_0x27edac,_0x3f8741;if(_0x297b47>=0x0){_0x27edac=_0xa7d694[_0x4b7fd7(0x14e)](_0x297b47);while(!endTag[_0x4b7fd7(0x167)](_0x27edac)&&!startTagOpen['test'](_0x27edac)){_0x3f8741=_0x27edac[_0x4b7fd7(0x15d)]('<',0x1);if(_0x3f8741<0x0)break;_0x297b47+=_0x3f8741,_0x27edac=_0xa7d694[_0x4b7fd7(0x14e)](_0x297b47);}_0x344e4e=_0xa7d694[_0x4b7fd7(0x160)](0x0,_0x297b47),console[_0x4b7fd7(0x153)](_0x4b7fd7(0x14d)+_0x344e4e);}_0x297b47<0x0&&(_0x344e4e=_0xa7d694),_0x344e4e&&_0x2a6937(_0x344e4e[_0x4b7fd7(0x14b)]);}else{}if(_0xa7d694===_0x782deb){}}function _0x2a6937(_0x12ae47){const _0x81e687=_0x4b7fd7;_0x46fae6+=_0x12ae47,_0xa7d694=_0xa7d694[_0x81e687(0x160)](_0x12ae47);}function _0x178235(){const _0x41de00=_0x4b7fd7,_0xecaff8=_0xa7d694[_0x41de00(0x155)](startTagOpen);if(_0xecaff8){const _0xf8121d={'tagName':_0xecaff8[0x1],'attrs':[],'start':_0x46fae6};_0x2a6937(_0xecaff8[0x0][_0x41de00(0x14b)]);let _0x3682b2,_0x4d28eb;while(!(_0x3682b2=_0xa7d694['match'](startTagClose))&&(_0x4d28eb=_0xa7d694[_0x41de00(0x155)](dynamicArgAttribute)||_0xa7d694[_0x41de00(0x155)](attribute))){_0x4d28eb[_0x41de00(0x154)]=_0x46fae6,_0x2a6937(_0x4d28eb[0x0][_0x41de00(0x14b)]),_0x4d28eb[_0x41de00(0x168)]=_0x46fae6,_0xf8121d[_0x41de00(0x149)]['push'](_0x4d28eb);}if(_0x3682b2)return _0xf8121d[_0x41de00(0x162)]=_0x3682b2[0x1],_0x2a6937(_0x3682b2[0x0]['length']),_0xf8121d[_0x41de00(0x168)]=_0x46fae6,_0xf8121d;}}function _0xca2616(_0xf118e){const _0x49e14a=_0x4b7fd7,_0x57334a=_0xf118e[_0x49e14a(0x14c)],_0x5d26c0=!!_0xf118e[_0x49e14a(0x162)],_0x3d0a34=_0xf118e[_0x49e14a(0x149)][_0x49e14a(0x14b)],_0x2fd90d=new Array(_0x3d0a34);for(let _0x5c706c=0x0;_0x5c706c<_0x3d0a34;_0x5c706c++){const _0x41e557=_0xf118e['attrs'][_0x5c706c],_0x1a6096=_0x41e557[0x3]||_0x41e557[0x4]||_0x41e557[0x5]||'',_0x490f27=_0x57334a==='a'&&_0x41e557[0x1]==='href'?_0x3bf8fc['shouldDecodeNewlinesForHref']:_0x3bf8fc['shouldDecodeNewlines'];_0x2fd90d[_0x5c706c]={'name':_0x41e557[0x1],'value':decodeAttr(_0x1a6096,_0x490f27)};}!_0x5d26c0&&(_0x530c27[_0x49e14a(0x156)]({'tag':_0x57334a,'lowerCasedTag':_0x57334a[_0x49e14a(0x151)](),'attrs':_0x2fd90d,'start':_0xf118e[_0x49e14a(0x154)],'end':_0xf118e['end']}),_0x52946f=_0x57334a);}function _0x37efbe(_0x2a5221,_0x549b0f,_0x3f3fdb){const _0x299327=_0x4b7fd7;let _0x50ccc0,_0x58d58d;if(_0x549b0f==null)_0x549b0f=_0x46fae6;if(_0x3f3fdb==null)_0x3f3fdb=_0x46fae6;if(_0x2a5221){_0x58d58d=_0x2a5221[_0x299327(0x151)]();for(_0x50ccc0=_0x530c27[_0x299327(0x14b)]-0x1;_0x50ccc0>=0x0;_0x50ccc0--){if(_0x530c27[_0x50ccc0][_0x299327(0x152)]===_0x58d58d)break;}}else _0x50ccc0=0x0;console[_0x299327(0x153)](_0x299327(0x15c)+_0x50ccc0);if(_0x50ccc0>=0x0){for(let _0x59de9c=_0x530c27[_0x299327(0x14b)]-0x1;_0x59de9c>=_0x50ccc0;_0x59de9c--){(_0x59de9c>_0x50ccc0||!_0x2a5221)&&console[_0x299327(0x15e)](_0x299327(0x148)+_0x530c27[_0x59de9c]['tag']+_0x299327(0x15f));}_0x530c27[_0x299327(0x14b)]=_0x50ccc0,_0x52946f=_0x50ccc0&&_0x530c27[_0x50ccc0-0x1][_0x299327(0x159)];}}}function a1_0x10a8(){const _0x455beb=['288oiaHGY','13DZVrlS','1037182QdItwy','tag\x20<','attrs','8636BnVuHe','length','tagName','【文本内容】:','slice','875noxqiz','3ASnxyG','toLowerCase','lowerCasedTag','log','start','match','push','11082oHmckO','1932326ZVlLyG','tag','split','10993452JLNaHJ','ssss','indexOf','warn','>\x20has\x20no\x20matching\x20end\x20tag.','substring','【结束标签】:','unarySlash','10VoaATs','1673qatXqC','42248RlovFc','320881sHTbiF','test','end'];a1_0x10a8=function(){return _0x455beb;};return a1_0x10a8();}
function a1_0x72c9(){const _0x28f28b=['【文本内容】:','split','876231tUPGzO','>\x20has\x20no\x20matching\x20end\x20tag.','push','end','attrs','8brSaPa','replace','shouldDecodeNewlines','indexOf','【结束标签】:','ssss','tag','开始标签','substring','8598qvagKQ','1504896WAhHqa','match','197302veiGAY','3565772BAiOXB','1640pSEeUU','闭合标签','unarySlash','tag\x20<','13NTtLBl','start','28460VoCEab','log','toLowerCase','create','slice','test','length','href','8899ifcOIH','3509325YNPhjA'];a1_0x72c9=function(){return _0x28f28b;};return a1_0x72c9();}(function(_0x3b555e,_0x3720c5){const _0x1d1938=a1_0x386d,_0x33a2c0=_0x3b555e();while(!![]){try{const _0x40bc3a=parseInt(_0x1d1938(0xe0))/0x1*(parseInt(_0x1d1938(0xff))/0x2)+-parseInt(_0x1d1938(0xfc))/0x3*(-parseInt(_0x1d1938(0xdc))/0x4)+parseInt(_0x1d1938(0xeb))/0x5+parseInt(_0x1d1938(0xfd))/0x6+-parseInt(_0x1d1938(0x100))/0x7*(parseInt(_0x1d1938(0xf3))/0x8)+parseInt(_0x1d1938(0xee))/0x9+parseInt(_0x1d1938(0xe2))/0xa*(-parseInt(_0x1d1938(0xea))/0xb);if(_0x40bc3a===_0x3720c5)break;else _0x33a2c0['push'](_0x33a2c0['shift']());}catch(_0xe7a4e0){_0x33a2c0['push'](_0x33a2c0['shift']());}}}(a1_0x72c9,0xa9dc9));function makeMap(_0xb4986d,_0xfad523){const _0x144431=a1_0x386d,_0x291a9c=Object[_0x144431(0xe5)](null),_0x179a46=_0xb4986d[_0x144431(0xed)](',');for(let _0x3e5131=0x0;_0x3e5131<_0x179a46[_0x144431(0xe8)];_0x3e5131++){_0x291a9c[_0x179a46[_0x3e5131]]=!![];}return _0xfad523?_0x22200c=>_0x291a9c[_0x22200c[_0x144431(0xe4)]()]:_0x406801=>_0x291a9c[_0x406801];}function a1_0x386d(_0x5c711f,_0xf0a6da){const _0x72c9f=a1_0x72c9();return a1_0x386d=function(_0x386dab,_0x2a8919){_0x386dab=_0x386dab-0xdc;let _0x3640c6=_0x72c9f[_0x386dab];return _0x3640c6;},a1_0x386d(_0x5c711f,_0xf0a6da);}const doctype=/^<!DOCTYPE [^>]+>/i,endTag=/^<\/([a-zA-Z_][\-\.0-9_a-zA-Z]*)[^>]*>/,startTagOpen=/^<([a-zA-Z_][\-\.0-9_a-zA-Z]*)/,attribute=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,startTagClose=/^\s*(\/?)>/,isPlainTextElement=makeMap('script,style,textarea',!![]),isIgnoreNewlineTag=makeMap('pre,textarea',!![]),shouldIgnoreFirstNewline=(_0xf478ec,_0xd65fb9)=>_0xf478ec&&isIgnoreNewlineTag(_0xf478ec)&&_0xd65fb9[0x0]==='\x0a',decodingMap={'&lt;':'<','&gt;':'>','&quot;':'\x22','&amp;':'&','&#10;':'\x0a','&#9;':'\x09','&#39;':'\x27'},encodedAttr=/&(?:lt|gt|quot|amp|#39);/g,encodedAttrWithNewLines=/&(?:lt|gt|quot|amp|#39|#10|#9);/g;function decodeAttr(_0x22a2f2,_0x161afd){const _0x59ffac=a1_0x386d,_0x37fa67=_0x161afd?encodedAttrWithNewLines:encodedAttr;return _0x22a2f2[_0x59ffac(0xf4)](_0x37fa67,_0x4cc594=>decodingMap[_0x4cc594]);}parseHTML('<div><span\x20class=\x22title\x22>测试</span><my-component/></div>');function parseHTML(_0x20baa1,_0x2f0710={'shouldDecodeNewlines':!![],'shouldDecodeNewlinesForHref':!![]}){const _0x4e5d80=a1_0x386d,_0x2cb093=[];let _0x69928b=0x0,_0x5e409d,_0x552e5c;while(_0x20baa1){_0x5e409d=_0x20baa1,console[_0x4e5d80(0xe3)](_0x20baa1);if(!_0x552e5c||!isPlainTextElement(_0x552e5c)){let _0x3d9b01=_0x20baa1[_0x4e5d80(0xf6)]('<');if(_0x3d9b01===0x0){const _0x33869f=_0x20baa1[_0x4e5d80(0xfe)](doctype);if(_0x33869f){_0x13a5de(_0x33869f[0x0]['length']);continue;}const _0x1f98fb=_0x20baa1['match'](endTag);if(_0x1f98fb){console[_0x4e5d80(0xe3)](_0x4e5d80(0xf7)+_0x1f98fb[0x1]);const _0x14bfe8=_0x69928b;_0x13a5de(_0x1f98fb[0x0][_0x4e5d80(0xe8)]),_0x456baf(_0x1f98fb[0x1],_0x14bfe8,_0x69928b);continue;}const _0x80c799=_0x210a26();if(_0x80c799){console[_0x4e5d80(0xe3)]('【'+(_0x80c799['unarySlash']?_0x4e5d80(0xdd):_0x4e5d80(0xfa))+'】:'+_0x80c799['tagName']);continue;}}let _0x595e84,_0x162510,_0x4e4e1a;if(_0x3d9b01>=0x0){_0x162510=_0x20baa1[_0x4e5d80(0xe6)](_0x3d9b01);while(!endTag[_0x4e5d80(0xe7)](_0x162510)&&!startTagOpen[_0x4e5d80(0xe7)](_0x162510)){_0x4e4e1a=_0x162510[_0x4e5d80(0xf6)]('<',0x1);if(_0x4e4e1a<0x0)break;_0x3d9b01+=_0x4e4e1a,_0x162510=_0x20baa1['slice'](_0x3d9b01);}_0x595e84=_0x20baa1[_0x4e5d80(0xfb)](0x0,_0x3d9b01),console[_0x4e5d80(0xe3)](_0x4e5d80(0xec)+_0x595e84);}_0x3d9b01<0x0&&(_0x595e84=_0x20baa1),_0x595e84&&_0x13a5de(_0x595e84[_0x4e5d80(0xe8)]);}else{}if(_0x20baa1===_0x5e409d){}}function _0x13a5de(_0x515f24){const _0x402053=_0x4e5d80;_0x69928b+=_0x515f24,_0x20baa1=_0x20baa1[_0x402053(0xfb)](_0x515f24);}function _0x210a26(){const _0x152e2f=_0x4e5d80,_0x353852=_0x20baa1[_0x152e2f(0xfe)](startTagOpen);if(_0x353852){const _0x134ba8={'tagName':_0x353852[0x1],'attrs':[],'start':_0x69928b};_0x13a5de(_0x353852[0x0][_0x152e2f(0xe8)]);let _0x249597,_0x4d6610;while(!(_0x249597=_0x20baa1[_0x152e2f(0xfe)](startTagClose))&&(_0x4d6610=_0x20baa1[_0x152e2f(0xfe)](dynamicArgAttribute)||_0x20baa1[_0x152e2f(0xfe)](attribute))){_0x4d6610[_0x152e2f(0xe1)]=_0x69928b,_0x13a5de(_0x4d6610[0x0][_0x152e2f(0xe8)]),_0x4d6610[_0x152e2f(0xf1)]=_0x69928b,_0x134ba8[_0x152e2f(0xf2)][_0x152e2f(0xf0)](_0x4d6610);}if(_0x249597)return _0x134ba8[_0x152e2f(0xde)]=_0x249597[0x1],_0x13a5de(_0x249597[0x0][_0x152e2f(0xe8)]),_0x134ba8[_0x152e2f(0xf1)]=_0x69928b,_0x134ba8;}}function _0x1c35c2(_0x55944a){const _0x33069f=_0x4e5d80,_0xbbe813=_0x55944a['tagName'],_0xe0179f=!!_0x55944a[_0x33069f(0xde)],_0x5c6421=_0x55944a['attrs'][_0x33069f(0xe8)],_0x444c1c=new Array(_0x5c6421);for(let _0x59fd06=0x0;_0x59fd06<_0x5c6421;_0x59fd06++){const _0x4cbb95=_0x55944a[_0x33069f(0xf2)][_0x59fd06],_0x19d1af=_0x4cbb95[0x3]||_0x4cbb95[0x4]||_0x4cbb95[0x5]||'',_0x303a9f=_0xbbe813==='a'&&_0x4cbb95[0x1]===_0x33069f(0xe9)?_0x2f0710['shouldDecodeNewlinesForHref']:_0x2f0710[_0x33069f(0xf5)];_0x444c1c[_0x59fd06]={'name':_0x4cbb95[0x1],'value':decodeAttr(_0x19d1af,_0x303a9f)};}!_0xe0179f&&(_0x2cb093[_0x33069f(0xf0)]({'tag':_0xbbe813,'lowerCasedTag':_0xbbe813[_0x33069f(0xe4)](),'attrs':_0x444c1c,'start':_0x55944a[_0x33069f(0xe1)],'end':_0x55944a['end']}),_0x552e5c=_0xbbe813);}function _0x456baf(_0xfbd3b2,_0x17b7ee,_0x5b89f1){const _0x62177e=_0x4e5d80;let _0x4d2132,_0x93fa57;if(_0x17b7ee==null)_0x17b7ee=_0x69928b;if(_0x5b89f1==null)_0x5b89f1=_0x69928b;if(_0xfbd3b2){_0x93fa57=_0xfbd3b2[_0x62177e(0xe4)]();for(_0x4d2132=_0x2cb093[_0x62177e(0xe8)]-0x1;_0x4d2132>=0x0;_0x4d2132--){if(_0x2cb093[_0x4d2132]['lowerCasedTag']===_0x93fa57)break;}}else _0x4d2132=0x0;console[_0x62177e(0xe3)](_0x62177e(0xf8)+_0x4d2132);if(_0x4d2132>=0x0){for(let _0x182b73=_0x2cb093[_0x62177e(0xe8)]-0x1;_0x182b73>=_0x4d2132;_0x182b73--){(_0x182b73>_0x4d2132||!_0xfbd3b2)&&console['warn'](_0x62177e(0xdf)+_0x2cb093[_0x182b73][_0x62177e(0xf9)]+_0x62177e(0xef));}_0x2cb093['length']=_0x4d2132,_0x552e5c=_0x4d2132&&_0x2cb093[_0x4d2132-0x1][_0x62177e(0xf9)];}}}

@@ -1,1 +0,1 @@

function a2_0x5aa5(_0xaf2042,_0x21682f){const _0x266983=a2_0x2669();return a2_0x5aa5=function(_0x5aa540,_0x2bbcb3){_0x5aa540=_0x5aa540-0x1df;let _0x1374f7=_0x266983[_0x5aa540];return _0x1374f7;},a2_0x5aa5(_0xaf2042,_0x21682f);}(function(_0x219567,_0x5d23d0){const _0x59264d=a2_0x5aa5,_0x285c68=_0x219567();while(!![]){try{const _0x5ce9cc=-parseInt(_0x59264d(0x1ea))/0x1*(parseInt(_0x59264d(0x1f0))/0x2)+-parseInt(_0x59264d(0x1f4))/0x3+parseInt(_0x59264d(0x1ee))/0x4*(parseInt(_0x59264d(0x1e0))/0x5)+parseInt(_0x59264d(0x1ec))/0x6+parseInt(_0x59264d(0x1e5))/0x7*(parseInt(_0x59264d(0x1f7))/0x8)+-parseInt(_0x59264d(0x1e3))/0x9*(parseInt(_0x59264d(0x1eb))/0xa)+-parseInt(_0x59264d(0x1f3))/0xb*(-parseInt(_0x59264d(0x1e9))/0xc);if(_0x5ce9cc===_0x5d23d0)break;else _0x285c68['push'](_0x285c68['shift']());}catch(_0xc80bad){_0x285c68['push'](_0x285c68['shift']());}}}(a2_0x2669,0x35965));const endTag=/^<\/([a-zA-Z_][\-\.0-9_a-zA-Z]*)[^>]*>/,startTagOpen=/^<([a-zA-Z_][\-\.0-9_a-zA-Z]*)/,attribute=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,startTagClose=/^\s*(\/?)>/;exports['parseHTML']=function(_0xcbfd60,_0x5db151,_0x2444be){const _0x5eccda=a2_0x5aa5,_0x22345b=[];let _0x35c091=0x0,_0x1f81fb,_0x44cec0;while(_0xcbfd60){_0x1f81fb=_0xcbfd60;let _0x5d0080=_0xcbfd60[_0x5eccda(0x1e1)]('<');if(_0x5d0080===0x0){const _0x394d7d=_0xcbfd60[_0x5eccda(0x1e2)](endTag);if(_0x394d7d){const _0x443363=_0x35c091;_0x3928e6(_0x394d7d[0x0][_0x5eccda(0x1f1)]),_0x2e4ced(_0x394d7d[0x1],_0x443363,_0x35c091);continue;}const _0x3a2de3=_0x3f904();if(_0x3a2de3){_0x1a5a28(_0x3a2de3);continue;}}let _0x29fe01,_0x281dd9,_0x44ea38;if(_0x5d0080>=0x0){_0x281dd9=_0xcbfd60[_0x5eccda(0x1e8)](_0x5d0080);while(!endTag['test'](_0x281dd9)&&!startTagOpen['test'](_0x281dd9)){_0x44ea38=_0x281dd9[_0x5eccda(0x1e1)]('<',0x1);if(_0x44ea38<0x0)break;_0x5d0080+=_0x44ea38,_0x281dd9=_0xcbfd60[_0x5eccda(0x1e8)](_0x5d0080);}_0x29fe01=_0xcbfd60[_0x5eccda(0x1e7)](0x0,_0x5d0080);}_0x5d0080<0x0&&(_0x29fe01=_0xcbfd60);if(_0x29fe01){const _0x7a603b=_0x35c091;_0x3928e6(_0x29fe01[_0x5eccda(0x1f1)]),_0x5db151({'value':_0x29fe01,'start':_0x7a603b,'end':_0x35c091});}}function _0x3928e6(_0x369ce9){const _0x457741=_0x5eccda;_0x35c091+=_0x369ce9,_0xcbfd60=_0xcbfd60[_0x457741(0x1e7)](_0x369ce9);}function _0x3f904(){const _0x123f03=_0x5eccda,_0x5851fb=_0xcbfd60['match'](startTagOpen);if(_0x5851fb){const _0x13b06e={'tagName':_0x5851fb[0x1],'attrs':[],'start':_0x35c091};_0x3928e6(_0x5851fb[0x0][_0x123f03(0x1f1)]);let _0x404c6a,_0x2a6d69;while(!(_0x404c6a=_0xcbfd60['match'](startTagClose))&&(_0x2a6d69=_0xcbfd60[_0x123f03(0x1e2)](dynamicArgAttribute)||_0xcbfd60[_0x123f03(0x1e2)](attribute))){_0x2a6d69['start']=_0x35c091,_0x3928e6(_0x2a6d69[0x0][_0x123f03(0x1f1)]),_0x2a6d69[_0x123f03(0x1ed)]=_0x35c091,_0x13b06e[_0x123f03(0x1f5)][_0x123f03(0x1e4)](_0x2a6d69);}if(_0x404c6a)return _0x13b06e['unarySlash']=_0x404c6a[0x1],_0x3928e6(_0x404c6a[0x0][_0x123f03(0x1f1)]),_0x13b06e[_0x123f03(0x1ed)]=_0x35c091,_0x13b06e;}}function _0x1a5a28(_0x124910){const _0x5a0b87=_0x5eccda,_0x5e6d2c=_0x124910['tagName'],_0x25669c=!!_0x124910[_0x5a0b87(0x1e6)],_0x52606c=_0x124910[_0x5a0b87(0x1f5)]['length'],_0x325cb0=new Array(_0x52606c);for(let _0x259eba=0x0;_0x259eba<_0x52606c;_0x259eba++){const _0x280b8f=_0x124910[_0x5a0b87(0x1f5)][_0x259eba],_0x41b4c1=_0x280b8f[0x3]||_0x280b8f[0x4]||_0x280b8f[0x5]||'';_0x325cb0[_0x259eba]={'name':_0x280b8f[0x1],'value':_0x41b4c1,'target':_0x280b8f[0x0],'start':_0x280b8f[_0x5a0b87(0x1ef)],'end':_0x280b8f['end']};}!_0x25669c&&(_0x22345b[_0x5a0b87(0x1e4)]({'tag':_0x5e6d2c,'lowerCasedTag':_0x5e6d2c[_0x5a0b87(0x1df)](),'attrs':_0x325cb0,'start':_0x124910[_0x5a0b87(0x1ef)],'end':_0x124910[_0x5a0b87(0x1ed)]}),_0x2444be({'attrs':_0x325cb0,'start':_0x124910[_0x5a0b87(0x1ef)],'end':_0x124910[_0x5a0b87(0x1ed)]}),_0x44cec0=_0x5e6d2c);}_0x2e4ced();function _0x2e4ced(_0x4b6186,_0x29d54e,_0x3bb7f1){const _0x5803d6=_0x5eccda;let _0x715fc6,_0x593d98;if(_0x29d54e==null)_0x29d54e=_0x35c091;if(_0x3bb7f1==null)_0x3bb7f1=_0x35c091;if(_0x4b6186){_0x593d98=_0x4b6186[_0x5803d6(0x1df)]();for(_0x715fc6=_0x22345b[_0x5803d6(0x1f1)]-0x1;_0x715fc6>=0x0;_0x715fc6--){if(_0x22345b[_0x715fc6][_0x5803d6(0x1f6)]===_0x593d98)break;}}else _0x715fc6=0x0;if(_0x715fc6>=0x0){for(let _0x5a6a32=_0x22345b[_0x5803d6(0x1f1)]-0x1;_0x5a6a32>=_0x715fc6;_0x5a6a32--){if(_0x5a6a32>_0x715fc6||!_0x4b6186){}}_0x22345b[_0x5803d6(0x1f1)]=_0x715fc6,_0x44cec0=_0x715fc6&&_0x22345b[_0x715fc6-0x1][_0x5803d6(0x1f2)];}}};function a2_0x2669(){const _0x2f33ff=['10fJjnhY','357012RHrusw','end','735608AavUyb','start','2TUhxkl','length','tag','462TdIrBi','1093980MCZuqi','attrs','lowerCasedTag','16SaxFhQ','toLowerCase','10wxRixB','indexOf','match','3950847TgedxT','push','1202663fvsuLH','unarySlash','substring','slice','122676WcYsUg','177154DjDBFt'];a2_0x2669=function(){return _0x2f33ff;};return a2_0x2669();}
const a2_0x1cccdd=a2_0x5473;function a2_0x5473(_0x5317d3,_0x34831c){const _0x3187fe=a2_0x3187();return a2_0x5473=function(_0x5473a1,_0x2803c5){_0x5473a1=_0x5473a1-0xf8;let _0x465cd2=_0x3187fe[_0x5473a1];return _0x465cd2;},a2_0x5473(_0x5317d3,_0x34831c);}(function(_0x308f98,_0x5b2c72){const _0x270e17=a2_0x5473,_0x3663c0=_0x308f98();while(!![]){try{const _0x413cd6=parseInt(_0x270e17(0x106))/0x1*(-parseInt(_0x270e17(0x110))/0x2)+parseInt(_0x270e17(0xfa))/0x3*(parseInt(_0x270e17(0x10d))/0x4)+-parseInt(_0x270e17(0xfd))/0x5+-parseInt(_0x270e17(0x108))/0x6+-parseInt(_0x270e17(0x102))/0x7+-parseInt(_0x270e17(0x100))/0x8+parseInt(_0x270e17(0xff))/0x9;if(_0x413cd6===_0x5b2c72)break;else _0x3663c0['push'](_0x3663c0['shift']());}catch(_0xe1646e){_0x3663c0['push'](_0x3663c0['shift']());}}}(a2_0x3187,0xc58aa));const endTag=/^<\/([a-zA-Z_][\-\.0-9_a-zA-Z]*)[^>]*>/,startTagOpen=/^<([a-zA-Z_][\-\.0-9_a-zA-Z]*)/,attribute=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,startTagClose=/^\s*(\/?)>/;exports[a2_0x1cccdd(0xfc)]=function(_0x1bff52,_0x381ad1,_0x36d94e){const _0x3c9124=a2_0x1cccdd,_0x1a55fb=[];let _0x5567d2=0x0,_0x12feb1,_0x5d13f7;while(_0x1bff52){_0x12feb1=_0x1bff52;let _0x407f18=_0x1bff52[_0x3c9124(0x101)]('<');if(_0x407f18===0x0){const _0x17e0d5=_0x1bff52[_0x3c9124(0x10f)](endTag);if(_0x17e0d5){const _0x126a9b=_0x5567d2;_0x5a983e(_0x17e0d5[0x0]['length']),_0x5cca79(_0x17e0d5[0x1],_0x126a9b,_0x5567d2);continue;}const _0x29e106=_0x164f2d();if(_0x29e106){_0x1757ad(_0x29e106);continue;}}let _0x4407b7,_0xf8b42a,_0x2214e2;if(_0x407f18>=0x0){_0xf8b42a=_0x1bff52[_0x3c9124(0x10a)](_0x407f18);while(!endTag[_0x3c9124(0xf9)](_0xf8b42a)&&!startTagOpen['test'](_0xf8b42a)){_0x2214e2=_0xf8b42a['indexOf']('<',0x1);if(_0x2214e2<0x0)break;_0x407f18+=_0x2214e2,_0xf8b42a=_0x1bff52[_0x3c9124(0x10a)](_0x407f18);}_0x4407b7=_0x1bff52[_0x3c9124(0x105)](0x0,_0x407f18);}_0x407f18<0x0&&(_0x4407b7=_0x1bff52);if(_0x4407b7){const _0x130154=_0x5567d2;_0x5a983e(_0x4407b7[_0x3c9124(0x107)]),_0x381ad1({'value':_0x4407b7,'start':_0x130154,'end':_0x5567d2});}}function _0x5a983e(_0x27298b){_0x5567d2+=_0x27298b,_0x1bff52=_0x1bff52['substring'](_0x27298b);}function _0x164f2d(){const _0x180afc=_0x3c9124,_0xe0f98d=_0x1bff52[_0x180afc(0x10f)](startTagOpen);if(_0xe0f98d){const _0x268ba8={'tagName':_0xe0f98d[0x1],'attrs':[],'start':_0x5567d2};_0x5a983e(_0xe0f98d[0x0][_0x180afc(0x107)]);let _0x5c44d7,_0x258bfc;while(!(_0x5c44d7=_0x1bff52['match'](startTagClose))&&(_0x258bfc=_0x1bff52[_0x180afc(0x10f)](dynamicArgAttribute)||_0x1bff52['match'](attribute))){_0x258bfc[_0x180afc(0x109)]=_0x5567d2,_0x5a983e(_0x258bfc[0x0][_0x180afc(0x107)]),_0x258bfc['end']=_0x5567d2,_0x268ba8[_0x180afc(0x10e)][_0x180afc(0x10b)](_0x258bfc);}if(_0x5c44d7)return _0x268ba8[_0x180afc(0xf8)]=_0x5c44d7[0x1],_0x5a983e(_0x5c44d7[0x0][_0x180afc(0x107)]),_0x268ba8[_0x180afc(0x103)]=_0x5567d2,_0x268ba8;}}function _0x1757ad(_0x7a86da){const _0x562155=_0x3c9124,_0x337d18=_0x7a86da[_0x562155(0xfe)],_0x94b920=!!_0x7a86da[_0x562155(0xf8)],_0x1a1c9f=_0x7a86da[_0x562155(0x10e)][_0x562155(0x107)],_0x182d8d=new Array(_0x1a1c9f);for(let _0x1230c0=0x0;_0x1230c0<_0x1a1c9f;_0x1230c0++){const _0x1472d7=_0x7a86da[_0x562155(0x10e)][_0x1230c0],_0x280358=_0x1472d7[0x3]||_0x1472d7[0x4]||_0x1472d7[0x5]||'';_0x182d8d[_0x1230c0]={'name':_0x1472d7[0x1],'value':_0x280358,'target':_0x1472d7[0x0],'start':_0x1472d7['start'],'end':_0x1472d7[_0x562155(0x103)]};}!_0x94b920&&(_0x1a55fb[_0x562155(0x10b)]({'tag':_0x337d18,'lowerCasedTag':_0x337d18[_0x562155(0x10c)](),'attrs':_0x182d8d,'start':_0x7a86da[_0x562155(0x109)],'end':_0x7a86da[_0x562155(0x103)]}),_0x36d94e({'attrs':_0x182d8d,'start':_0x7a86da['start'],'end':_0x7a86da['end']}),_0x5d13f7=_0x337d18);}_0x5cca79();function _0x5cca79(_0x2d95a7,_0xbc7474,_0x45888a){const _0x2ebcf2=_0x3c9124;let _0x2b0eb3,_0x30b085;if(_0xbc7474==null)_0xbc7474=_0x5567d2;if(_0x45888a==null)_0x45888a=_0x5567d2;if(_0x2d95a7){_0x30b085=_0x2d95a7['toLowerCase']();for(_0x2b0eb3=_0x1a55fb[_0x2ebcf2(0x107)]-0x1;_0x2b0eb3>=0x0;_0x2b0eb3--){if(_0x1a55fb[_0x2b0eb3][_0x2ebcf2(0xfb)]===_0x30b085)break;}}else _0x2b0eb3=0x0;if(_0x2b0eb3>=0x0){for(let _0x1c0502=_0x1a55fb[_0x2ebcf2(0x107)]-0x1;_0x1c0502>=_0x2b0eb3;_0x1c0502--){if(_0x1c0502>_0x2b0eb3||!_0x2d95a7){}}_0x1a55fb[_0x2ebcf2(0x107)]=_0x2b0eb3,_0x5d13f7=_0x2b0eb3&&_0x1a55fb[_0x2b0eb3-0x1][_0x2ebcf2(0x104)];}}};function a2_0x3187(){const _0x22dea5=['7854637wnLYRY','end','tag','substring','1qqonJd','length','2949996OpOuMR','start','slice','push','toLowerCase','32796XouIqa','attrs','match','2154254lZsqis','unarySlash','test','435yXsVcv','lowerCasedTag','parseHTML','7936395BtZyLU','tagName','47189322BnylLh','10758560eOnGEY','indexOf'];a2_0x3187=function(){return _0x22dea5;};return a2_0x3187();}

@@ -1,1 +0,1 @@

const a3_0x1e3bcb=a3_0x129d;(function(_0x43f040,_0x55b17b){const _0x38cc10=a3_0x129d,_0x5eefe0=_0x43f040();while(!![]){try{const _0x990d8b=parseInt(_0x38cc10(0x13f))/0x1*(-parseInt(_0x38cc10(0x13e))/0x2)+-parseInt(_0x38cc10(0x126))/0x3+-parseInt(_0x38cc10(0x131))/0x4*(-parseInt(_0x38cc10(0x14a))/0x5)+parseInt(_0x38cc10(0x14b))/0x6*(-parseInt(_0x38cc10(0x13d))/0x7)+-parseInt(_0x38cc10(0x157))/0x8+parseInt(_0x38cc10(0x128))/0x9+parseInt(_0x38cc10(0x153))/0xa;if(_0x990d8b===_0x55b17b)break;else _0x5eefe0['push'](_0x5eefe0['shift']());}catch(_0x46c0b7){_0x5eefe0['push'](_0x5eefe0['shift']());}}}(a3_0x53e3,0x7c49c));const axios=require(a3_0x1e3bcb(0x150)),CryptoJS=require('crypto-js');function md5Hash32(_0x525405){const _0x2a4bd8=a3_0x1e3bcb;return CryptoJS['MD5'](_0x525405)['toString'](CryptoJS['enc'][_0x2a4bd8(0x156)])[_0x2a4bd8(0x13c)]();}function sha256Hash32(_0x20431b){const _0x47f068=a3_0x1e3bcb;return CryptoJS[_0x47f068(0x161)](_0x20431b)[_0x47f068(0x155)](CryptoJS[_0x47f068(0x15c)]['Hex'])[_0x47f068(0x13c)]();}function promisify(_0x3d2c1a,..._0x5b687d){return new Promise((_0x4a6912,_0x36b035)=>{_0x3d2c1a(..._0x5b687d,(_0x2dcade,_0x2a5a3d)=>{_0x4a6912({'value':_0x2dcade,'error':_0x2a5a3d});});});}function delay(_0x142f7b){return new Promise(_0x45211d=>setTimeout(_0x45211d,_0x142f7b));}async function baiduTranslateObj(_0x13fa97,_0x3353a8,_0x32a725,_0x508c7a){const _0x4eaa78=a3_0x1e3bcb;var _0x1469c2=Object[_0x4eaa78(0x130)](_0x13fa97),_0x1adb90={},_0x4c5bed={};console[_0x4eaa78(0x133)](new Array(0x50)[_0x4eaa78(0x15d)]('-')),console[_0x4eaa78(0x133)](_0x4eaa78(0x139)+_0x3353a8+_0x4eaa78(0x154)),console['log'](_0x4eaa78(0x15e));for(var _0x63da12=0x0;_0x63da12<_0x1469c2['length'];_0x63da12++){const _0xa2a6c8=_0x1469c2[_0x63da12],_0x1c6d35=(''+_0x13fa97[_0xa2a6c8])[_0x4eaa78(0x14f)]('\x0a');if(!_0x1c6d35&&_0x13fa97[_0xa2a6c8][_0x4eaa78(0x136)]<0x64&&Object[_0x4eaa78(0x130)](_0x4c5bed)[_0x4eaa78(0x136)]<0x14&&_0x63da12<_0x1469c2[_0x4eaa78(0x136)]-0x1){_0x4c5bed[_0xa2a6c8]=_0x13fa97[_0xa2a6c8];continue;}if(Object[_0x4eaa78(0x130)](_0x4c5bed)['length']>0x0){const {value:_0xf84910,error:_0xda04b9}=await promisify(baiduTranslate,Object[_0x4eaa78(0x125)](_0x4c5bed)['join']('\x0a'),_0x3353a8,_0x32a725);await delay(0x3e8);if(!_0xf84910||_0xf84910[_0x4eaa78(0x136)]!=Object[_0x4eaa78(0x125)](_0x4c5bed)[_0x4eaa78(0x136)]){_0x1adb90=Object[_0x4eaa78(0x132)](_0x13fa97,_0x1adb90),console[_0x4eaa78(0x133)](_0x4eaa78(0x143)+(_0xda04b9||''));break;}Object[_0x4eaa78(0x130)](_0x4c5bed)[_0x4eaa78(0x127)]((_0x1455aa,_0x3cfdce)=>{_0x1adb90[_0x1455aa]=_0xf84910[_0x3cfdce];}),_0x4c5bed={};}const {value:_0x1728dd,error:_0x56695f}=await promisify(baiduTranslate,_0x13fa97[_0xa2a6c8],_0x3353a8,_0x32a725),_0x3a5f11=((_0x63da12+0x1)/_0x1469c2[_0x4eaa78(0x136)]*0x64)['toFixed'](0x2);console[_0x4eaa78(0x133)](_0x4eaa78(0x15b)+_0x3a5f11+_0x4eaa78(0x149)+(_0x1728dd?_0x4eaa78(0x147):_0x4eaa78(0x141))),await delay(0x3e8);if(!_0x1728dd){_0x1adb90=Object[_0x4eaa78(0x132)](_0x13fa97,_0x1adb90),console['log'](_0x4eaa78(0x143)+(_0x56695f||''));break;}_0x1adb90[_0xa2a6c8]=_0x1728dd[0x0];}console[_0x4eaa78(0x133)](_0x4eaa78(0x139)+_0x3353a8+_0x4eaa78(0x137)),console[_0x4eaa78(0x133)](new Array(0x50)[_0x4eaa78(0x15d)]('-')),_0x508c7a&&_0x508c7a(_0x1adb90);}function baiduTranslate(_0x52ade8,_0x2c7602,_0x119b1f,_0x5f4162){const _0x3cc982=a3_0x1e3bcb;_0x2c7602=_0x2c7602[_0x3cc982(0x13c)]();if(_0x2c7602=='zh')return _0x52ade8;if(_0x2c7602==_0x3cc982(0x158))_0x2c7602='cht';if(_0x2c7602=='fr')_0x2c7602=_0x3cc982(0x159);if(_0x2c7602=='ko')_0x2c7602=_0x3cc982(0x15f);if(_0x2c7602=='ja')_0x2c7602='jp';const _0x33bbef=new Date()[_0x3cc982(0x145)](),_0x1b5dd6=md5Hash32(_0x119b1f['appKey']+_0x52ade8+_0x33bbef+_0x119b1f[_0x3cc982(0x15a)]),_0x305afd={'q':_0x52ade8,'appid':_0x119b1f[_0x3cc982(0x12f)],'salt':_0x33bbef,'from':'zh','to':_0x2c7602,'sign':_0x1b5dd6};var _0x4f0ede=new URLSearchParams(Object[_0x3cc982(0x14c)](_0x305afd))[_0x3cc982(0x155)]();axios[_0x3cc982(0x129)](_0x3cc982(0x12d)+_0x4f0ede)['then'](_0x3be5a7=>{const _0xb6699a=_0x3cc982;if(_0x3be5a7[_0xb6699a(0x144)][_0xb6699a(0x134)]&&_0x3be5a7[_0xb6699a(0x144)][_0xb6699a(0x134)][_0xb6699a(0x136)]>0x0){const _0x42610b=_0x3be5a7[_0xb6699a(0x144)][_0xb6699a(0x134)][_0xb6699a(0x138)](_0x31c411=>_0x31c411[_0xb6699a(0x13b)]);_0x5f4162&&_0x5f4162(_0x42610b);return;}_0x5f4162&&_0x5f4162('',_0x3be5a7[_0xb6699a(0x144)][_0xb6699a(0x160)]);})[_0x3cc982(0x142)](function(_0x3a6eeb){_0x5f4162&&_0x5f4162('',_0x3a6eeb);});}async function youDaoTranslateObj(_0x5620d4,_0x42fd45,_0x4ba8b8,_0x509531){const _0x1f278b=a3_0x1e3bcb;var _0x1c7862=Object[_0x1f278b(0x130)](_0x5620d4),_0x388946={},_0x97b7d5={};console[_0x1f278b(0x133)](new Array(0x50)[_0x1f278b(0x15d)]('-')),console[_0x1f278b(0x133)]('-\x20翻译:------\x20'+_0x42fd45+_0x1f278b(0x12c)),console[_0x1f278b(0x133)](_0x1f278b(0x15e));for(var _0x1bdbfc=0x0;_0x1bdbfc<_0x1c7862[_0x1f278b(0x136)];_0x1bdbfc++){const _0x1bb68e=_0x1c7862[_0x1bdbfc],_0x4db937=(''+_0x5620d4[_0x1bb68e])[_0x1f278b(0x14f)]('\x0a');if(!_0x4db937&&_0x5620d4[_0x1bb68e]['length']<0x64&&Object[_0x1f278b(0x130)](_0x97b7d5)[_0x1f278b(0x136)]<0x14&&_0x1bdbfc<_0x1c7862[_0x1f278b(0x136)]-0x1){_0x97b7d5[_0x1bb68e]=_0x5620d4[_0x1bb68e];continue;}if(Object[_0x1f278b(0x130)](_0x97b7d5)[_0x1f278b(0x136)]>0x0){const {value:_0x200830,error:_0x548029}=await promisify(youDaoTranslate,Object[_0x1f278b(0x125)](_0x97b7d5)[_0x1f278b(0x15d)]('\x0a'),_0x42fd45,_0x4ba8b8);await delay(0x3e8);if(!_0x200830||_0x200830[_0x1f278b(0x136)]!=Object[_0x1f278b(0x125)](_0x97b7d5)[_0x1f278b(0x136)]){_0x388946=Object['assign'](_0x5620d4,_0x388946),console[_0x1f278b(0x133)](_0x1f278b(0x143)+(_0x548029||''));break;}Object['keys'](_0x97b7d5)[_0x1f278b(0x127)]((_0x2bb8b8,_0x1740de)=>{_0x388946[_0x2bb8b8]=_0x200830[_0x1740de];}),_0x97b7d5={};}const {value:_0x2b8149,error:_0x2a3a1a}=await promisify(youDaoTranslate,_0x5620d4[_0x1bb68e],_0x42fd45,_0x4ba8b8),_0xec3ad4=Number[_0x1f278b(0x14d)]((_0x1bdbfc+0x1)/_0x1c7862[_0x1f278b(0x136)]*0x64);console[_0x1f278b(0x133)]('-\x20翻译:------\x20\x20进度:'+_0xec3ad4+_0x1f278b(0x149)+(_0x2b8149?_0x1f278b(0x147):_0x1f278b(0x141))),await delay(0x3e8);if(!_0x2b8149){_0x388946=Object[_0x1f278b(0x132)](_0x5620d4,_0x388946),console[_0x1f278b(0x133)](_0x1f278b(0x143)+(_0x2a3a1a||''));break;}_0x388946[_0x1bb68e]=_0x2b8149[0x0];}console[_0x1f278b(0x133)]('-\x20翻译:------\x20'+_0x42fd45+_0x1f278b(0x13a)),console[_0x1f278b(0x133)](new Array(0x50)['join']('-')),_0x509531&&_0x509531(_0x388946);}function a3_0x129d(_0x24f038,_0x3009f6){const _0x53e3f4=a3_0x53e3();return a3_0x129d=function(_0x129d0b,_0x5d9fe9){_0x129d0b=_0x129d0b-0x125;let _0x437e76=_0x53e3f4[_0x129d0b];return _0x437e76;},a3_0x129d(_0x24f038,_0x3009f6);}function youDaoTranslate(_0x1cd150,_0x120419,_0x563569,_0x11db6d){const _0x3147c4=a3_0x1e3bcb;_0x120419=_0x120419[_0x3147c4(0x13c)]();if(_0x120419=='zh')return _0x1cd150;if(_0x120419=='zh-tw')_0x120419='zh-CHT';var _0x263e42=new Date()[_0x3147c4(0x145)](),_0x5edbc2=Math[_0x3147c4(0x14e)](new Date()['getTime']()/0x3e8);function _0x5478fa(_0x2b885b){const _0x231886=_0x3147c4;var _0x5c306a=_0x2b885b[_0x231886(0x136)];if(_0x5c306a<=0x14)return _0x2b885b;return _0x2b885b[_0x231886(0x12a)](0x0,0xa)+_0x5c306a+_0x2b885b[_0x231886(0x12a)](_0x5c306a-0xa,_0x5c306a);}var _0x45ec9b=sha256Hash32(_0x563569['appKey']+_0x5478fa(_0x1cd150)+_0x263e42+_0x5edbc2+_0x563569[_0x3147c4(0x15a)]),_0x39aaa2={'q':_0x1cd150,'appKey':_0x563569[_0x3147c4(0x12f)],'salt':_0x263e42,'from':'zh','to':_0x120419,'sign':_0x45ec9b,'signType':'v3','curtime':_0x5edbc2},_0x3c75c9=new URLSearchParams(Object['entries'](_0x39aaa2))[_0x3147c4(0x155)]();axios[_0x3147c4(0x129)]('https://openapi.youdao.com/api?'+_0x3c75c9)[_0x3147c4(0x135)](_0x463b0d=>{const _0x2b45f0=_0x3147c4;if(_0x463b0d[_0x2b45f0(0x144)][_0x2b45f0(0x152)]=='0'&&_0x463b0d[_0x2b45f0(0x144)][_0x2b45f0(0x162)]&&_0x463b0d[_0x2b45f0(0x144)][_0x2b45f0(0x162)][0x0]){const _0x536901=_0x463b0d[_0x2b45f0(0x144)][_0x2b45f0(0x162)][0x0][_0x2b45f0(0x151)]('\x0a');_0x11db6d&&_0x11db6d(_0x536901);return;}_0x11db6d&&_0x11db6d('',_0x463b0d[_0x2b45f0(0x144)][_0x2b45f0(0x152)]);})[_0x3147c4(0x142)](function(_0xf4b236){_0x11db6d&&_0x11db6d('',_0xf4b236);});}exports[a3_0x1e3bcb(0x140)]=async function(_0x13707b,_0x2f4592,_0x1035cc,_0x38d03b){const _0x15f7be=a3_0x1e3bcb;if(!_0x1035cc[_0x15f7be(0x12e)]||!_0x1035cc[_0x15f7be(0x12f)]||!_0x1035cc[_0x15f7be(0x15a)]){_0x38d03b&&_0x38d03b(_0x13707b);return;}if(typeof _0x13707b!=_0x15f7be(0x146)||_0x13707b==null||!_0x13707b){_0x38d03b&&_0x38d03b(_0x13707b);return;}if(Object[_0x15f7be(0x130)](_0x13707b)[_0x15f7be(0x136)]==0x0){_0x38d03b&&_0x38d03b(_0x13707b);return;}if(_0x1035cc[_0x15f7be(0x12e)]==_0x15f7be(0x12b))await youDaoTranslateObj(_0x13707b,_0x2f4592,_0x1035cc,_0x38d03b);else _0x1035cc[_0x15f7be(0x12e)]==_0x15f7be(0x148)?await baiduTranslateObj(_0x13707b,_0x2f4592,_0x1035cc,_0x38d03b):_0x38d03b&&_0x38d03b(_0x13707b);};function a3_0x53e3(){const _0xad1cd2=['assign','log','trans_result','then','length','\x20-\x20百度翻译请求完成','map','-\x20翻译:------\x20','\x20-\x20有道翻译请求完成','dst','toLowerCase','1118285KAavMp','22924rREhye','61DxbvqU','translater','fail','catch','-\x20翻译:------\x20\x20进度:异常终止,终止原因:','data','getTime','object','success\x20','baidu','%\x20\x20','2338560qRIZHo','6sfmgwD','entries','parseInt','round','includes','axios','split','errorCode','10318640rWEQWg','\x20-\x20百度翻译请求发起','toString','Hex','2890024Vawnjr','zh-tw','fra','secretKey','-\x20翻译:------\x20\x20进度:','enc','join','-\x20翻译:------\x20\x20进度:0.00%\x20\x20success','kor','error_code','SHA256','translation','values','1424469FYMHMT','forEach','6340689dwaEsk','get','substring','youdao','\x20-\x20有道翻译请求发起','https://fanyi-api.baidu.com/api/trans/vip/translate?','channel','appKey','keys','4Iqajss'];a3_0x53e3=function(){return _0xad1cd2;};return a3_0x53e3();}
const a3_0x330b3f=a3_0x3fca;function a3_0x430c(){const _0x5c62a6=['1QOwekE','5492367mmmpXn','8173UoJQiw','then','7500ObEuZS','toString','errorCode','appKey','data','\x20-\x20有道翻译请求发起','https://openapi.youdao.com/api?','toFixed','3444328CgtsvW','translation','youdao','zh-CHT','translater','50604RdWxjp','fra','MD5','map','\x20-\x20有道翻译请求完成','SHA256','10yKZIGL','https://fanyi-api.baidu.com/api/trans/vip/translate?','includes','-\x20翻译:------\x20\x20进度:异常终止,终止原因:','enc','assign','catch','-\x20翻译:------\x20\x20进度:0.00%\x20\x20success','\x20-\x20百度翻译请求完成','\x20-\x20百度翻译请求发起','dst','-\x20翻译:------\x20','2373796dpbKnH','entries','length','21WGhvuB','axios','18055362KIIifj','%\x20\x20','parseInt','510jFXxRq','secretKey','round','cht','trans_result','keys','getTime','185680IZHaTF','log','success\x20','kor','baidu','69Jhpudg','fail','-\x20翻译:------\x20\x20进度:','values','channel','forEach','substring','join','toLowerCase'];a3_0x430c=function(){return _0x5c62a6;};return a3_0x430c();}(function(_0xa09b66,_0x2b2aa0){const _0x1d3385=a3_0x3fca,_0x4b51d7=_0xa09b66();while(!![]){try{const _0x24898c=parseInt(_0x1d3385(0x1cb))/0x1*(-parseInt(_0x1d3385(0x1ae))/0x2)+parseInt(_0x1d3385(0x1c2))/0x3*(parseInt(_0x1d3385(0x1bd))/0x4)+parseInt(_0x1d3385(0x1b6))/0x5*(parseInt(_0x1d3385(0x1dc))/0x6)+-parseInt(_0x1d3385(0x1b1))/0x7*(-parseInt(_0x1d3385(0x1d7))/0x8)+parseInt(_0x1d3385(0x1cc))/0x9*(parseInt(_0x1d3385(0x1e2))/0xa)+parseInt(_0x1d3385(0x1cd))/0xb*(-parseInt(_0x1d3385(0x1cf))/0xc)+-parseInt(_0x1d3385(0x1b3))/0xd;if(_0x24898c===_0x2b2aa0)break;else _0x4b51d7['push'](_0x4b51d7['shift']());}catch(_0x4805af){_0x4b51d7['push'](_0x4b51d7['shift']());}}}(a3_0x430c,0xc0ca3));const axios=require(a3_0x330b3f(0x1b2)),CryptoJS=require('crypto-js');function a3_0x3fca(_0x103271,_0x419826){const _0x430cf2=a3_0x430c();return a3_0x3fca=function(_0x3fcaad,_0x2ecaa3){_0x3fcaad=_0x3fcaad-0x1a9;let _0x54a74e=_0x430cf2[_0x3fcaad];return _0x54a74e;},a3_0x3fca(_0x103271,_0x419826);}function md5Hash32(_0x348cd6){const _0x6a773b=a3_0x330b3f;return CryptoJS[_0x6a773b(0x1de)](_0x348cd6)[_0x6a773b(0x1d0)](CryptoJS[_0x6a773b(0x1e6)]['Hex'])[_0x6a773b(0x1ca)]();}function sha256Hash32(_0x32eb0a){const _0x1a5316=a3_0x330b3f;return CryptoJS[_0x1a5316(0x1e1)](_0x32eb0a)['toString'](CryptoJS[_0x1a5316(0x1e6)]['Hex'])[_0x1a5316(0x1ca)]();}function promisify(_0x2415e3,..._0x3ba7e9){return new Promise((_0x2fd7f3,_0xf9e99)=>{_0x2415e3(..._0x3ba7e9,(_0x1994d4,_0x2f3cba)=>{_0x2fd7f3({'value':_0x1994d4,'error':_0x2f3cba});});});}function delay(_0x51c1c0){return new Promise(_0x4f9696=>setTimeout(_0x4f9696,_0x51c1c0));}async function baiduTranslateObj(_0xab9145,_0x1130a2,_0x50d98e,_0x149163){const _0x3ba3c6=a3_0x330b3f;var _0x2bb682=Object[_0x3ba3c6(0x1bb)](_0xab9145),_0x4c3cd3={},_0x571590={};console[_0x3ba3c6(0x1be)](new Array(0x50)[_0x3ba3c6(0x1c9)]('-')),console[_0x3ba3c6(0x1be)](_0x3ba3c6(0x1ad)+_0x1130a2+_0x3ba3c6(0x1ab)),console[_0x3ba3c6(0x1be)](_0x3ba3c6(0x1a9));for(var _0x3f51b8=0x0;_0x3f51b8<_0x2bb682[_0x3ba3c6(0x1b0)];_0x3f51b8++){const _0x4c648e=_0x2bb682[_0x3f51b8],_0x417c5d=(''+_0xab9145[_0x4c648e])[_0x3ba3c6(0x1e4)]('\x0a');if(!_0x417c5d&&_0xab9145[_0x4c648e][_0x3ba3c6(0x1b0)]<0x64&&Object[_0x3ba3c6(0x1bb)](_0x571590)[_0x3ba3c6(0x1b0)]<0x14&&_0x3f51b8<_0x2bb682['length']-0x1){_0x571590[_0x4c648e]=_0xab9145[_0x4c648e];continue;}if(Object[_0x3ba3c6(0x1bb)](_0x571590)[_0x3ba3c6(0x1b0)]>0x0){const {value:_0x1ce229,error:_0x5ca603}=await promisify(baiduTranslate,Object['values'](_0x571590)[_0x3ba3c6(0x1c9)]('\x0a'),_0x1130a2,_0x50d98e);await delay(0x3e8);if(!_0x1ce229||_0x1ce229['length']!=Object[_0x3ba3c6(0x1c5)](_0x571590)[_0x3ba3c6(0x1b0)]){_0x4c3cd3=Object[_0x3ba3c6(0x1e7)](_0xab9145,_0x4c3cd3),console[_0x3ba3c6(0x1be)](_0x3ba3c6(0x1e5)+(_0x5ca603||''));break;}Object[_0x3ba3c6(0x1bb)](_0x571590)['forEach']((_0x24d021,_0x948219)=>{_0x4c3cd3[_0x24d021]=_0x1ce229[_0x948219];}),_0x571590={};}const {value:_0x2898e2,error:_0x5e952a}=await promisify(baiduTranslate,_0xab9145[_0x4c648e],_0x1130a2,_0x50d98e),_0x36efdb=((_0x3f51b8+0x1)/_0x2bb682[_0x3ba3c6(0x1b0)]*0x64)[_0x3ba3c6(0x1d6)](0x2);console['log'](_0x3ba3c6(0x1c4)+_0x36efdb+_0x3ba3c6(0x1b4)+(_0x2898e2?_0x3ba3c6(0x1bf):_0x3ba3c6(0x1c3))),await delay(0x3e8);if(!_0x2898e2){_0x4c3cd3=Object[_0x3ba3c6(0x1e7)](_0xab9145,_0x4c3cd3),console['log'](_0x3ba3c6(0x1e5)+(_0x5e952a||''));break;}_0x4c3cd3[_0x4c648e]=_0x2898e2[0x0];}console[_0x3ba3c6(0x1be)]('-\x20翻译:------\x20'+_0x1130a2+_0x3ba3c6(0x1aa)),console[_0x3ba3c6(0x1be)](new Array(0x50)[_0x3ba3c6(0x1c9)]('-')),_0x149163&&_0x149163(_0x4c3cd3);}function baiduTranslate(_0x1cd5d7,_0x2b7291,_0x5a8900,_0x1ded98){const _0x5b0f7d=a3_0x330b3f;_0x2b7291=_0x2b7291[_0x5b0f7d(0x1ca)]();if(_0x2b7291=='zh')return _0x1cd5d7;if(_0x2b7291=='zh-tw')_0x2b7291=_0x5b0f7d(0x1b9);if(_0x2b7291=='fr')_0x2b7291=_0x5b0f7d(0x1dd);if(_0x2b7291=='ko')_0x2b7291=_0x5b0f7d(0x1c0);if(_0x2b7291=='ja')_0x2b7291='jp';const _0x26cec6=new Date()[_0x5b0f7d(0x1bc)](),_0x4b5bcc=md5Hash32(_0x5a8900[_0x5b0f7d(0x1d2)]+_0x1cd5d7+_0x26cec6+_0x5a8900['secretKey']),_0x496bd5={'q':_0x1cd5d7,'appid':_0x5a8900[_0x5b0f7d(0x1d2)],'salt':_0x26cec6,'from':'zh','to':_0x2b7291,'sign':_0x4b5bcc};var _0x4dd98e=new URLSearchParams(Object[_0x5b0f7d(0x1af)](_0x496bd5))[_0x5b0f7d(0x1d0)]();axios['get'](_0x5b0f7d(0x1e3)+_0x4dd98e)[_0x5b0f7d(0x1ce)](_0x5b41c8=>{const _0x525af7=_0x5b0f7d;if(_0x5b41c8[_0x525af7(0x1d3)][_0x525af7(0x1ba)]&&_0x5b41c8[_0x525af7(0x1d3)]['trans_result'][_0x525af7(0x1b0)]>0x0){const _0x98760f=_0x5b41c8[_0x525af7(0x1d3)][_0x525af7(0x1ba)][_0x525af7(0x1df)](_0x3538f1=>_0x3538f1[_0x525af7(0x1ac)]);_0x1ded98&&_0x1ded98(_0x98760f);return;}_0x1ded98&&_0x1ded98('',_0x5b41c8[_0x525af7(0x1d3)]['error_code']);})['catch'](function(_0x52cd58){_0x1ded98&&_0x1ded98('',_0x52cd58);});}async function youDaoTranslateObj(_0xc7d72d,_0x287ce5,_0x2ac12a,_0x5174a2){const _0x7a1d82=a3_0x330b3f;var _0x2d5d29=Object[_0x7a1d82(0x1bb)](_0xc7d72d),_0x35030b={},_0xa4e5a2={};console[_0x7a1d82(0x1be)](new Array(0x50)['join']('-')),console[_0x7a1d82(0x1be)](_0x7a1d82(0x1ad)+_0x287ce5+_0x7a1d82(0x1d4)),console['log'](_0x7a1d82(0x1a9));for(var _0x21406d=0x0;_0x21406d<_0x2d5d29['length'];_0x21406d++){const _0x56568f=_0x2d5d29[_0x21406d],_0x11bd11=(''+_0xc7d72d[_0x56568f])[_0x7a1d82(0x1e4)]('\x0a');if(!_0x11bd11&&_0xc7d72d[_0x56568f][_0x7a1d82(0x1b0)]<0x64&&Object[_0x7a1d82(0x1bb)](_0xa4e5a2)[_0x7a1d82(0x1b0)]<0x14&&_0x21406d<_0x2d5d29[_0x7a1d82(0x1b0)]-0x1){_0xa4e5a2[_0x56568f]=_0xc7d72d[_0x56568f];continue;}if(Object['keys'](_0xa4e5a2)[_0x7a1d82(0x1b0)]>0x0){const {value:_0x3a4d2e,error:_0x42e942}=await promisify(youDaoTranslate,Object[_0x7a1d82(0x1c5)](_0xa4e5a2)['join']('\x0a'),_0x287ce5,_0x2ac12a);await delay(0x3e8);if(!_0x3a4d2e||_0x3a4d2e[_0x7a1d82(0x1b0)]!=Object['values'](_0xa4e5a2)['length']){_0x35030b=Object['assign'](_0xc7d72d,_0x35030b),console[_0x7a1d82(0x1be)](_0x7a1d82(0x1e5)+(_0x42e942||''));break;}Object[_0x7a1d82(0x1bb)](_0xa4e5a2)[_0x7a1d82(0x1c7)]((_0x25cc3d,_0x358e9b)=>{_0x35030b[_0x25cc3d]=_0x3a4d2e[_0x358e9b];}),_0xa4e5a2={};}const {value:_0x38ebfb,error:_0x9e52f5}=await promisify(youDaoTranslate,_0xc7d72d[_0x56568f],_0x287ce5,_0x2ac12a),_0x166d99=Number[_0x7a1d82(0x1b5)]((_0x21406d+0x1)/_0x2d5d29[_0x7a1d82(0x1b0)]*0x64);console[_0x7a1d82(0x1be)]('-\x20翻译:------\x20\x20进度:'+_0x166d99+_0x7a1d82(0x1b4)+(_0x38ebfb?'success\x20':_0x7a1d82(0x1c3))),await delay(0x3e8);if(!_0x38ebfb){_0x35030b=Object[_0x7a1d82(0x1e7)](_0xc7d72d,_0x35030b),console['log']('-\x20翻译:------\x20\x20进度:异常终止,终止原因:'+(_0x9e52f5||''));break;}_0x35030b[_0x56568f]=_0x38ebfb[0x0];}console['log'](_0x7a1d82(0x1ad)+_0x287ce5+_0x7a1d82(0x1e0)),console[_0x7a1d82(0x1be)](new Array(0x50)[_0x7a1d82(0x1c9)]('-')),_0x5174a2&&_0x5174a2(_0x35030b);}function youDaoTranslate(_0x424dcb,_0x5c23fc,_0x464c25,_0x5c2047){const _0x32223b=a3_0x330b3f;_0x5c23fc=_0x5c23fc[_0x32223b(0x1ca)]();if(_0x5c23fc=='zh')return _0x424dcb;if(_0x5c23fc=='zh-tw')_0x5c23fc=_0x32223b(0x1da);var _0x8c22c2=new Date()['getTime'](),_0x4d5c2e=Math[_0x32223b(0x1b8)](new Date()['getTime']()/0x3e8);function _0x47386a(_0x10f87e){const _0x3d3214=_0x32223b;var _0x59849a=_0x10f87e[_0x3d3214(0x1b0)];if(_0x59849a<=0x14)return _0x10f87e;return _0x10f87e[_0x3d3214(0x1c8)](0x0,0xa)+_0x59849a+_0x10f87e[_0x3d3214(0x1c8)](_0x59849a-0xa,_0x59849a);}var _0x4b2e70=sha256Hash32(_0x464c25[_0x32223b(0x1d2)]+_0x47386a(_0x424dcb)+_0x8c22c2+_0x4d5c2e+_0x464c25[_0x32223b(0x1b7)]),_0x1b3b95={'q':_0x424dcb,'appKey':_0x464c25[_0x32223b(0x1d2)],'salt':_0x8c22c2,'from':'zh','to':_0x5c23fc,'sign':_0x4b2e70,'signType':'v3','curtime':_0x4d5c2e},_0x38acf0=new URLSearchParams(Object[_0x32223b(0x1af)](_0x1b3b95))[_0x32223b(0x1d0)]();axios['get'](_0x32223b(0x1d5)+_0x38acf0)['then'](_0xd74c78=>{const _0x2d96ae=_0x32223b;if(_0xd74c78[_0x2d96ae(0x1d3)][_0x2d96ae(0x1d1)]=='0'&&_0xd74c78[_0x2d96ae(0x1d3)]['translation']&&_0xd74c78[_0x2d96ae(0x1d3)]['translation'][0x0]){const _0xf835e3=_0xd74c78[_0x2d96ae(0x1d3)][_0x2d96ae(0x1d8)][0x0]['split']('\x0a');_0x5c2047&&_0x5c2047(_0xf835e3);return;}_0x5c2047&&_0x5c2047('',_0xd74c78[_0x2d96ae(0x1d3)][_0x2d96ae(0x1d1)]);})[_0x32223b(0x1e8)](function(_0x19cc37){_0x5c2047&&_0x5c2047('',_0x19cc37);});}exports[a3_0x330b3f(0x1db)]=async function(_0x165f03,_0x3834b6,_0x3ba542,_0x57b67c){const _0x4a52a5=a3_0x330b3f;if(!_0x3ba542[_0x4a52a5(0x1c6)]||!_0x3ba542[_0x4a52a5(0x1d2)]||!_0x3ba542[_0x4a52a5(0x1b7)]){_0x57b67c&&_0x57b67c(_0x165f03);return;}if(typeof _0x165f03!='object'||_0x165f03==null||!_0x165f03){_0x57b67c&&_0x57b67c(_0x165f03);return;}if(Object[_0x4a52a5(0x1bb)](_0x165f03)[_0x4a52a5(0x1b0)]==0x0){_0x57b67c&&_0x57b67c(_0x165f03);return;}if(_0x3ba542[_0x4a52a5(0x1c6)]==_0x4a52a5(0x1d9))await youDaoTranslateObj(_0x165f03,_0x3834b6,_0x3ba542,_0x57b67c);else _0x3ba542[_0x4a52a5(0x1c6)]==_0x4a52a5(0x1c1)?await baiduTranslateObj(_0x165f03,_0x3834b6,_0x3ba542,_0x57b67c):_0x57b67c&&_0x57b67c(_0x165f03);};
{
"name": "translate-compiler",
"version": "0.9.0-beta",
"version": "0.9.3-beta",
"description": "Vue 国际化i18n编译器,自动提取项目(.vue)文件中的”中文“并替换为多语言($t(key)),并导出全部翻译到指定文件。",

@@ -10,4 +10,4 @@ "main": "main/index.js",

"scripts": {
"dev": "node lib/index.js dev --dir example -o example/locals/local.js -l en zh ja -t ja --strict",
"test": "node lib/index.js test --dir example -o example/locals -l zh en zh ja",
"dev": "node lib/index.js dev --dir example -o example/locals/local.js -l en zh",
"test": "node lib/index.js test --dir example -o example/locals/local.js -l en zh -t en",
"obf": "javascript-obfuscator lib --output main"

@@ -14,0 +14,0 @@ },

@@ -30,3 +30,3 @@ # translate-compiler

-e, --excludes <value...> 排除翻译的文件,可指定多个
-o, --output <file> 翻译输出文件写入的文件(夹)路径,默认:locals/local.json
-o, --output <file> 翻译输出文件写入的文件(夹)路径,默认:locals/local.js
--strict 是否严格模式, 严格模式只提取$t()内中文,否则提取全局

@@ -50,3 +50,3 @@

- 指定`locals`参数将在输出`output`文件(夹)的同时也会输出对应语种的文件,如`en`。
- `output`支持输出到文件或文件夹,文件支持`.js`和`.json`格式,指定文件夹则默认文件名为`local.json`
- `output`支持输出到文件或文件夹,文件支持`.js`和`.json`格式,指定文件夹则默认文件名为`local.js`
- 指定`locals`生成的语种文件中已做过翻译时,新生成的翻译不会覆盖原有已经翻译过的 key,`output`指定的文件则会覆盖。

@@ -124,9 +124,9 @@ - 生成的翻译 key 默认为`文件名_[处理过的中文拼音]`,长度 < 50,中文修改后 key 会改变,这点需要注意

帮助文档
- 帮助文档
```
```bash
translate --help
```
执行翻译
- 执行翻译

@@ -137,4 +137,6 @@ ```bash

##### 本地安装 (在`package.json`中添加)
##### 本地安装
- 在`package.json`中添加
```json

@@ -148,22 +150,2 @@ "scripts": {

### 注意事项
##### 1.需翻译的文本父不能主动换行,否则生成的翻译默认值也有换行导致错误
```html
<div>
测试
文本
</div>
```
正确写法
```html
<div>
<span>测试</span>
<span>文本</span>
</div>
```
#### 示例

@@ -178,6 +160,6 @@

<div>
<p>{{ $t('使用') }}</p>
<p>{{ isOk ? $t('确定') : $t('取消') }}</p>
<p>{{ $t('清洁时长(min)') }}</p>
<p>{{ $t('密码8-16位,必须包含数字、符号、字母任意两种') }}</p>
<p>{{ $t("使用") }}</p>
<p>{{ isOk ? $t("确定") : $t("取消") }}</p>
<p>{{ $t("清洁时长(min)") }}</p>
<p>{{ $t("密码8-16位,必须包含数字、符号、字母任意两种") }}</p>
</div>

@@ -190,6 +172,8 @@ <div>

<p>{{ $t(`最多上传${limit}个文件`) }}</p>
<p>{{ $t(`最多上传${limit ? '0' : '1个'}个文件`) }}</p>
<p>{{ $t(`最多上传${limit ? "0" : "1个"}个文件`) }}</p>
<p>{{ $t(`您确定要删除${user}的${num}个文件吗?`) }}</p>
<el-form-item :label="$t(`${platform}账号:`)"></el-form-item>
<el-form-item :label="$t(`${platform ? '谷歌' : '微信'}账号:`)"></el-form-item>
<el-form-item
:label="$t(`${platform ? '谷歌' : '微信'}账号:`)"
></el-form-item>
</div>

@@ -204,3 +188,3 @@

<p>测试文本{{ userName }}</p>
<p>开始{{ isOk ? '篮球' : '兵乒球' }}比赛</p>
<p>开始{{ isOk ? "篮球" : "兵乒球" }}比赛</p>
</div>

@@ -212,17 +196,11 @@ <div>

<div>
<p>{{ '使用记录' }}</p>
<p>{{ isOk ? '使用记录' : '历史记录' }}</p>
<p>{{ isOk ? '开始' : `结束` }}</p>
<p>{{ "使用记录" }}</p>
<p>{{ isOk ? "使用记录" : "历史记录" }}</p>
<p>{{ isOk ? "开始" : `结束` }}</p>
<p>{{ `员工姓名` }}</p>
<p>{{ `长度最长${max}个字符` }}</p>
<p>{{ `确定要删除${type ? '自动清洗' : '手动清洗'}路线吗` }}</p>
<p>{{ `确定要删除${type ? "自动清洗" : "手动清洗"}路线吗` }}</p>
<p>{{ `您确定要选择${type}路线${state}吗` }}</p>
<el-form-item :label="`${area}负责人`"></el-form-item>
</div>
<!-- 错误写法示例1 -->
<div>
测试文本
<h1>test</h1>
</div>
</div>

@@ -235,23 +213,23 @@ </template>

weekday() {
return this.$t('星期日');
return this.$t("星期日");
},
timeDay() {
return '早上好';
}
return "早上好";
},
},
methods: {
onTable: function () {
const test11 = this.$t('初始日期');
const test22 = this.$t('kpi结束时间');
const test11 = this.$t("初始日期");
const test22 = this.$t("kpi结束时间");
const test33 = this.$t(`kpi结束${this.label}`);
const test44 = this.$t(`标签名称${this.label == 'today' ? '王' : '二'}`);
const test44 = this.$t(`标签名称${this.label == "today" ? "王" : "二"}`);
},
onExport: function () {
const t1 = '转账信息';
const t2 = 'pary时间';
const t3 = `标签名称${this.timeDay == 'today' ? '李' : '林'}`;
const t1 = "转账信息";
const t2 = "pary时间";
const t3 = `标签名称${this.timeDay == "today" ? "李" : "林"}`;
const t4 = `这是(${this.user})的账号`;
const t5 = `${this.timeDay},${this.user}先生`;
}
}
},
},
};

@@ -267,6 +245,6 @@ </script>

<div>
<p>{{ $t('test_shi_yong') }}</p>
<p>{{ isOk ? $t('com_confirm') : $t('com_cancel') }}</p>
<p>{{ $t('test_qjscmin') }}</p>
<p>{{ $t('test_mm816wbxbhszfhzmrylz') }}</p>
<p>{{ $t("test_shi_yong") }}</p>
<p>{{ isOk ? $t("com_confirm") : $t("com_cancel") }}</p>
<p>{{ $t("test_qjscmin") }}</p>
<p>{{ $t("test_mm816wbxbhszfhzmrylz") }}</p>
</div>

@@ -278,38 +256,50 @@ <div>

<div>
<p>{{ $t('test_zdscogwj', [limit]) }}</p>
<p>{{ $t('test_zdscogwj', [limit ? '0' : $t('test_1ge')]) }}</p>
<p>{{ $t('test_nqdyscodogwjm', [user, num]) }}</p>
<p>{{ $t("test_zdscogwj", [limit]) }}</p>
<p>{{ $t("test_zdscogwj", [limit ? "0" : $t("test_1ge")]) }}</p>
<p>{{ $t("test_nqdyscodogwjm", [user, num]) }}</p>
<el-form-item :label="$t('test_ozhang_hao', [platform])"></el-form-item>
<el-form-item :label="$t('test_ozhang_hao', [platform ? $t('test_gu_ge') : $t('test_wei_xin')])"></el-form-item>
<el-form-item
:label="
$t('test_ozhang_hao', [
platform ? $t('test_gu_ge') : $t('test_wei_xin'),
])
"
></el-form-item>
</div>
<div>
<p>{{ $t('test_ji_chu_xin_xi') }}</p>
<p>{{ $t('com_add_success') }}</p>
<p>{{ $t('test_cdyz713gzf') }}</p>
<p>{{ $t('test_jshxmmcorsbmc') }}</p>
<p>{{ $t('test_ce_shi_wen_ben') }}{{ userName }}</p>
<p>{{ $t('test_kai_shi') }}{{ isOk ? $t('test_lan_qiu') : $t('test_bing_ping_qiu') }}{{ $t('test_bi_sai') }}</p>
<p>{{ $t("test_ji_chu_xin_xi") }}</p>
<p>{{ $t("com_add_success") }}</p>
<p>{{ $t("test_cdyz713gzf") }}</p>
<p>{{ $t("test_jshxmmcorsbmc") }}</p>
<p>{{ $t("test_ce_shi_wen_ben") }}{{ userName }}</p>
<p>
{{ $t("test_kai_shi")
}}{{ isOk ? $t("test_lan_qiu") : $t("test_bing_ping_qiu")
}}{{ $t("test_bi_sai") }}
</p>
</div>
<div>
<el-form-item :label="$t('test_chi_ka_ren')"></el-form-item>
<el-input :per-label="$t('test_quan_xian')" :placeholder="$t('com_please_input')"></el-input>
<el-input
:per-label="$t('test_quan_xian')"
:placeholder="$t('com_please_input')"
></el-input>
</div>
<div>
<p>{{ $t('test_shi_yong_ji_lu') }}</p>
<p>{{ isOk ? $t('test_shi_yong_ji_lu') : $t('test_li_shi_ji_lu') }}</p>
<p>{{ isOk ? $t('test_kai_shi') : $t('test_jie_shu') }}</p>
<p>{{ $t('test_yuan_gong_xing_ming') }}</p>
<p>{{ $t('com_rules_length_max', [max]) }}</p>
<p>{{ $t("test_shi_yong_ji_lu") }}</p>
<p>{{ isOk ? $t("test_shi_yong_ji_lu") : $t("test_li_shi_ji_lu") }}</p>
<p>{{ isOk ? $t("test_kai_shi") : $t("test_jie_shu") }}</p>
<p>{{ $t("test_yuan_gong_xing_ming") }}</p>
<p>{{ $t("com_rules_length_max", [max]) }}</p>
<p>
{{ $t('test_qdyscolxm', [type ? $t('test_zi_dong_qing_xi') : $t('test_shou_dong_qing_xi')]) }}
{{
$t("test_qdyscolxm", [
type ? $t("test_zi_dong_qing_xi") : $t("test_shou_dong_qing_xi"),
])
}}
</p>
<p>{{ $t('test_nqdyxzolxom', [type, state]) }}</p>
<p>{{ $t("test_nqdyxzolxom", [type, state]) }}</p>
<el-form-item :label="$t('test_ofu_ze_ren', [area])"></el-form-item>
</div>
<div>
测试文本
<h1>test</h1>
</div>
</div>

@@ -322,23 +312,27 @@ </template>

weekday() {
return this.$t('test_xing_qi_ri');
return this.$t("test_xing_qi_ri");
},
timeDay() {
return this.$t('test_zao_shang_hao');
}
return this.$t("test_zao_shang_hao");
},
},
methods: {
onTable: function () {
const test11 = this.$t('test_chu_shi_ri_qi');
const test22 = this.$t('test_kpijie_shu_shi_jian');
const test33 = this.$t('test_kpijie_shuo', [this.label]);
const test44 = this.$t('test_bqmco', [this.label == 'today' ? this.$t('test_wang') : this.$t('test_er')]);
const test11 = this.$t("test_chu_shi_ri_qi");
const test22 = this.$t("test_kpijie_shu_shi_jian");
const test33 = this.$t("test_kpijie_shuo", [this.label]);
const test44 = this.$t("test_bqmco", [
this.label == "today" ? this.$t("test_wang") : this.$t("test_er"),
]);
},
onExport: function () {
const t1 = this.$t('test_zhuan_zhang_xin_xi');
const t2 = this.$t('test_paryshi_jian');
const t3 = this.$t('test_bqmco', [this.timeDay == 'today' ? this.$t('test_li') : this.$t('test_lin')]);
const t4 = this.$t('test_zhe_shiode_zhang_hao', [this.user]);
const t5 = this.$t('test_ooxian_sheng', [this.timeDay, this.user]);
}
}
const t1 = this.$t("test_zhuan_zhang_xin_xi");
const t2 = this.$t("test_paryshi_jian");
const t3 = this.$t("test_bqmco", [
this.timeDay == "today" ? this.$t("test_li") : this.$t("test_lin"),
]);
const t4 = this.$t("test_zhe_shiode_zhang_hao", [this.user]);
const t5 = this.$t("test_ooxian_sheng", [this.timeDay, this.user]);
},
},
};

@@ -348,6 +342,7 @@ </script>

翻译文件 (locals.json)
翻译文件 (locals./local.js)
```json
{
```js
exports.__esModule = true;
exports.default = {
"test_shi_yong": "使用",

@@ -402,1 +397,43 @@ "com_confirm": "确定",

```
项目中使用
```js
import zhLocale from './locals/zh';
import enLocale from './locals/en';
import jaLocale from './locals/ja';
// ...
Vue.use(VueI18n);
const i18n = new VueI18n({
locale: 'CN',
silentTranslationWarn: true,
messages: {
ZH: { ...elementZhLocale, ...zhLocale },
EN: { ...elementEnLocale, ...enLocale },
JA: { ...elementJaLocale, ...jaLocale },
},
});
// ...
new Vue({
router,
store,
i18n,
render: h => h(App),
}).$mount('#app');
```
多语言切换
```js
// 方案一:本地切换,对接口层含翻译的(字典,表格列等)做统一事件触发更新
this.$i18n.locale = item.value;
// 方案二:页面强制刷新,适用于有较多接口层翻译的情况
Cookies.set('langCode', item.value, { path: '/' }); // VueI18n初始化取的地方
this.$router.go(0); //强制刷新
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc