LinuxConfig/LarkShell/PC_Gadget/7195161935556460547/app/cli_9cb844403dbb9108/2.16.2010/common.js

1 line
2.7 MiB
JavaScript
Raw Normal View History

2023-10-14 02:46:39 +08:00
define("common.js",(function(e,t,a,r,i,n,o,s,c,l,d,u,p,m,h,b,g,v,j,O,f,M,_,y){(tt.webpackJsonp=tt.webpackJsonp||[]).push([[1],[,,function(e,t,a){"use strict";a.d(t,"curLang",(function(){return c})),a.d(t,"curStarlingLang",(function(){return l})),a.d(t,"t",(function(){return u})),a.d(t,"getCurLang",(function(){return m})),a.d(t,"getCurStarlingLang",(function(){return h})),a.d(t,"getCurApiLang",(function(){return b})),a.d(t,"getCurCode",(function(){return g})),a.d(t,"getCurTimeZone",(function(){return v})),a.d(t,"feelGoodLang",(function(){return j}));var r=a(123),i=a(568),n=(a(732),a(501)),o=a(20),s=a(807);a.o(s,"LANG")&&a.d(t,"LANG",(function(){return s.LANG})),a.o(s,"LANG_CODE")&&a.d(t,"LANG_CODE",(function(){return s.LANG_CODE})),a.o(s,"SimpleLangEnum")&&a.d(t,"SimpleLangEnum",(function(){return s.SimpleLangEnum})),a.o(s,"StarlingLangEnum")&&a.d(t,"StarlingLangEnum",(function(){return s.StarlingLangEnum})),a.o(s,"getApiLanguage")&&a.d(t,"getApiLanguage",(function(){return s.getApiLanguage})),a.o(s,"getCurrentLanguage")&&a.d(t,"getCurrentLanguage",(function(){return s.getCurrentLanguage})),a.o(s,"getLanguageInfo")&&a.d(t,"getLanguageInfo",(function(){return s.getLanguageInfo})),a.o(s,"getSimpleCurrentLanguage")&&a.d(t,"getSimpleCurrentLanguage",(function(){return s.getSimpleCurrentLanguage})),a.d(t,"LANG",(function(){return r.b})),a.d(t,"LANG_CODE",(function(){return r.c})),a.d(t,"SimpleLangEnum",(function(){return r.d})),a.d(t,"StarlingLangEnum",(function(){return r.e})),a.d(t,"getApiLanguage",(function(){return i.a})),a.d(t,"getCurrentLanguage",(function(){return i.b})),a.d(t,"getLanguageInfo",(function(){return i.c})),a.d(t,"getSimpleCurrentLanguage",(function(){return i.d}));var c=Object(i.d)(),l=r.b[c]||r.b.en,d=(r.a[c]||r.a.en,e=>e===r.e.zh?a(1035).default:e===r.e.en?a(806).default:e===r.e.ja?a(1036).default:a(806).default);function u(e,t,a){try{var i=Object(n.a)(d(h()),e,null),s=null===i?Object(n.a)(d(r.g),e,null):i,c=null===s?"string"==typeof t?t:e:s,l="string"==typeof c?c:"";return function(e){return e.replace(/\{\{[\w ]+\}\}/g,"").replace(/\{[\w ]+\}/g,"")}("object"==typeof a&&a?p(l,a):"object"==typeof t&&t?p(l,t):l)}catch(e){return Object(o.d)("translationFailed",{template:"key",message:e.message}),""}}function p(e,t){var a=null,r=e;for(var i in t){var n=["{{".concat(i,"}}"),"{".concat(i,"}")];for(var o of n)for(;r.includes(o)&&r!==a;){var s=t[i];a=r,r=r.replace(o,"string"==typeof s?s:"number"==typeof s?"".concat(s):"")}}return r}var m=()=>c,h=()=>r.b[c]||r.b.en,b=()=>r.a[c]||r.a.en,g=()=>r.c[c]||r.c.en,v=()=>r.f[c]||r.f.en,j=r.h[l]||r.h["en-US"]},,,,,,,,function(e,t,a){"use strict";var r=a(222),i={info:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];r.a.addInfoLog(e,...a)},warn:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];r.a.addWarnLog(e,...a)},error:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];r.a.addErrorLog(e,...a)}};t.a=i},,function(e,t,a){"use strict";a.d(t,"a",(function(){return O})),a.d(t,"b",(function(){return _}));var r=a(28),i=a(39),n=a(20),o=Promise.race([new Promise((e=>{})),new Promise((e=>setTimeout(e,3e3)))]),s=null,c=()=>(s||(s=a(1034).default),s),l=r.i&&!i.c;if(i.c){var d,u=c();if(!(null==u||null===(d=u.types)||void 0===d?void 0:d.LaunchComplete))throw Error("注意,监测到 Tea 版本有了比较大的变动tea.types.LaunchComplete 不存在了,这很可能对 Tea 上报产生影响,请处理")}var p=!1,m=!1,h=!1,b=!1;if(l){var g={app_id:r.u?3578:1604,report_channel:r.u?"va":"cn",disable_storage:!1,max_batch_event:10};r.u||(g.channel_domain="https://mcs-bd.feishu.cn");var v=()=>{c().init(g),m=!0,Object(n.b)(f),setTimeout((()=>{f()}),5e3)};i.e?(h=!0,b=!0,v()):o.then((()=>{tt.__approvalInfo.shouldColdStartToTrusteeshipPage?setTimeout((()=>{c().init(g),m=!0,f()}),5e3):v()}))}var j=[];function O(e){l&&(m?Object(n.b)((()=>{c().config(e)})):e&&j.push(e))}function f(){if(!p&&(p=!0,l)){var e,t=c();b||(j.forEach((e=>{t.config(e)})),b=!0),h||(M.for