/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../_virtual/_rollupPluginBabelHelpers.js"),n=require("../utils/util.js"),t=require("./en.js");var a={lang:{},langKeys:[],textKeys:[]};function r(t,a){return Object.keys(a).forEach(function(l){var u,s=n.default.typeOf(a[l]),g=n.default.typeOf(t[l]);"Array"===s?("Array"!==g&&(t[l]=[]),(u=t[l]).push.apply(u,e.toConsumableArray(a[l]))):"Object"===s?("Object"!==g&&(t[l]={}),r(t[l],a[l])):t[l]=a[l]}),t}function l(){Object.keys(a.lang.en).map(function(e){a.textKeys[e]=e})}function u(e,n){var t=e.LANG;if(n||(n=a),n.lang){var u=e.TEXT||{};"zh"===t&&(t="zh-cn"),n.lang[t]?r(n.lang[t],u):(n.langKeys.push(t),n.lang[t]=u),l()}}u(t.default);var s={get textKeys(){return a.textKeys},get langKeys(){return a.langKeys},get lang(){var e={};return a.langKeys.map(function(n){e[n]=a.lang[n]}),a.lang["zh-cn"]&&(e.zh=a.lang["zh-cn"]||{}),e},extend:function(e,t){var s=[];if(t||(t=a),t.lang){s="Array"!==n.default.typeOf(e)?Object.keys(e).map(function(n){return{LANG:"zh"===n?"zh-cn":n,TEXT:e[n]}}):e;var g=t.lang;s.map(function(e){"zh"===e.LANG&&(e.LANG="zh-cn"),g[e.LANG]?r(g[e.LANG]||{},e.TEXT||{}):u(e,t)}),l()}},use:u,init:function(n){var t,l={lang:{},langKeys:[],textKeys:{},pId:n};return r(l.lang,a.lang),(t=l.langKeys).push.apply(t,e.toConsumableArray(a.langKeys)),r(l.textKeys,a.textKeys),l}};exports.default=s;